Skip to content
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

Do not include an explicit default port number within S3 upload URI #2694

Merged
merged 1 commit into from Mar 22, 2021

Conversation

mcb30
Copy link
Contributor

@mcb30 mcb30 commented Mar 22, 2021

The S3 uploader will currently always include an explicit port number
within URIs (e.g. "http://mybucket.s3.us-east-1.amazonaws.com:80")
even when using the default HTTP port 80.

This is not incorrect, but unfortunately triggers a bug within libcurl
(see curl/curl#6769) that causes it to
construct requests that will be rejected if they happen to pass
through HAProxy.

Work around this libcurl bug by omitting an explicit port number from
the constructed URI when the default port is used.

Signed-off-by: Michael Brown mbrown@fensystems.co.uk

The S3 uploader will currently always include an explicit port number
within URIs (e.g. "http://mybucket.s3.us-east-1.amazonaws.com:80")
even when using the default HTTP port 80.

This is not incorrect, but unfortunately triggers a bug within libcurl
(see curl/curl#6769) that causes it to
construct requests that will be rejected if they happen to pass
through HAProxy.

Work around this libcurl bug by omitting an explicit port number from
the constructed URI when the default port is used.

Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
@cernvm-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@jblomer
Copy link
Member

jblomer commented Mar 22, 2021

@cernvm-bot cloudtest

@jblomer
Copy link
Member

jblomer commented Mar 22, 2021

@cernvm-bot cpplint

@jblomer
Copy link
Member

jblomer commented Mar 22, 2021

@cernvm-bot unittest

@cernvm-bot
Copy link
Collaborator

building for cloudtests finished: SUCCESS
https://lcgapp-services.cern.ch/cvmfs-jenkins/job/CvmfsFullBuildDocker/2775/

@cernvm-bot
Copy link
Collaborator

Copy link
Member

@jblomer jblomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting catch on the curl side!

@jblomer jblomer merged commit c3cc41d into cvmfs:devel Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants