Details
-
Bug
-
Resolution: Fixed
-
Critical
-
3.1.4
-
Security Level: Public
-
None
Description
S3 (the default CB support upload URL) returns "501 Not Implemented" after the changes made in CBG-3591 resulting in failed uploads.
Workaround: Get sgcollect_info to write the zip file to disk instead of uploading it (keep --upload-host empty), and then manually upload to s3 with curl.
A missing Content-Length header is causing S3 to return the 501 error.
The do_upload code changes have been isolated to be the cause of this regression
2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info: Traceback (most recent call last): |
2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info: File "tasks.py", line 1087, in do_upload |
2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info: File "urllib/request.py", line 523, in open |
2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info: File "urllib/request.py", line 632, in http_response |
2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info: File "urllib/request.py", line 561, in error |
2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info: File "urllib/request.py", line 494, in _call_chain |
2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info: File "urllib/request.py", line 641, in http_error_default |
2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info: urllib.error.HTTPError: HTTP Error 501: Not Implemented |