-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit endpoint issues #111
Comments
Textual representation of the form (with binary data removed)
As can be seen it the form data appears to be in arbitrary order (created by the request library). Is the parts is expected in lexical order? If the backend parser expect the content in lexical order - that can done by altering the object from Python dictionary to a tuple - giving a result providing in the same order as it was created - grouping the form parts together in logical order
|
I am speculating - and decoded the decodable part of the jwt The cookie token has payload
And the bearer token has payload
Is the storage property used by the daemon, to reject a token issued for another storage ? If that is so, it explains why my CookieAuth test-cases return 401 as I assumed they could be used for either authentication. |
STATUS To recap - I have the upload functionality using bearer token back in place. I found that requests_toolbelt MultipartEncoder did a better job than posting the files object. It was your comment somewhere about the added filename property to the form content which gave me the clue I needed there. The move, copy and delete function still returns 200 but nothing happens. |
STATUS A simple move request for my test packages sinks into a deep black hole - I had to add a timeout in the http client. As of right now - response is never received from the commit endpoint when POSTing a move form
For a delete request, the result is the same
And the copy request
|
In attempts to deduce why I have not been able to fully use the commit endpoint, I have refactored the test cases to print out some debug information
For security reasons - the token is stripped to display the first 15 and the last 15 chars.
The content appear correct for a multipart/form-data request
From the last comment #92 (comment) and the example post #92 (comment)
I have also created testcases using cookie authentication to verify.
For these CookieAuth labelled test, I first used a cookie named
token
and when that failed I added a cookie namedaccess_token
.Where the commit endpoint for uploading packages was previously accepting upload there seems to be an issue now.
These test cases results in
From the debug information it appears like everything is OK.
I feel like I have exhausted my options of troubleshooting the endpoint - please let me know what you make of this
I could of course be a matter of letting the backend do the job - after it is async ...
Related issues
The text was updated successfully, but these errors were encountered: