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

[6.x.x] Fix missing fn:transform global parameters #4893

Conversation

adamretter
Copy link
Member

Backport of #4883

Problem manifests when loading the stylesheet from eXist-db.

Stylesheet document fetching into sources is not recognising as documents the documents it received from the DB (as opposed to ones which are constructed in memory). All our testing has been done with temporary in memory documents and we missed the case of transform source in eXist-db.

To fix it, we just have to recognise org.exist.dom.persistent.DocumentImpl as well as org.exist.dom.memtree.DocumentImpl as a valid document source;
similarly, the case where a document can be a NodeProxy wasn’t recognised, we just need to fetch the node from the proxy when we recognise it as such, and proceed with using a source wrapping the resulting node as the stylesheet source.

This appears to make the
@adamretter adamretter added the bug issue confirmed as bug label Apr 27, 2023
@adamretter adamretter added this to the eXist-6.2.1 milestone Apr 27, 2023
@reinhapa
Copy link
Member

@adamretter we still got no good test as the OWASP update fails here. Would it make sense to disable OWASP or backport the github actions changes from develop ?

@adamretter
Copy link
Member Author

adamretter commented Apr 28, 2023

@reinhapa I think the changes that fix OWASP have not been merged to develop yet - #4859

@adamretter
Copy link
Member Author

@dizzzz @reinhapa can this be merged now?

@reinhapa reinhapa merged commit 329bcf7 into eXist-db:develop-6.x.x Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue confirmed as bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants