opensciencegrid / stashcp

Apache License 2.0
0 stars 10 forks source link

Recognize missing writeback host #47

Open matyasselmeci opened 2 years ago

matyasselmeci commented 2 years ago

When the writeback host for a namespace is missing or empty, stashcp tries to upload anyway, leading to an error message like

ERROR[2022-08-10T17:48:24-05:00] Error with PUT: Put "https:///osgconnect/public/tlmiller/README.md": http: no Host in request URL

It would be nice if stashcp noticed this and errored out with a message like

No writeback host found for namespace "/osgconnect/public"

instead of trying the PUT.

matyasselmeci commented 2 years ago

This was version 6.8.0.