Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-1314

User can delete posts of another user if he has permission to delete his own posts

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3 Larks
    • Fix Version/s: 1.4 Larks
    • Labels:
      None
    • Sprint:
      1.3 Larks, 1.4 Larks

      Description

      Preconditions:
      1. There is user User1
      2. There is user User2 which has permission to delete his own posts

      Steps to reproduce
      1. Log on as user1
      2. Create new topic and answer in newly created topic (there should be two posts in the topic).
      3. Log on as user2.
      4. Go to created topic and click "Link to this post" in the second post. Copy link from the window.
      5. View cookies of your browser for JCommune host.
      6. Execute following command with curl utility:

       
      curl -X DELETE --cookie "JSESSIONID=<value from cookies>;GMT=<value from cookies>" <link to the post from step 4>
      

      Expected result
      Post written by User1 should not be deleted.

      Actual behavior
      Post was deleted.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  varro Artem R
                  Reporter:
                  anatolievi4 Andrei Alikov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0h
                    0h
                    Logged:
                    Time Spent - 5h 20m
                    5h 20m

                      Structure Helper Panel