Highlighted

After upgrade to ColdFusion 2016 file access denied?

New Here ,
Dec 21, 2017

Copy link to clipboard

Copied

Hello everyone,

We have upgraded our development server from CF10 to ColdFusion 2016 today. While I was testing our system I notice that every report couldn't be accessed. I have checked the folder on the server and files are in there. I tried to use this code to test and access the files:

<cffile action="read" file="\\testsite\testsite_d\test.xlsx" variable = "fileContent">

After I run code above error message showed on the screen:

Message\\testsite\testsite_d\test.xlsx (Access is denied)     
DetailThe cause of this exception was: java.io.FileNotFoundException: \\testsite\testsite_d\test.xlsx (Access is denied).     

I'm not sure why files can't be accessed. Everything worked fine before we did the upgrade. If anyone knows how to fix this problem please let me know.

Thank you.

Adobe Community Professional
Correct answer by Dave_Watts | Adobe Community Professional

Running ColdFusion as a specific user

Dave Watts, CTO, Fig Leaf Software

Views

833

Likes

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

After upgrade to ColdFusion 2016 file access denied?

New Here ,
Dec 21, 2017

Copy link to clipboard

Copied

Hello everyone,

We have upgraded our development server from CF10 to ColdFusion 2016 today. While I was testing our system I notice that every report couldn't be accessed. I have checked the folder on the server and files are in there. I tried to use this code to test and access the files:

<cffile action="read" file="\\testsite\testsite_d\test.xlsx" variable = "fileContent">

After I run code above error message showed on the screen:

Message\\testsite\testsite_d\test.xlsx (Access is denied)     
DetailThe cause of this exception was: java.io.FileNotFoundException: \\testsite\testsite_d\test.xlsx (Access is denied).     

I'm not sure why files can't be accessed. Everything worked fine before we did the upgrade. If anyone knows how to fix this problem please let me know.

Thank you.

Adobe Community Professional
Correct answer by Dave_Watts | Adobe Community Professional

Running ColdFusion as a specific user

Dave Watts, CTO, Fig Leaf Software

Views

834

Likes

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
Dec 21, 2017 0
Adobe Community Professional ,
Dec 21, 2017

Copy link to clipboard

Copied

My guess is that the previous version of CF was configured to run as a specific user account, and the new version is running as SYSTEM. In general, to access network shares, you need to run as something other than SYSTEM.

Dave Watts, CTO, Fig Leaf Software

Likes

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
Reply
Loading...
Dec 21, 2017 0
New Here ,
Dec 21, 2017

Copy link to clipboard

Copied

Hello Dave,

Thanks for your time and help. I'm not familiar with setting permissions and where that should be fixed. Can you provide any information where I should be looking for to fix this problem?

Thanks in advance.

Likes

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
Reply
Loading...
Dec 21, 2017 0
Adobe Community Professional ,
Dec 21, 2017

Copy link to clipboard

Copied

Running ColdFusion as a specific user

Dave Watts, CTO, Fig Leaf Software

Likes

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
Reply
Loading...
Dec 21, 2017 0