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

Activity Stream shows minor edit even when not asked to under some circumstances

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2 M1
    • Fix Version/s: None
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      To reproduce:

      • Create a new page with the following content:
      {{groovy}}
      if (request.getParameter("confirm") == "1") {
        def mydoc = xwiki.getDocument("Sandbox.TestPage1")
        mydoc.addAttachment("test1.png", "content1".getBytes())
        mydoc.save("test1", true)
      }
      {{/groovy}}
      
      • Add ?confirm=1 to this page URL to execute its code
      • Check the history of Sandbox.TestPage1 and verify that the attachment addition was done as a *minor* edit
      • Go to the activity stream and you'll notice that the change is displayed even though it's a minor edit and thus shouldn't be shown by defaut

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Date of First Response: