Calling the delete action in a XWiki URL when the document has already been 
deleted generates an exception
----------------------------------------------------------------------------------------------------------

                 Key: XWIKI-1890
                 URL: http://jira.xwiki.org/jira/browse/XWIKI-1890
             Project: XWiki Platform
          Issue Type: Bug
          Components: Actions and URLs
    Affects Versions: 1.2 M2
            Reporter: Vincent Massol
             Fix For: 1.2 RC1


For example after having deleted 
http://localhost:8080/xwiki/bin/view/XWiki/test, calling 
http://localhost:8080/xwiki/bin/delete/XWiki/test generates the following 
exception:

{noformat}
java.lang.NumberFormatException: null
        at java.lang.Long.parseLong(Long.java:372)
        at java.lang.Long.parseLong(Long.java:461)
        at com.xpn.xwiki.web.DeleteAction.action(DeleteAction.java:53)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147)
{noformat}

This is because there's no check on the id parameter that needs to be passed to 
delete a document from the recycle bin

-- 
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