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

Deleted documents index gets broken when space name is invalid

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1 M1, 3.0.1
    • 2.6, 3.0
    • None
    • None
    • XWiki 2.6
    • space name invalid broken delete

    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

        1. 2011-03-30_17-52-21_TestPage ( XWiki.TestPage) - XWiki - Mozilla Firefox.png
          34 kB
          Roman Arkadijovych Muntyanu
        2. 2011-03-30_17-52-46_Editing Wiki for TestPage - Mozilla Firefox.png
          46 kB
          Roman Arkadijovych Muntyanu
        3. 2011-03-30_17-54-26_Welcome to your wiki (Main.WebHome) - XWiki - Mozilla Firefox.png
          10 kB
          Roman Arkadijovych Muntyanu
        4. 2011-03-30_17-55-04_Space Index (Main.SpaceIndex) - XWiki - Mozilla Firefox.png
          42 kB
          Roman Arkadijovych Muntyanu
        5. 2011-03-30_17-55-43_TestPage ( XWiki.TestPage) - XWiki - Mozilla Firefox.png
          34 kB
          Roman Arkadijovych Muntyanu
        6. 2011-03-30_17-55-59_TestPage ( XWiki.TestPage) - XWiki - Mozilla Firefox.png
          36 kB
          Roman Arkadijovych Muntyanu
        7. 2011-03-30_17-56-33_Documents on this Wiki (Main.AllDocs) - XWiki - Mozilla Firefox.png
          43 kB
          Roman Arkadijovych Muntyanu
        8. 2011-03-30_17-57-30_TestPage ( XWiki.TestPage) - XWiki - Mozilla Firefox.png
          36 kB
          Roman Arkadijovych Muntyanu
        9. 2011-03-30_17-57-47_TestPage ( XWiki.TestPage) - XWiki - Mozilla Firefox.png
          76 kB
          Roman Arkadijovych Muntyanu
        10. 2011-03-30_17-58-06_TestPage ( XWiki.TestPage) - XWiki - Mozilla Firefox.png
          33 kB
          Roman Arkadijovych Muntyanu
        11. 2011-03-30_17-58-26_Documents on this Wiki (Main.AllDocs) - XWiki - Mozilla Firefox.png
          53 kB
          Roman Arkadijovych Muntyanu
        12. MessedUpDeletedDocuments.png
          21 kB
          Roman Arkadijovych Muntyanu
        13. Screen shot 2011-03-30 at 3.56.01 PM.png
          55 kB
          Vincent Massol
        14. Screen shot 2011-03-30 at 4.22.33 PM.png
          63 kB
          Vincent Massol

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: