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

ColdFusion 2018 Update 12 permission issues on file server access

Community Beginner ,
Oct 05, 2021 Oct 05, 2021

Copy link to clipboard

Copied

We updated Coldfusion 2018 from Update 11 to 12 on windows servers and began having permissions issues when trying to read from or write to folders on file servers. ColdFusion can do this for folders on the ColdFusion server but if it is a file server (aka not on the same server), it has issues. Prior to the upgrade the we could perform folder and file related access activities without issue.

 

We tested this issue with a script which looped over a list of folder paths and performed:

  1. Check to see if the folder exists (directoryExists(...))
  2. If not create the directory (<cfdirectory action="create"...>)
  3. If does exist then just print that it exists
  4. Do a directory listing of the folder and dump results to screen (<cfdirectory action="list" ...>)
  5. Copy a file from a local server folder to the destination folder (<cffile action="copy" ...>)

 

We verified that the ColdFusion service account had read and write permissions to all of the folders involved and were even able to use a non-upgraded ColdFusion instance to write to the destination folder with the account.

 

We tested with the following types of folders:

  • Multiple folders on two different file server on our network
  • Folders on the same server as the ColdFusion instance

 

The only folder where the actions worked properly were the folders on the same server as the ColdFusion isntance. For all of the other folders:

  1. directoryExists could not find the directory (even though they all exist)
  2. It could not create the directory 
  3. It provided an empty list of directory contents 
  4. It was unable to copy the file over because of access denied 

 

Once we uninstalled update 12, we performed the same set of tests on the same set of folders (without changing any permissions on the folders) and the script successfully perform all actions on all folders. The issue seems to be related to the update 12. 

 

We are curious if others have encountered similar issues.

 

TOPICS
Advanced techniques , Server administration

Views

291

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 ,
Oct 06, 2021 Oct 06, 2021

Copy link to clipboard

Copied

Yes, that seems strange. Especially as Update 11 succeeds, but Update 12 fails.

 

How do you define the paths to the directories and files on the file server? Using the Universal Naming Convention (UNC)? Have a look at the last answer (by Gabriel) to this Stackoverflow UNC question: https://stackoverflow.com/questions/23939271/coldfusion-file-access-using-unc-path-access-denied .

 

Were there any related error messages in the logs? Please share some examples of your code.

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
Community Expert ,
Oct 06, 2021 Oct 06, 2021

Copy link to clipboard

Copied

LATEST

Oh, something to rule out. Is Update 11 running as a domain user, whereas Update 12 ran as Local-System? If so, then that would explain the problem - and the solution.

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