Uploaded image for project: '{RETIRED} XWiki Enterprise'
  1. {RETIRED} XWiki Enterprise
  2. XE-881

Deleted documents index gets broken when space name is invalid

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6, 3.0
    • Fix Version/s: 3.1 M1, 3.0.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      XWiki 2.6
    • keywords:
      space name invalid broken delete
    • Similar issues:

      Description

      Steps to reproduce

      1. Install Ldap Tools
      2. Setup LDAP mapping and in the group mapping enter following value (with 4 forward white spaces before each line)
            XWiki.XWikiAdminGroup=cn=AdminRole,ou=groups,o=MegaNova,c=US|\
            XWiki.Organisation=cn=testers,ou=groups,o=MegaNova,c=US
        
      3. this will result in improper group creation in bad spaces:
        • %0A++++XWiki.XWikiAdminGroup
        • ++++XWiki.Organisation
      4. delete both spaces with all files
      5. go to deleted documents index - you will notice that it's broken (see attached MessedUpDeletedDocuments.png) But if you'll check the response with firebug - proper deleted documents list will be there.
      6. trying to delete %0A++++XWiki.XWikiAdminGroup with rest call e.g. "deleteUrl" : "/xwiki/bin/delete/%0A++++XWiki/XWikiAdminGroup?id=168" will fail complaining that the URL is bad - the only way to fix things is to delete the documents from xwikirecyclebin directly in the database.

      Expected behavior
      Validation should be added to

      • [MUST] Space creation
      • [MAY] Mapping property of the LDAP Tool

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: