Hi Everyone,

 

I’m looking at an issue we have with files that are in draft, causing a 500 
error when viewed (or picked up by bots).

 

I noticed that with the 6+ versions of FarCry that you can have an 
application.url.publiclogin defined that can be used when a type has a 
draft status, but I've discovered that this has no impact on dmFile.  When 
digging around I noticed that the way files are checked for status and 
security (tags/farcry/download.cfm) is vastly different to other types 
(tags/Navajo/display.cfm).

 

So I’m now wondering what is the best way to deal with files trigging a 500 
error? Stop using download.cfm and instead change files links to 
index.cfm?objectid=xxxxx etc. or catch the exception error in the projects 
onError method and redirect to a “draft document” page?  Or is there 
something else?

 

On a side note I did notice a few comments in the code that implied that 
the use of download.cfm (or maybe it meant passing downloadfile in the URL) 
is a legacy method of handling files.  I grabbed the latest community build 
to have a look at, but that is the way it is still handling files.  So if 
that is legacy, what is the new correct way to handle files?

 

Thanks for the your time.

 

Cheers

Mark Picker

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

Reply via email to