Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-1890

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 M2
    • Fix Version/s: 1.2 RC1
    • Labels:
      None
    • Similar issues:

      Description

      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:

      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)
      

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

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: