The trailing slash on /api/users/ causes a redirect problem when trying to use BioBlend to create new Galaxy users on AWS instances. I did not see this on GCP or Jetstream, but AWS will redirect calls to /api/users/ to /api/users and BioBlend does not follow redirects. I investigated supplying a PR to BioBlend, but this has been discussed and rejected before [1], and is a moot point since I was trying to POST data and the requests library changes POST to GET so any posted data is lost [2]. Unfortunately (or not) this behavior is allowed by RFC7231 [3]. Therefore the simplest solution is to simply remove the trailing slash, which does not seem to affect anything else.
The trailing slash on
/api/users/
causes a redirect problem when trying to use BioBlend to create new Galaxy users on AWS instances. I did not see this on GCP or Jetstream, but AWS will redirect calls to/api/users/
to/api/users
and BioBlend does not follow redirects. I investigated supplying a PR to BioBlend, but this has been discussed and rejected before [1], and is a moot point since I was trying toPOST
data and the requests library changesPOST
toGET
so any posted data is lost [2]. Unfortunately (or not) this behavior is allowed by RFC7231 [3]. Therefore the simplest solution is to simply remove the trailing slash, which does not seem to affect anything else.Further testing is still needed.