Uploaded image for project: 'Change Request Application'
  1. Change Request Application
  2. CRAPP-308

Authors are not properly set when merging a document creation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.10
    • 1.9.3
    • None
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Reproduction steps:

      • Setup CR so that CR are merged using Admin user
      • Request creation of a new document containing:
        {{velocity}}
        $doc.authors
        {{/velocity}}
        
      • Merge the changes and access the document

      Expected result:

      • The doc displays all authors of the doc which are all Admin

      Obtained result:

      • the doc displays an error saying that the velocity code cannot be executed. Executing this snippet in another doc:
        {{velocity}}
        #set ($myDoc = $xwiki.getDocument('MyDocReference')) ## Put the proper reference here
        $myDoc.authors
        {{/velocity}}
        

      shows that guest user is used for some authors

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: