Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-28048

Moving to trash shouldn't give error if you can't read items in trash

    Details

      Description

      Given a user who does not have access to read content in trash,
      when they move content to trash,
      the move is executed correctly, but they see an error message in the UI: An error occurred when sending 'Example content name' to Trash
      The error message should not be shown.

      I have tracked this to where TrashService emits the TrashSignal:
      https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/SignalSlot/TrashService.php#L85

      The request which returns HTTP 401 is to /api/ezp/v2/content/locations/1/2/221, for node 221 in the Home folder.

        Activity

        Gunnstein Lye created issue -
        Gunnstein Lye made changes -
        Field Original Value New Value
        Epic Link EZP-28047 [ 60613 ]
        Gunnstein Lye made changes -
        Description Given a user who does not have access to read content in trash,
        when they move content to trash,
        the move is executed correctly, but they see an error message in the UI.

        The error message should not be shown.
        Given a user who does not have access to read content in trash,
        when they move content to trash,
        the move is executed correctly, but they see an error message in the UI: {{An error occurred when sending 'Example content name' to Trash}}
        The error message should not be shown.

        I have tracked this to where {{TrashService}} emits the {{TrashSignal}}:
        https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/SignalSlot/TrashService.php#L85
        Gunnstein Lye made changes -
        Description Given a user who does not have access to read content in trash,
        when they move content to trash,
        the move is executed correctly, but they see an error message in the UI: {{An error occurred when sending 'Example content name' to Trash}}
        The error message should not be shown.

        I have tracked this to where {{TrashService}} emits the {{TrashSignal}}:
        https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/SignalSlot/TrashService.php#L85
        Given a user who does not have access to read content in trash,
        when they move content to trash,
        the move is executed correctly, but they see an error message in the UI: {{An error occurred when sending 'Example content name' to Trash}}
        The error message should not be shown.

        I have tracked this to where {{TrashService}} emits the {{TrashSignal}}:
        https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/SignalSlot/TrashService.php#L85

        The request which returns HTTP 401 is to {{/api/ezp/v2/content/locations/1/2/221}}, for node 221 in the Home folder.
        Gunnstein Lye made changes -
        Status Open [ 1 ] Confirmed [ 10037 ]
        Gunnstein Lye logged work - 18/Oct/17 3:30 PM
        • Time Spent:
          2 hours
           

          .

        Gunnstein Lye made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 2 hours [ 7200 ]
        Worklog Id 66028 [ 66028 ]
        Gunnstein Lye logged work - 19/Oct/17 12:30 PM
        • Time Spent:
          4 hours
           

          .

        Gunnstein Lye made changes -
        Time Spent 2 hours [ 7200 ] 6 hours [ 21600 ]
        Worklog Id 66037 [ 66037 ]
        Gunnstein Lye logged work - 20/Oct/17 2:30 PM
        • Time Spent:
          1 hour, 30 minutes
           

          .

        Gunnstein Lye made changes -
        Time Spent 6 hours [ 21600 ] 7 hours, 30 minutes [ 27000 ]
        Worklog Id 66075 [ 66075 ]
        Gunnstein Lye logged work - 23/Oct/17 11:00 AM
        • Time Spent:
          3 hours
           

          .

        Gunnstein Lye made changes -
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
        Gunnstein Lye made changes -
        Status Confirmed [ 10037 ] InputQ [ 10001 ]
        Gunnstein Lye made changes -
        Status InputQ [ 10001 ] Development [ 3 ]
        Gunnstein Lye made changes -
        Time Spent 7 hours, 30 minutes [ 27000 ] 1 day, 2 hours, 30 minutes [ 37800 ]
        Worklog Id 66088 [ 66088 ]
        Gunnstein Lye logged work - 24/Oct/17 12:30 PM
        • Time Spent:
          6 hours, 30 minutes
           

          .

        Gunnstein Lye logged work - 25/Oct/17 1:00 PM
        • Time Spent:
          6 hours
           

          .

        Show
        Gunnstein Lye added a comment - - edited PR: https://github.com/ezsystems/ezpublish-kernel/pull/2125 Merged in 6.7 https://github.com/ezsystems/ezpublish-kernel/commit/e778d2bd6ee2ba850f420f1fb729b832d8b6c342
        Gunnstein Lye made changes -
        Time Spent 1 day, 2 hours, 30 minutes [ 37800 ] 2 days, 30 minutes [ 59400 ]
        Worklog Id 66104 [ 66104 ]
        Gunnstein Lye made changes -
        Time Spent 2 days, 30 minutes [ 59400 ] 2 days, 7 hours [ 82800 ]
        Worklog Id 66106 [ 66106 ]
        Gunnstein Lye logged work - 26/Oct/17 11:00 AM
        • Time Spent:
          6 hours
           

          .

        Gunnstein Lye logged work - 27/Oct/17 11:00 AM
        • Time Spent:
          3 hours
           

          .

        Gunnstein Lye made changes -
        Time Spent 2 days, 7 hours [ 82800 ] 3 days, 2 hours [ 93600 ]
        Worklog Id 66117 [ 66117 ]
        Gunnstein Lye made changes -
        Time Spent 3 days, 2 hours [ 93600 ] 4 days [ 115200 ]
        Worklog Id 66119 [ 66119 ]
        Gunnstein Lye logged work - 01/Nov/17 10:00 AM
        • Time Spent:
          1 hour
           

          .

        Gunnstein Lye made changes -
        Time Spent 4 days [ 115200 ] 4 days, 1 hour [ 118800 ]
        Worklog Id 66145 [ 66145 ]
        Gunnstein Lye logged work - 02/Nov/17 10:30 AM
        • Time Spent:
          4 hours
           

          .

        Gunnstein Lye made changes -
        Time Spent 4 days, 1 hour [ 118800 ] 4 days, 5 hours [ 133200 ]
        Worklog Id 66155 [ 66155 ]
        Gunnstein Lye made changes -
        Time Spent 4 days, 5 hours [ 133200 ] 4 days, 6 hours [ 136800 ]
        Worklog Id 66157 [ 66157 ]
        Gunnstein Lye logged work - 02/Nov/17 5:00 PM
        • Time Spent:
          1 hour
           

          .

        Gunnstein Lye logged work - 03/Nov/17 10:30 AM
        • Time Spent:
          4 hours, 30 minutes
           

          .

        Gunnstein Lye made changes -
        Time Spent 4 days, 6 hours [ 136800 ] 1 week, 2 hours, 30 minutes [ 153000 ]
        Worklog Id 66174 [ 66174 ]
        Gunnstein Lye made changes -
        Component/s Platform UI (Admin UI & Content UI) [ 10301 ]
        Gunnstein Lye logged work - 06/Nov/17 2:30 PM
        • Time Spent:
          30 minutes
           

          .

        Gunnstein Lye made changes -
        Time Spent 1 week, 2 hours, 30 minutes [ 153000 ] 1 week, 3 hours [ 154800 ]
        Worklog Id 66178 [ 66178 ]
        Gunnstein Lye logged work - 07/Nov/17 10:00 AM
        • Time Spent:
          1 hour
           

          .

        Gunnstein Lye made changes -
        Time Spent 1 week, 3 hours [ 154800 ] 1 week, 4 hours [ 158400 ]
        Worklog Id 66181 [ 66181 ]
        Gunnstein Lye logged work - 08/Nov/17 11:00 AM
        • Time Spent:
          1 hour, 30 minutes
           

          .

        Gunnstein Lye made changes -
        Time Spent 1 week, 4 hours [ 158400 ] 1 week, 5 hours, 30 minutes [ 163800 ]
        Worklog Id 66186 [ 66186 ]
        Gunnstein Lye logged work - 09/Nov/17 12:00 PM
        • Time Spent:
          4 hours
           

          .

        Gunnstein Lye made changes -
        Time Spent 1 week, 5 hours, 30 minutes [ 163800 ] 1 week, 1 day, 1 hour, 30 minutes [ 178200 ]
        Worklog Id 66192 [ 66192 ]
        Gunnstein Lye made changes -
        Status Development [ 3 ] Development Review [ 10006 ]
        Gunnstein Lye logged work - 16/Nov/17 2:00 PM
        • Time Spent:
          3 hours
           

          .

        Gunnstein Lye made changes -
        Time Spent 1 week, 1 day, 1 hour, 30 minutes [ 178200 ] 1 week, 1 day, 4 hours, 30 minutes [ 189000 ]
        Worklog Id 66246 [ 66246 ]
        Gunnstein Lye made changes -
        Status Development Review [ 10006 ] Documentation Review done [ 10011 ]
        Affects Version/s 1.12.0 [ 14839 ]
        Affects Version/s 1.7.5 [ 14713 ]
        Fix Version/s Customer request [ 11018 ]
        Fix Version/s 1.12.1 [ 14865 ]
        Fix Version/s 1.7.7 [ 14866 ]
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
        Marek Nocoń made changes -
        Status Documentation Review done [ 10011 ] QA [ 10008 ]
        Hide
        Michał Szołtysek added a comment -

        Retest OK with eZ Platform v1.7.6 with patch e778d2 (on top of 5e47d1).

        Show
        Michał Szołtysek added a comment - Retest OK with eZ Platform v1.7.6 with patch e778d2 (on top of 5e47d1).
        Gunnstein Lye made changes -
        Status QA [ 10008 ] InputQ [ 10001 ]
        Assignee Marek Nocoń [ marek.nocon@ez.no ]
        Gunnstein Lye made changes -
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
        Gunnstein Lye made changes -
        Status InputQ [ 10001 ] Development [ 3 ]
        Gunnstein Lye logged work - 04/Dec/17 12:00 PM
        • Time Spent:
          6 hours
           

          .

        Gunnstein Lye made changes -
        Status Development [ 3 ] Development Review [ 10006 ]
        Gunnstein Lye made changes -
        Status Development Review [ 10006 ] Documentation Review done [ 10011 ]
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
        Gunnstein Lye made changes -
        Time Spent 1 week, 1 day, 4 hours, 30 minutes [ 189000 ] 1 week, 2 days, 2 hours, 30 minutes [ 210600 ]
        Worklog Id 66366 [ 66366 ]
        Marek Nocoń made changes -
        Status Documentation Review done [ 10011 ] QA [ 10008 ]
        Marek Nocoń made changes -
        Status QA [ 10008 ] QA Done [ 10007 ]
        Assignee Marek Nocoń [ marek.nocon@ez.no ]
        Marek Nocoń made changes -
        Status QA Done [ 10007 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        1h 13m 1 Gunnstein Lye 09/Oct/17 4:53 PM
        Confirmed Confirmed InputQ InputQ
        13d 23h 3m 1 Gunnstein Lye 23/Oct/17 3:57 PM
        QA QA InputQ InputQ
        10d 20h 30m 1 Gunnstein Lye 04/Dec/17 11:54 AM
        InputQ InputQ Development Development
        10s 2 Gunnstein Lye 04/Dec/17 11:54 AM
        Development Development Development Review Development Review
        17d 5h 35m 2 Gunnstein Lye 04/Dec/17 4:52 PM
        Development Review Development Review Documentation Review done Documentation Review done
        7d 1h 26m 2 Gunnstein Lye 04/Dec/17 4:52 PM
        Documentation Review done Documentation Review done QA QA
        15d 19h 24m 2 Marek Nocoń 13/Dec/17 1:55 PM
        QA QA QA Done QA Done
        20d 21h 36m 1 Marek Nocoń 03/Jan/18 11:31 AM
        QA Done QA Done Closed Closed
        18s 1 Marek Nocoń 03/Jan/18 11:32 AM

          People

          • Assignee:
            Unassigned
            Reporter:
            Gunnstein Lye
          • 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 - 1 week, 2 days, 2 hours, 30 minutes
              1w 2d 2h 30m