Review main Merged

55371[BUGFIX] Adjust response usage for `file/exists` route

Andreas Kienast CR +2 V +2 Easy +5 −5 updated 01/16/18, 13:20

Commit message

With #83267 a JSON response object was introduced. The patch has the side
effect that any response is now an array but some usages in JavaScript
were not adjusted.

This patch does two things:

- `FileController::fileExistsInFolderAction()` does now either return an
  array for falsy results OR the file object.
- The JavaScript code is adjusted to check for a valid file object by
  requiring the `uid` property instead.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 4