• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

<cfdocument> PDF file throwing java.io.FileNotFoundException (Permission Denied)

Explorer ,
Jul 19, 2021 Jul 19, 2021

Copy link to clipboard

Copied

Good afternoon,

 

     CF 2018 installed on a CentOS 7 server.  I'm having what seems like a permission issue when using tag:<cfdocument>, PDF generated file.  The error report indicates "java.io.FileNotFoundException" <path to PDF file> (Permission denied).  This is happening for all PDF generated files using <cfdocument>.  Has anyone had experience with granting the appropriate permissions to generate these PDF files on linux?  I'm guessing the ColdFusion user needs to be granted the appropritate permissions to generate the file, or this is something having to do with the way the hosted server is setup in regards to network security.  Any insight will be much appreciated.

 

Thanks,

 

-Daniel

Views

130

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 06, 2021 Aug 06, 2021

Copy link to clipboard

Copied

LATEST

I also think it's got to do with granting ColdFusion permissions to write a PDF to a particular file path. Use try/catch, and you will get more information:

 

<cftry>
<cfdocument format="PDF" filename="absolute_path_for_pdf_file" >
	ABC
</cfdocument>
<cfcatch type="any" >
	<cfdump var="#cfcatch#" >
</cfcatch>
</cftry>

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation