tracker issue : CF-4206454

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

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 , 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>

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. ¯\_(?)_/¯