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 made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 2 hours [ 7200 ]
        Worklog Id 66028 [ 66028 ]
        Gunnstein Lye made changes -
        Time Spent 2 hours [ 7200 ] 6 hours [ 21600 ]
        Worklog Id 66037 [ 66037 ]
        Gunnstein Lye made changes -
        Time Spent 6 hours [ 21600 ] 7 hours, 30 minutes [ 27000 ]
        Worklog Id 66075 [ 66075 ]
        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 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 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 made changes -
        Time Spent 4 days [ 115200 ] 4 days, 1 hour [ 118800 ]
        Worklog Id 66145 [ 66145 ]
        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 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 made changes -
        Time Spent 1 week, 2 hours, 30 minutes [ 153000 ] 1 week, 3 hours [ 154800 ]
        Worklog Id 66178 [ 66178 ]
        Gunnstein Lye made changes -
        Time Spent 1 week, 3 hours [ 154800 ] 1 week, 4 hours [ 158400 ]
        Worklog Id 66181 [ 66181 ]
        Gunnstein Lye made changes -
        Time Spent 1 week, 4 hours [ 158400 ] 1 week, 5 hours, 30 minutes [ 163800 ]
        Worklog Id 66186 [ 66186 ]
        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 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 ]
        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 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 ]

          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