Status/Resolution/Reason: Needs Review//
Reporter/Name(from Bugbase): Oliver Jones / Oliver Jones (Oliver Jones)
Created: 08/18/2016
Components: CFIMAGE
Versions: 2016
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF2016_Update1 /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Win 2012 Server x64
Vote Count: 0
This is partially a question regarding CF application server infrastructure best practices.
I have been having trouble with the CFIMAGE tag action="writeToBrowser" for adding images to cfdocuments.
I believe the problem was due to the cfimage tag outputting a html img tag with the src attribute pointing to a cf fileservlet to get the image data. This url working relatively from the request url. I think because my development web server is running on https with a self-signed certificate and the app server doesn't have this cert in it's trust store the request for the fileservlet was failling.
Obtaining the cfimage src attribute value and pre-pending it with localhost:8500 so the image is served from the internal web server has solved the problem. You state the internal web server isn't recommended for production use but can you foresee any issues with using it for this purpose only? It would be protected from outside access by a firewall so shouldn't impact security. It seems inefficient within a separate app and web server infrastructure for the app server to do a round trip to the web server to get images from itself to create a pdf? I also wonder if certain security mechanisms would cause this to fail if the security was at the web server layer?
It also seems it could be beneficial to run scheduled tasks from the internal web server allowing me to run them from a location that is not made available to the production web server?
If there are no issues with this kind of setup I would propose that an additional attribute was provided on the cfimage tag to allow for a different fileservlet host.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4182057
External Customer Info:
External Company:
External Customer Name: Oliver Jones
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: