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

Lock is not working for ConfigurableClass when the page is under a nested space

    XMLWordPrintable

Details

    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      Replication steps:

      • Login as admin
      • Create a document xwiki:Foo.Bar.WebHome
      • Edit in wiki mode this document, add the following snippet and save:
        {{velocity}}
        #set($lock = $doc.getDocument().getLock($xcontext.getContext()))
        Locked by $lock.getUserName()
        {{/velocity}}
        
      • Edit the same document with class editor to add a String property named String and save
      • Edit the same document with object editor to add:
        • a Foo.Bar.WebHome object
        • a XWiki.ConfigurableClass object with the following properties:
          • displayInSection: Custom Foo Section
          • configurationClass: Foo.Bar.WebHome
          • configureGlobally: checked
      • Save and view the page
      • Open the admin in another tab, click on "Other" section, and open "Custom Foo Section"
      • Back on the previous tab, reload Foo.Bar.WebHome

      Expected result:

      • The page should display: Locked by XWiki.Admin

      Obtained result

      • The page display: Locked by $lock.getUserName()

       

      Note that the bug doesn't reproduce if you use Foo.WebHome instead of Foo.Bar.WebHome

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: