Issue Details (XML | Word | Printable)

Key: FOR-701
Type: Bug Bug
Status: Reopened Reopened
Priority: Minor Minor
Assignee: Unassigned
Reporter: Ross Gardler
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Forrest

Missing locationmap entry gives poor error

Created: 05/Oct/05 05:42 AM   Updated: 06/Apr/07 10:42 PM
Return to search
Component/s: Locationmap
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Dependants
 
Incorporates
 


 Description  « Hide
If there is no locationmap entry for a resource we get a "resource not found" error. This is fine if it is the actual source file that is missing. However, now that we are using the LM to find other intermediate resources, such as stylesheets etc. it can be misleading.

We need to throw a meaningful error when when a resource cannot be found.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Tim Williams added a comment - 11/Nov/05 12:17 PM
Indicated "locationmap" component

Ross Gardler added a comment - 09/Dec/05 11:51 PM
Reducing priority and moving to an unreleased version. Logs now give meaningful information.

Ross Gardler added a comment - 10/Dec/05 06:30 AM
Now that Forest throws an exception when the final location returned is a null we can (probably) trap this error in our sitemap and provide a more meaningful error message. It is unlikely that the Cocoon issue will be resolved as it has wider implications and side-effects.

Ross Gardler added a comment - 22/Mar/07 01:04 AM
I've added some basic error handling for the ResourceNotFound case we get when the locationmap fails to resolve a request.

It's still not great but it is a small improvement and, more importantly, paves the way for better error reporting using exception-to-html.xsl

Ross Gardler added a comment - 22/Mar/07 02:42 PM
Needs improvement, but at least the error now says the problem is in the locationmap!

Ross Gardler added a comment - 06/Apr/07 10:42 PM
Reopened as the fix prevented broken-links.xml from being generated.

the fix is currently commented out in the root sitemap.