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

http://www.springframework.org/schema/security/spring-security.xsd returns 404 #13131

Closed
marketsimulator opened this issue May 4, 2023 · 1 comment
Assignees
Labels
in: build An issue in the build type: bug A general bug
Milestone

Comments

@marketsimulator
Copy link

marketsimulator commented May 4, 2023

Expected behavior
http://www.springframework.org/schema/security/spring-security.xsd

returns 404

should't it return/point-to the latest version of spring-security.xsd? e.g. spring-security-5.4.xsd

I had to update WEB-INF/classes/META-INF/spring/security-context.xml because a .war refused its deployment.

@marketsimulator marketsimulator added status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels May 4, 2023
@jzheaux jzheaux self-assigned this May 8, 2023
@jzheaux jzheaux added in: build An issue in the build and removed status: waiting-for-triage An issue we've not yet triaged labels May 8, 2023
@jzheaux
Copy link
Contributor

jzheaux commented May 8, 2023

Thanks, @marketsimulator. Since the latest is 6.0, http://www.springframework.org/schema/security/spring-security.xsd will point to spring-security-6.0.xsd. I will leave this ticket open to look into what caused the missing file. For now, I've restored it manually.

As a side note, it's recommended that you use HTTPS URLs like https://www.springframework.org/schema/security/spring-security.xsd which the Spring Framework will resolve locally in your deployed WAR. In this way, you'll get a more secure URL and you will not reach out to the public internet to resolve the schema.

If you do choose to resolve the schema remotely, it's also recommended that you pick a specific version so that you are always downloading the schema that is compatible with your Spring Security version. In the case you mentioned, this would be https://www.springframework.org/schema/security/spring-security-5.4.xsd

@jzheaux jzheaux closed this as completed May 8, 2023
@jzheaux jzheaux reopened this May 8, 2023
jzheaux added a commit to jzheaux/spring-security that referenced this issue May 8, 2023
@jzheaux jzheaux added this to the 5.7.9 milestone May 22, 2023
jzheaux added a commit that referenced this issue May 24, 2023
jzheaux added a commit that referenced this issue May 24, 2023
jzheaux added a commit that referenced this issue May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: build An issue in the build type: bug A general bug
Projects
Status: Done
Development

No branches or pull requests

2 participants