tracker issue : CF-4205868

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

CFHTMLTOPDF fails when source is relative path with query-string

| View in Tracker

Status/Resolution/Reason: To Track//PRHaveInfo

Reporter/Name(from Bugbase): Jerry B. / ()

Created: 11/14/2019

Components: Document Management, PDF Generation (CFHTML2PDF)

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: ColdFusion 11 Update 19 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 0

Problem Description: CFHTMLTOPDF fails when source is a relative path with query-string.

Steps to Reproduce: Set source to relative path of a local page and specify a query-string.
e.g. <cfhtmltopdf source="testpage.cfm?mode=p"></cfhtmltopdf>

Actual Result: Error is generated: Either the src is not a proper URL or the file specified by absolute path does not exist. Invalid source testpage.cfm?mode=p specified.

Expected Result: The page should load on screen as a PDF as it does when the query-string is not specified. e.g source="testpage.cfm"

Any Workarounds: The only work around is specify the full URL.



Hi,   I  tried this in the latest updates of ColdFusion 2016 and ColdFusion 2018, and its working fine. CF 11 is now end of life. Can you check in any latest version of ColdFusion from your end?   Thanks, Kailash
Comment by Kailash B.
31947 | December 12, 2019 07:05:15 AM GMT