We should consider adding a relative softlink in config/src/main/resources/org/springframework/security/config so that spring-security.xsd points to the latest schema.
Context
A configuration change was made to allow spring-security-*.xsd files available under https://www.springframework.org/schema/security/ to be automatically linked to the latest artifact extracted to /var/www/domains/spring.io/docs/htdocs/autorepo/schema on the web host (see gh-11353).
However, the file spring-security.xsd was manually updated to be a softlink to the latest schema (e.g. spring-security-5.7.xsd).
Comment From: rwinch
Just curious if you were aware that this is used for symlink creation https://github.com/spring-io/autoln
Comment From: sjohnr
For sure! I discussed this with @trevormarshall recently, as we were working through gh-11353.
Since the file spring-security.xsd is already inside a directory that is managed through autoln (/var/www/domains/spring.io/docs/htdocs/autorepo/schema/spring-security/current/spring-security.xsd), the softlink was added manually for the time being. Is there a way for autoln to manage a single file under another autoln directory?
Comment From: trevormarshall
@sjohnr I think this might be what you mean https://github.com/spring-projects/spring-framework/wiki/autorepo-version-updating#autoschemaln
Shall we try touch /var/www/domains/spring.io/docs/htdocs/autorepo/schema/spring-security/.autoschemaln ?
Comment From: sjohnr
Sorry for the delay on this, @trevormarshall. Your suggestion sounds good to me. Do we need to clean up the existing (manually created) symlink for spring-security.xsd first? I'm not sure how different layers of manual and automatic symlinks will interact with each other.
Comment From: trevormarshall
No I don't believe we do @sjohnr. Let me know when you want me to enable for your directory (or feel free to enable yourselves, if a team member has shell access on the server)
Comment From: sjohnr
@trevormarshall Please go ahead now. I'll be available to verify once it's taken effect.
Comment From: trevormarshall
@sjohnr done. It will be ready to verify in 20 minutes.
Comment From: sjohnr
Thanks!