-
Notifications
You must be signed in to change notification settings - Fork 887
validation via xml catalog fails #8464
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
Comments
would be worth checking if the behavior is different on JDK 17 or older NB versions, since Java changed some defaults of the xml APIs in recent releases. |
Validated XML against XSD today with a master build from a few week ago. Worked. This need precise steps to reproduce. And I mean starting from a clean user dir, where to download which XSD, demonstration XML. From my POV XML validation works as it should. |
Tested this, it does not help. I'll attach files |
The xsd's with catalog: The xml that should validate: |
Validation works, saving does not.
I get:
=> Catalog is not there anymore |
Problem is there since at least NB 9 (I suspect this never worked). |
I can confirm that when choosing OASIS catalog resolver, validation works, also when running netbeans with non-empty user and cache dirs. When choosing XML catalog, validation does not work. |
@eduarddrenth a fix is available from #8489, which should cover the problems raised here. A dev/nightly build is available from the checks page or directly: https://github.com/apache/netbeans/suites/38113223012/artifacts/3064311337. It would be great if you could test it. |
Tested with the dev build. Validation works with oasis catalog (which is now the default when adding a catalog). After closing and reopening netbeans, validation still works. |
Apache NetBeans version
Apache NetBeans 25
What happened
instead you see for example:
Language / Project Type / NetBeans Component
xml, xslt
How to reproduce
see above
Did this work correctly in an earlier version?
No / Don't know
Operating System
ubuntu 24
JDK
java-21-openjdk-amd64
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
Not sure if I am able to contribute, but I have plenty of java and xml experience
Are you willing to submit a pull request?
Yes
The text was updated successfully, but these errors were encountered: