Regression: Local images no longer render in PDF in Lucee 5.3+

Description

This code produces a PDF with an image that pulls from a local file path and works on Lucee 5.2

However, the same code produces a PDF with no image on Lucee 5.3+

I've narrowed down to the fact that Lucee 5.3's PDF engine requires the file paths to

  • Be URL encoded (sort of as URLEncodedFormat() and encodeForURL() both cause issues)

  • use only forward slashes, even on Windows.

If I run all my local file paths through this code, it seems to work:

That would turn the path above (that worked in Lucee 5.2) into this:

Environment

None

Status

Assignee

Michael Offner

Reporter

Brad Wood

Labels

Priority

New
Configure