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

CFCHART asks for username and password

Contributor ,
Nov 10, 2010 Nov 10, 2010

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.

723
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
Contributor ,
Nov 10, 2010 Nov 10, 2010

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.

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
Guide ,
Nov 10, 2010 Nov 10, 2010

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.

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
Contributor ,
Nov 18, 2010 Nov 18, 2010

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....

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
Guide ,
Nov 18, 2010 Nov 18, 2010

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.

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
Community Expert ,
Nov 18, 2010 Nov 18, 2010
LATEST

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

Dave Watts, Eidolon LLC
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