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

[JBEAP-19150] JSF trying to load DTD over the network #66

Closed
wants to merge 123 commits into from

Conversation

moulalis
Copy link

@moulalis moulalis commented Apr 27, 2020

ren-zhijun-oracle and others added 30 commits April 16, 2018 14:18
Updated Maven coordinates according to Jakarta requirements
With previous value project cannot be even cleaned against fresh/empty Maven repo.

Signed-off-by: Piotrek Zygielo <[email protected]>
@spyrkob
Copy link

spyrkob commented Apr 27, 2020

@moulalis can you link the upstream issue and PR in the description please

@rmartinc
Copy link

@moulalis Please try to also fix the same issue in the method getFacesConfigXmlVersion (just above the method you have modified). Maybe you have to reuse the createDocumentBuilderFactory to create the factory. And in the setFeature method try to catch the ParserConfigurationException in order to support another implementations (if that feature is not supported just do nothing, check the other methods too, if some exception can be thrown). Note that I just applied the recommended settings from owasp.

@moulalis
Copy link
Author

moulalis commented Apr 28, 2020

@moulalis Please try to also fix the same issue in the method getFacesConfigXmlVersion (just above the method you have modified). Maybe you have to reuse the createDocumentBuilderFactory to create the factory. And in the setFeature method try to catch the ParserConfigurationException in order to support another implementations (if that feature is not supported just do nothing, check the other methods too, if some exception can be thrown). Note that I just applied the recommended settings from owasp.

@rmartinc I am done the above changes, please verify. Regarding the Exception the setFeature is throwing "ParserConfigurationException" I have handled that separately. on dbf.newDocumentBuilder().parse(stream) line there are two exceptions thrown ParserConfigurationException and SAXException handled that at the end.

@rmartinc
Copy link

The functionality is OK to me now. But the indentation seems to be strange (maybe you are using tabs and not spaces or similar). And we just do one commit for JIRA, so squash the three changes into just one.

With those two things is OK to me.

@moulalis
Copy link
Author

The functionality is OK to me now. But the indentation seems to be strange (maybe you are using tabs and not spaces or similar). And we just do one commit for JIRA, so squash the three changes into just one.

With those two things is OK to me.

@rmartinc Formatted and squashed.

@moulalis moulalis changed the base branch from 2.3.9.SP to 2.3.5.SP April 30, 2020 08:50
@moulalis moulalis closed this Apr 30, 2020
@moulalis moulalis deleted the JBEAP-19150 branch April 30, 2020 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.