Copy link to clipboard
Copied
I have a page with cfchart on it that is throwing up a server "Authentication required" username and password box. Taking out the cfchart tag stops it from happening and the rest of the page loads fine. It is an ajax get request to the page, but navigating directly to it in the browser has exactly the same results.
Any suggestions on how to stop this? I'm using ColdFusion MX7.
Copy link to clipboard
Copied
Changing "cache type" to "memory" in ColdFusion Administrator seems to have fixed this so it must have been to do with file/folder permissions of the created images.
Copy link to clipboard
Copied
Was going to say, it'll be an NTFS permissions issue. CF will be writing to the www cache directory which the user IIS is running as doesn't have permissions over.
If you do need them on disk, make sure they're being written to a folder which both CF and IIS have access to.
Copy link to clipboard
Copied
Actually this is still a problem. It either stopped happening temporarily, or the browser saved my username and pass last time I was testing. It's still asking for authentication details when the page tries to generate a graph. It can't be an NTFS issue as it's a Linux server, and anyway cfadministrator is set to use memory....
Copy link to clipboard
Copied
Okay, maybe linux permissions more than NTFS but same issue.
Rather than writing out the CFChart to screen, use cffile to write it to disk, then display it using standard IMG tags on your page. See if that gets you anywhere.
Copy link to clipboard
Copied
Permissions is permissions. You could try Owain's suggestion, which will certainly work. Or, you could take a look at the URL generated by CFCHART, and make sure that this URL can be requested anonymously. It points to a nonexistent directory by default, so you could probably create the directory and make it anonymously readable.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Read this before you post:
http://forums.adobe.com/thread/607238