Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-13631

Audit: endpoint /alfresco/service/api/audit/clear/{application}?fromTime={fromTime}&toTime={toTime} returns a number with currency format.

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 4.2.3
    • Fix Version/s: 4.2.5
    • Component/s: Auditing
    • Labels:
      None

      Description

      [Step to reproduce]
      1. Enable Audit
      2. Issue more than 1000 audit activities such as creates contents, delete contents.
      3. Run this POST query

        /alfresco/service/api/audit/clear/{application}?fromTime={fromTime}&toTime={toTime} 

      For example;
      http://localhost:8080/alfresco/service/api/audit/clear/alfresco-access?fromTime=1410809790000&toTime=1510809790000

      [Actual Behaviour]
      It returns a number with currency format as follows, please find the attached screenshot named "clear_post_current" for further assistance.

      { "cleared" : 1,005 }

      [Expected Behaviour]
      It should return a number without comma.

      { "cleared" : 1005 }

      [Work Around]
      add "?c" after the forward of "${cleared" in clear.post.json.ftl as follows, which will remove the comma.
      I attached the fixed file, and the corresponding screenshots clearpost_fixed.png for further assistance.

      {
      "cleared" : ${cleared?c}
      }

        Attachments

        1. clear.post.json.ftl
          0.0 kB
        2. clear_post_current.png
          clear_post_current.png
          102 kB
        3. clearpost_fixed.png
          clearpost_fixed.png
          123 kB

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  kkono Kazuyuki Kono
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 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 - 1 day, 1 hour
                    1d 1h

                      Structure Helper Panel