tracker issue : CF-4206454

select a category, or use search below
(searches all categories and all time range)
Title:

Throws error when using 'word-break: break-all;' used inside <cfdocument> tag

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Rejith R. / ()

Created: 12/31/2019

Components: Document Management, PDF generation

Versions: 2016,2018

Failure Type: Conflict With Docs

Found In Build/Fixed In Build: ColdFusion 2018 2018.0.07.316715 /

Priority/Frequency: Normal / Most users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 1

Problem Description: "word-break: break-all;" is not really listed in the supported css styles for cfdocument. But there was no issues in ColdFusion 2016. After upgrading to ColdFusion 2018 we started getting this issue. Also the biggest problem is that the error line or the information does not point out that this is the issue. What we get is "Index 3 out of bounds for length 1".
Also the error occurs only when there are more than one word in the html element.

It looks like even though this style is not listed under supported styles in https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-d-e/cfdocument.html , ColdFusion is trying to apply the style here and causing error.

Steps to Reproduce: 
Try running this in ColdFusion 2018

<cfdocument format="PDF" >
  <cfoutput><div style="word-break: break-all;">Permission Type</div></cfoutput>
</cfdocument>

https://cffiddle.org/app/file?filepath=9db65204-1b44-4241-8522-66f9afe11c57/322ec618-7b94-470e-8b8a-a582afd7ebf5/c617a1d6-830a-4ac0-b1d9-819a32fd6c29.cfm

Actual Result: 

Exception: coldfusion.document.spi.DocumentExportException: java.lang.ArrayIndexOutOfBoundsException : Index 3 out of bounds for length 1

Expected Result:

Simply display text "Permission Type"

Any Workarounds:

Need to remove the use of the style "word-break: break-all;" inside <cfdocument> from code base. ¯\_(?)_/¯

Attachments:

Comments: