[ 
https://jira.duraspace.org/browse/DS-768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18239#action_18239
 ] 

Tim Donohue commented on DS-768:
--------------------------------

This problem also seems to extend to all error screens in 1.7.0 XMLUI.  
Currently the "Invalid Continuation" error screen (e.g. see DS-613), and 
general Cocoon Error screens both also return 200 OK instead of 404 Not Found.

I'm not sure what could have changed, as the error handling at the bottom of 
the main sitemap.xmap, specifically says to return a 404 response (see the 
'status-code' value below):

http://scm.dspace.org/svn/repo/dspace/trunk/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/sitemap.xmap

                               <map:when test="invalid-continuation">
                                        <map:generate type="exception"/>
                                        <map:transform 
src="exception2html.xslt">
                                                <map:parameter 
name="contextPath" value="{request:contextPath}"/>
                                                <map:parameter name="pageTitle" 
value="Invalid Continuation"/>
                                        </map:transform>
                                        <map:serialize type="xhtml" 
status-code="404"/>
                                </map:when>

If anyone has an ideas on this, I'd appreciate suggestions.  I'll keep digging 
around a bit to see what I can figure out.


> 1.7.0 XMLUI "Page Not Found" returns a 200 OK, instead of 404 Not Found
> -----------------------------------------------------------------------
>
>                 Key: DS-768
>                 URL: https://jira.duraspace.org/browse/DS-768
>             Project: DSpace
>          Issue Type: Bug
>          Components: XMLUI
>    Affects Versions: 1.7.0
>            Reporter: Tim Donohue
>            Priority: Major
>             Fix For: 1.7.0
>
>
> In DSpace 1.7.0 RC1, the XMLUI "Page Not Found" page responds with a 200 OK, 
> rather than the necessary 404 Not Found error.
> For example:
> http://demo.dspace.org/xmlui/NOTAVALIDPATH
> I believe this used to function properly in 1.6.x, but it seems to be broken 
> now.
> Obviously, we want this to return a 404 Not Found, in order to ensure that 
> search engines do not index "Page Not Found" responses.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to