I'm not sure why download.cfm is explicitly throwing an error. If no one else knows then we should probably change it. In the meantime you can work around this by changing the download.cfm file in your webroot, and possibly calling a custom version of the tag.
Blair On Tue, Apr 17, 2012 at 3:06 PM, tHeSmUrF <[email protected]>wrote: > Hi Blair****** > > ** ** > > Thanks for the reply. **** > > ** ** > > Firstly a bit about how I had everything configured. In IIS I had the > 404 and 500 error pages for my project set to:**** > > ** ** > > 404 /errors/404.cfm**** > > 500 /errors/500.cfm**** > > ** ** > > But for testing I’ve reverting them back to the IIS defaults.**** > > ** ** > > I’ve left the /errors/404.cfm and 500.cfm files in my project (so being > used by FarCry but not IIS) and in a browser made a request for a document > that is in draft.**** > > ** ** > > * > http://server/download.cfm?downloadfile=34F324C3-1560-8AB2-6393D7E9A6FEEFAC > *<http://server/download.cfm?downloadfile=34F324C3-1560-8AB2-6393D7E9A6FEEFAC> > **** > > ** ** > > and get 2 x 500 errors, one above the other. The first 500 error is > coming from IIS and then the second one is my /errors/500.cfm**** > > ** ** > > I also receive an error email containing:**** > > ** ** > *Root Cause* > > *Exception Type*** > > core.tags.farcry.download**** > > *Detail*** > > You are not authorised to view this file.**** > > *Tag Context*** > > - Q:\inetpub\xxxxx\FarCry_6\core\tags\farcry\download.cfm (line: 82)*** > * > - Q:\inetpub\xxxxx\FarCry_6\projects\develop_wi_internet\www\download.cfm > (line: 2)**** > > If I rename /errors/500.cfm to something else and refresh I just get > the stand IIS 500 error as expected. I believe this is because the onError > in the project is calling the onError from core which is checking for the > existence of /errors/500.cfm in the project folder and loading that. The > cfheader is also being set to 500 in the core so I think this is why both > 500 errors get loaded initially. Changing the IIS config to use the /error/ > files stops the duplicate 500 errors. So the 500 error is just because > that’s what onError from core/application.cfc does. Now, whether or not > a draft document should cause a 500 is another issue.**** > > ** ** > > I found that if I configure publiclogin in the application (and create > login skins etc.) and also change the call to the file from download.cfm to > index.cfm, e.g.: **** > > ** ** > > From: * > http://server/download.cfm?downloadfile=34F324C3-1560-8AB2-6393D7E9A6FEEFAC > *<http://server/download.cfm?downloadfile=34F324C3-1560-8AB2-6393D7E9A6FEEFAC> > **** > > ** ** > > To: > *http://server/index.cfm?objectid=34F324C3-1560-8AB2-6393D7E9A6FEEFAC*<http://server/index.cfm?objectid=34F324C3-1560-8AB2-6393D7E9A6FEEFAC> > **** > > ** ** > > that I now get a draft login screen, but that doesn’t help for calls to > download.cfm. Any suggestions on stopping calls to download.cfm causing > 500 status errors?**** > > ** ** > > Thanks for your time.**** > > ** ** > > Cheers**** > > Mark**** > > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: [email protected] > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry > -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
