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

java.io.FileNotFoundException

New Here ,
Jan 27, 2009 Jan 27, 2009
We seem to have an issue with write permissions. If CFFILE is used from within a standard CF template it writes without any problems. When encapsulated within something such as a custom tag or even used with cfmodule it no longer has permission to write. We are trying to understand what specifically needs to be granted in order for MX to have the permissions it needs for file access using custom tags, components or other methods.

java.io.FileNotFoundException
2.8K
Translate
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
LEGEND ,
Jan 27, 2009 Jan 27, 2009
KN wrote:
> We are trying to understand what specifically needs to be granted in order for MX to have the permissions it needs for file access
> using custom tags, components or other methods.


Normally ColdFusion would. There is nothing special about using
<cffile...> inside a custom tag, component or any other reusable
ColdFusion code.

What environment, Unix or Windows?

What user is ColdFusion running under?

Where do these custom tags and components reside in relation to the
website root?
Translate
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
New Here ,
Jan 27, 2009 Jan 27, 2009
It's a windows 2003 server in a windows environment. I'm checking with one of my network people to see what we installed it under. I think 2003 server locks everything by default as opposed to older operating systems that left the permissions wide open. I'm having someone check to see if perms can be lifted so CF can access another drive letter. The custom tags are located on one drive and the content on the other.
Translate
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
LEGEND ,
Jan 28, 2009 Jan 28, 2009
KN wrote:
> I'm having someone check to see if perms can be lifted
> so CF can access *another drive letter*. The custom tags are located on one
> drive and the content on the other.
>

"Another Drive Letter", that is what I was looking for. Are these drive
letters local or network?

By default ColdFusion runs under a 'localSystem' user on Windows
Servers. This 'localSystem' user, again by default, has access to all
local drives, but *NO* access to any networked resources, even mapped
drives.

To get the latter you have to change the default configuration of
ColdFusion to run under a user with the desired permissions.

Translate
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
New Here ,
Jan 28, 2009 Jan 28, 2009
LATEST
They are local drives which is why it was rather unusual, unless 2003 is limiting processes from accessing other resources by default. Again, if CFFILE is used within a local template it works fine, but as soon as CFMODULE or a custom tag are in play it runs into that error.
Translate
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