Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Images don't work without authentication View modes: 
User avatar
Member
Member
Bruno Nepomuceno - 4/16/2013 12:03:58 PM
   
Images don't work without authentication
There is something really weird going on here. If I go to these URLs right after opening the browser, I will get 404s.

http://localhost/us/getattachment/1699c21b-3b50-494f-88c4-20b90a6d4fc0/background_desktop.jpg
http://localhost/us/CMSPages/GetFile.aspx?guid=1699c21b-3b50-494f-88c4-20b90a6d4fc0

However, if I go to http://localhost/us/cmsdesk, type my credentials and then go back to the tab where I had the images, I will be able to see them. Why is that? What do I need to do to make the images work without having to be authenticated?

User avatar
Kentico Support
Kentico Support
kentico_filipl - 4/17/2013 3:45:14 AM
   
RE:Images don't work without authentication
Hello Bruno,

I have tried to access attachment through gettattachment URL and it should be working without the need to be authenticated. Could you check if you accidentally do not have only some roles assigned for the document with the attachment which can access it? You can see it in CMS Desk -> <your document> -> Properties -> Security.

Best regards,
Filip Ligac

User avatar
Member
Member
Bruno Nepomuceno - 4/17/2013 2:35:02 PM
   
RE:Images don't work without authentication
Hey Filip,

Thank you very much for your suggestion. However, I just figured out what was the problem. It's not about Kentico, this is something related to the way someone set our environment up. Instead of calling http://localhost/us/CMSPages/GetFile.aspx?guid=1699c21b-3b50-494f-88c4-20b90a6d4fc0, I should be using

http://localhost/hub/CMSPages/GetFile.aspx?guid=1699c21b-3b50-494f-88c4-20b90a6d4fc0 ("hub" not "us").

Cheers,

Bruno