Skip to content

Add HTTP 507 (Insufficient Storage) to the list of optional statuses - #1473

Merged
ttaylorr merged 2 commits into
git-lfs:masterfrom
dpursehouse:http-507
Aug 22, 2016
Merged

ttaylorr merged 2 commits into
git-lfs:masterfrom
dpursehouse:http-507

Conversation

@dpursehouse

Copy link
Copy Markdown
Contributor

Mention that the server implementation may optionally return status
code 507.

This does not add any specific handling of 507 in either the client or
the test server implementation. If a server returns this status code,
it will be handled by the client as a generic "Server Error".

See #1327 and #1438.

Mention that the server implementation may optionally return status
code 507.

This does not add any specific handling of 507 in either the client or
the test server implementation. If a server returns this status code,
it will be handled by the client as a generic "Server Error".

See git-lfs#1327 and git-lfs#1438.

Change-Id: I2de691bb57b3ef44288b91b79226695f768ec44e
Signed-off-by: David Pursehouse <[email protected]>
@ttaylorr

Copy link
Copy Markdown
Contributor

Looks good. Would you mind also adding an entry for a 507 response here, as per #1438 (comment)?

@dpursehouse

Copy link
Copy Markdown
Contributor Author

Would you mind also adding an entry for a 507 response

That was omitted intentionally, such that the error code is mentioned in the document allowing servers to optionally return it, but the client behaviour is unchanged and a generic error will be shown. This is consistent with the behaviour for other optional codes such as 429 and 529.

If it's OK to add a specific message for 507, I would prefer to do that in a separate PR along with the other ones that are also omitted.

Change-Id: Ia42731e35f2aa7b918de3d0412205700df968d95
Signed-off-by: David Pursehouse <[email protected]>
@dpursehouse

Copy link
Copy Markdown
Contributor Author

@ttaylorr I added the messages in c7022e7.

@technoweenie

Copy link
Copy Markdown
Contributor

@dpursehouse I would've accepted a separate PR, but this works too 👍

@ttaylorr
ttaylorr merged commit 68c0e18 into git-lfs:master Aug 22, 2016
@ttaylorr

Copy link
Copy Markdown
Contributor

Merged this in as a single commit by accident, I think GitHub remembered that from when I merged the 1.4.0 release branch. I'll unset that default so that this doesn't happen again.

Thanks anyways!

@dpursehouse

Copy link
Copy Markdown
Contributor Author

\o/

thanks.

@dpursehouse
dpursehouse deleted the http-507 branch August 22, 2016 16:43
chetnachaudhari pushed a commit to chetnachaudhari/jgit that referenced this pull request Oct 3, 2016
Since [1], the git-lfs specification allows the server to return
HTTP 507 if there is insufficient storage for the uploaded object(s).

Add a new exception class, which implementations may throw from the
getRepository() method, causing HTTP 507 to be returned to the client.

[1] git-lfs/git-lfs#1473

Change-Id: If5bc0a35fcf870d4216af6ca2f7c8924689ef9c5
Signed-off-by: David Pursehouse <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants