Page MenuHomePhabricator

Catch more HTTP VCS errors and convert them into VCS repsonses
ClosedPublic

Authored by epriestley on Jan 27 2021, 12:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 9 2024, 4:47 PM
Unknown Object (File)
Jan 8 2024, 3:03 PM
Unknown Object (File)
Dec 27 2023, 1:40 PM
Unknown Object (File)
Dec 22 2023, 3:27 AM
Unknown Object (File)
Nov 30 2023, 5:14 AM
Unknown Object (File)
Nov 18 2023, 10:38 AM
Unknown Object (File)
Jul 24 2023, 12:27 PM
Unknown Object (File)
Jul 16 2023, 9:20 AM
Subscribers
None

Details

Summary

Ref T13590. Currently, errors arising from cluster locking (like the "stuck write lock" exception) are not caught and converted into VCS responses on the HTTP VCS workflow.

Catch a broader range of exceptions and convert them into appropriate responses.

Test Plan
  • Forced a "stuck write lock" exception, pushed to a Git repository over HTTP.
  • Before: generic fatal.
  • After: VCS-specific fatal with a useful message in the "X-Phabricator-Message" response header.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable