[ 
http://jira.xwiki.org/jira/browse/XWIKI-2091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergiu Dumitriu reassigned XWIKI-2091:
--------------------------------------

    Assignee: Sergiu Dumitriu

> Malformed URLs should not throw exceptions, but report an error
> ---------------------------------------------------------------
>
>                 Key: XWIKI-2091
>                 URL: http://jira.xwiki.org/jira/browse/XWIKI-2091
>             Project: XWiki Core
>          Issue Type: Bug
>          Components: Actions and URLs, Core
>            Reporter: Sergiu Dumitriu
>         Assigned To: Sergiu Dumitriu
>
> For example, something like 
> http://localhost:8080/xwiki/bin/view/Photos/url=http://www.spam-attempt.com/some/lame/spam-attempt/
>  should display something similar to docdoesnotexist, instead of showing an 
> ugly page with (shown only important part of the exception):
> {code}
> java.lang.StringIndexOutOfBoundsException: String index out of range: -10
>       at java.lang.String.substring(String.java:1768)
>       at com.xpn.xwiki.doc.XWikiDocument.setFullName(XWikiDocument.java:3023)
>       at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1145)
>       at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4167)
>       at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:138)
> {code}

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

        
_______________________________________________
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to