aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2021-05-11 22:44:57 -0400
committerJake Hunsaker <jhunsake@redhat.com>2021-05-14 10:32:33 -0400
commit63817ba9dae2cb64b21ab59279def64572a6459a (patch)
tree11e20f140967c783892952160445962388f31d7e /man
parentacf0ec6cb49156c0b33c9d578df91fedff543bc7 (diff)
downloadsos-63817ba9dae2cb64b21ab59279def64572a6459a.tar.gz
[Policy] Correct and clarify https upload internals
The python requests module does not provide actual support for streaming, that is provided by requests-toolchain. The support in requests is for easy multipart uploads. The internal methods and variables for https uploads within `Policy` however revolve around streaming enablement, but don't actually influence the use of streaming or not. This was due to placeholders during development just being carried forward rather than corrected before merge. This was largely forgotten about, until recent reports of upload issues for user-provided endpoints. This commit serves to correct the language around the currently supported https upload functionality. That is, we either use a 'put' or 'post' based on the loaded policy defaults. Further, allow users to control this setting with a new `--upload-method` option. This will allow users to specify upload urls that may require the opposite HTTP method than what the policy defaults dictate. Related: #2497 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'man')
-rw-r--r--man/en/sos-report.17
1 files changed, 7 insertions, 0 deletions
diff --git a/man/en/sos-report.1 b/man/en/sos-report.1
index a6d247b4..1e626e09 100644
--- a/man/en/sos-report.1
+++ b/man/en/sos-report.1
@@ -362,6 +362,13 @@ be used provided all other required values (case number, upload user) are provid
Specify a directory to upload to, if one is not specified by a vendor default location
or if your destination server does not allow writes to '/'.
.TP
+.B \--upload-method METHOD
+Specify the HTTP method to use for uploading to the provided --upload-url. Valid
+values are 'auto' (default), 'put', or 'post'. The use of 'auto' will default to
+the method required by the policy-default upload location, if one exists.
+
+This option has no effect on upload methods other than HTTPS.
+.TP
.B \--experimental
Enable plugins marked as experimental. Experimental plugins may not have
been tested for this port or may still be under active development.