-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Basic auth header without user results in exception #7976
Labels
in: web
An issue in web modules (web, webmvc)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
Feb 12, 2020
eleftherias
added
in: web
An issue in web modules (web, webmvc)
type: enhancement
A general enhancement
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
Feb 20, 2020
@eleftherias if no one is working on this i would like to take it. |
eleftherias
added
the
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
label
Mar 5, 2020
Thanks @zeeshanadnan! The issue is yours. |
zeeshanadnan
added a commit
to zeeshanadnan/spring-security
that referenced
this issue
Mar 16, 2020
eleftherias
pushed a commit
that referenced
this issue
Mar 16, 2020
rwinch
removed
the
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
label
Mar 16, 2020
eleftherias
pushed a commit
that referenced
this issue
Mar 16, 2020
spring-projects-issues
added
status: backported
An issue that has been backported to maintenance branches
and removed
for: backport-to-5.3.x
labels
Mar 16, 2020
eleftherias
pushed a commit
that referenced
this issue
Mar 16, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: web
An issue in web modules (web, webmvc)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Summary
When providing a basic auth header without any user/password combination an
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
is thrown.Actual Behavior
When a Basic Auth Web Request is executed with following header:
Authorization: Basic
an index out of range exception is caused. By these lines within the BasicAuthenticationConverterThis exception causes an http 500 respones.
Expected Behavior
Expected would be a http 401 as result of the original web request
Configuration
Version
spring-security: 5.2.2.RELEASE
Sample
The text was updated successfully, but these errors were encountered: