Skip to content

Properly show locked file error message in web UI #16701

Closed

Description

@PVince81

Whenever a file is locked, instead of hanging, the web UI needs to show a proper error message.

Currently the network console will return "500 Internal server error" and the log will show that there was a LockingException.

The LockingException needs to be caught properly in the ajax endpoints to be translated into a proper error message.

Needed to be able to show the locking exceptions:

  • rename
  • move
  • new file
  • new folder
  • delete
  • upload
  • download
  • getstoragestats

Activity

  1. added this to the milestone on Jun 3, 2015
  2. self-assigned this
    on Jun 3, 2015
  3. PVince81 commented on Jun 3, 2015

    @PVince81
    ContributorAuthor

    This will require fixing all the ajax calls of the files web UI to properly catch exceptions and actually return them: (something which seems to have been missing for a long while)

  4. PVince81 commented on Jun 3, 2015

    @PVince81
    ContributorAuthor

    PR here #16718

  5. PVince81 commented on Jun 5, 2015

    @PVince81
    ContributorAuthor

    The PR above fixed many operations but not "Download".
    Keeping open to address the "download" case which is more tricky.

  6. PVince81 commented on Jun 18, 2015

    @PVince81
    ContributorAuthor

    Download case here #17009

  7. DeepDiver1975 commented on Jun 26, 2015

    @DeepDiver1975
    Contributor

    getstoragestats

    do we really need this? what's the impact? THX

  8. PVince81 commented on Jun 26, 2015

    @PVince81
    ContributorAuthor

    Probably not needed.
    If that call fails because scanning failed, then the "max upload size" or "free space" will not be updated on the upload button, which isn't that bad.

  9. locked as resolved and limited conversation to collaborators on Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions