Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25005

contributor appears multiple times with a user prefix when attaching files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10, 10.1
    • Fix Version/s: 9.10-HF10, 10.2
    • Component/s: Core
    • Release Notes Summary:
      The list of contributors is sanitized to handle prefixed and non-prefixed usernames.
    • Tags:
    • Backlog priority:
      350
    • Sprint:
      nxGang Sprint 10.2.6
    • Story Points:
      2

      Description

      1. on https://nightly.nuxeo.com/, login as Administrator
      2. create a File document
      3. click Add a File
      4. save the document
      5. export the document as XML
      6. observe the following:
            <dc:contributors>
              <item><![CDATA[Administrator]]></item>
            </dc:contributors>
        
      7. repeat the operation by replacing the file with another one
      8. observe the XML export remains the same for contributors:
            <dc:contributors>
              <item><![CDATA[Administrator]]></item>
            </dc:contributors>
        
      9. now add an attachment
      10. observe the following XML export:
            <dc:contributors>
              <item><![CDATA[user:Administrator]]></item>
              <item><![CDATA[Administrator]]></item>
            </dc:contributors>
        

        The user Administrator appears more than once with a user prefix.

      11. add 5 more attachments
      12. observe the Administrator user appears now 7 times:
            <dc:contributors>
              <item><![CDATA[user:Administrator]]></item>
              <item><![CDATA[user:Administrator]]></item>
              <item><![CDATA[user:Administrator]]></item>
              <item><![CDATA[user:Administrator]]></item>
              <item><![CDATA[user:Administrator]]></item>
              <item><![CDATA[user:Administrator]]></item>
              <item><![CDATA[Administrator]]></item>
            </dc:contributors>
        

      Expected result: the Administrator user should appear only once and without any prefix.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days
                  4d