[
http://jira.dspace.org/jira/browse/DS-689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kim Shepherd updated DS-689:
----------------------------
Attachment: DisplayStatisticsServlet.java
DS-689_JSPUI_Statistics_404.patch
Attached patch tested against current trunk (5386) and dspace 1.6.2
(it should work for previous 1.6.x versions too, but not tested)
Throws a 404 if requested handle doesn't resolve to a DSpaceObject
A patched 1.6.2 DisplayStatisticsServlet.java is also attached.
> DisplayStatisticsServlet throws NPE if requested handle is null, should throw
> 404
> ---------------------------------------------------------------------------------
>
> Key: DS-689
> URL: http://jira.dspace.org/jira/browse/DS-689
> Project: DSpace 1.x
> Issue Type: Bug
> Components: JSPUI
> Affects Versions: 1.6.0, 1.6.1, 1.6.2
> Reporter: Kim Shepherd
> Assignee: Kim Shepherd
> Fix For: 1.7.0
>
> Attachments: DisplayStatisticsServlet.java,
> DS-689_JSPUI_Statistics_404.patch
>
>
> DisplayStatisticsServlet throws a generic exception if the dso returned by
> HandleManager.resolveToObject is null.
> It should throw a 404.
> (and a reminder that it'd be cleaner and better to have URLs like
> /jspui/handle/12345/123/statistics than /jspui/displaystats?12345/123... mea
> culpa -- I'll open a different issue for that so possible impact to
> bookmarked stats pages etc can be discussed)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel