[JAVA-3649] Host returned by the server during MONGODB-AWS conv may contain a dash char. Created: 06/Mar/20  Updated: 28/Oct/23  Resolved: 09/Mar/20

Status: Closed
Project: Java Driver
Component/s: Authentication
Affects Version/s: None
Fix Version/s: 4.1.0

Type: Bug Priority: Major - P3
Reporter: Clyde Bazile III (Inactive) Assignee: Clyde Bazile III (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently, when constructing the auth header for MONGODB-AWS, a call to getRegion doesn't allow a dash in the host. It assumes that the host will be a string of alphanumeric chars, followed by a period, followed by alphanumeric chars. Examples of valid hosts are shown here



 Comments   
Comment by Githook User [ 09/Mar/20 ]

Author:

{'name': 'Clyde Bazile', 'username': 'bazile-clyde', 'email': '34226620+bazile-clyde@users.noreply.github.com'}

Message: JAVA-3649 host returned by server may contain dash (#541)
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/761593d45e0a3ba3a253565b4925d25939da8ead

Comment by Cloud GitHub Webhooks [ 09/Mar/20 ]

bazile-clyde merged a pull request (JAVA-3649 host returned by server may contain dash) into the following branch:
master: 761593d45e0a3ba3a253565b4925d25939da8ead

Generated at Thu Feb 08 09:00:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.