Ticket #207 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Error message when quota limit is reached

Reported by: Michiel.Schok Owned by: Michiel.Schok
Priority: major Milestone: MediaMosa 2.1
Component: Core Version: 2.1.1
Keywords: Cc:
MoSCoW: Could Have Estimated time after impact analysis:
Related to project: none Tested: yes
Accepted: yes Estimated Hours:

Description

When a transcode is started, and the user does not have enough quota, an error message is given. In the result description we observe:

<response>
  <header>
    <item_count>0</item_count>
    <request_process_time>4.1782</request_process_time>
    <request_query_count>17</request_query_count>
    <request_result>error</request_result>
    <request_result_description>Quota limit reached. Allowed size: @quota MB. Used size: @used MB.</request_result_description>
    <request_result_id>1016</request_result_id>
    <request_uri>[POST] mediafile/LYMoYkOLgoYieaulnhPdspAf/transcode</request_uri>
    <vpx_version>1.6.4</vpx_version>
  </header>
  <items/>
</response>

It looks like the '@' sign should be replaced with some numbers.
Or discard the second part of the description and leave only 'Quota Limit reached'.

Change History

Changed 3 years ago by Michiel.Schok

  • summary changed from Foutmelding bij 'over quota' to Error message when quota limit is reached

Changed 3 years ago by Frans

  • moscow set to Could Have
  • milestone changed from MediaMosa X.X to MediaMosa 2.1

Changed 3 years ago by robert

  • owner set to Michiel.Schok
  • status changed from new to assigned

The problem with the values is that is not always a good idea to show the amount and its not easy to figure out the right values.

In case of app quota overflow, you don't want to show it in this error. In other cases with user or group quota overflows, you have to specify where you quota is reached. Currently in 2.1 it throws a 'NOT_ENOUGH_FREE_QUOTA' (code 1503) instead of this error code, which is doesn't include any information about the quota.

I suggest to remove the quota information or add 3 new error types for each possible overflow, one for each user, group and app quota overflows.

Changed 3 years ago by robert

  • status changed from assigned to closed
  • version set to 2.1.1
  • resolution set to fixed

Changed 3 years ago by Michiel.Schok

  • tested set to yes
  • accepted changed from no to yes

We now get an 1503:

    <request_result_description>Upload failed because of too less free quota.</request_result_description>
    <request_result_id>1503</request_result_id>

@Frans, I suggest a textual change: Upload *or transcoding* failed...

Note: See TracTickets for help on using tickets.