Skip to content

Fully re-submit batch requests on 401 - #468

Merged
rubyist merged 3 commits into
masterfrom
batch401fix
Jul 9, 2015
Merged

rubyist merged 3 commits into
masterfrom
batch401fix

Conversation

@rubyist

@rubyist rubyist commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

When a batch request received a 401, the request was re-run without resetting the Body, causing the request to error and fall back to individual processing. This just reruns the Batch() function.

When a batch request received a 401, the request was re-run without
resetting the Body, causing the request to error and fall back to
individual processing. This just reruns the Batch() function.
Comment thread lfs/client.go

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps unrelated to this PR, but should this tracerx statement be inside Config.SetPrivateAccess()?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be leaning toward putting a message in both. My thinking is: putting one at this level indicates that the auth failed and it's resubmitting, this is the appropriate level for that message. Having one in Config.SetPrivateAccess() shows the config setting being changed, which could come from anywhere (even though this is currently the only place it is called).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me 👍

rubyist added a commit that referenced this pull request Jul 9, 2015
Fully re-submit batch requests on 401
@rubyist
rubyist merged commit 855f1af into master Jul 9, 2015
@rubyist
rubyist deleted the batch401fix branch July 9, 2015 13:48
@technoweenie technoweenie mentioned this pull request Jul 22, 2015
11 tasks done
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.

2 participants