On Fri, Jan 24, 2014 at 01:58:53PM -0600, Tim Donohue wrote:
> Hi Andrew,
> 
> On 1/24/2014 12:35 PM, Andrew Reid wrote:
> >   Thanks, this looks useful -- I take it that I can just make the
> >suggested changes, and/but don't have to remove the error-handling
> >stuff from sitemap.xmap?
> 
> That is correct.  The static error page "workaround" suggested in
> https://jira.duraspace.org/browse/DS-1596 will actually *override*
> the default error-handling stuff in the main sitemap.xmap.
> 
> So, you can (and should) leave those defaults in place. That way, if
> your static HTML error page was ever accidentally inaccessible (e.g.
> it was accidentally moved/deleted/permissions wrong), then the
> default (not so pretty) DSpace error page would take back over.

  Huh.  This is not working for me -- I have a testing installation
with the default Mirage theme, and I am adding the lines from
your comment directly in Mirage/sitemap.xmap, rather than 
rebuilding the app -- I mention this because it might be 
part of the issue.

  I may be using weird errors, too, my testing URL is 
"<host>/dspace/xmlui/static/wrong.html", or 
"<host>/dspace/xmlui/static/wrong.js" -- they give different
errors, the former gives a "ResourceNotound" with a big
long Cocoon back-trace, and the second one gives a 
NullPointerException, with a very short Cocoon back-trace. 
  
  Modifying Mirage/sitemap.xmap did not change this
behavior -- I double-checked that the additional handle-errors
map is *inside* the map:pipelines tag and *outside* any of the
other map:item tag-pairs. 

  Are my errors too weird?  Am I actually getting *two* errors 
somehow?  Vandalizing the top-level sitemap.xml
is starting to look like the near-term solution, but I'd be
willing to invest a bit more effort in a nicer answer.

                                -- A.
-- 
Dr. Andrew C. E. Reid
Physical Scientist, Computer Operations Administrator
Center for Theoretical and Computational Materials Science
National Institute of Standards and Technology, Mail Stop 8555
Gaithersburg MD 20899 USA
[email protected]

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to