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

Added support for retrieving uri from referenced_document when uri is external file #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ketoketo
Copy link

Added support for retrieving uri from referenced_document when uri is an external file name.

Use case

XML

<ds:Reference URI="test.xml">
  <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
  <ds:DigestValue></ds:DigestValue>
</ds:Reference>

I encountered an XML with an external file name in the URI, and I was able to solve it by putting it in the hash of referred_documents and retrieving it by URI name, so I fixed it that way. The process to get them from referenced_documents already existed, so I made it into a function and reused it.

@jgg01
Copy link

jgg01 commented Mar 30, 2022

This would help a use case we have as well @ketoketo , thank you

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.

2 participants