fix: small InputSource related issues by aucampia · Pull Request #2255 · RDFLib/rdflib (original) (raw)

aucampia

Summary of changes

I have added a bunch of tests for InputSource handling, checking every kind of input source with most of the parsers. During this, I detected the following issues that I fixed:

Other changes with no runtime impact include:

Checklist

@coveralls

Coverage Status

Coverage: 90.771%. Remained the same when pulling ec2e5c6 on aucampia:iwana-20230307T1924-fix_iri2uri into a146e0a on RDFLib:main.

@aucampia aucampia marked this pull request as ready for review

March 8, 2023 22:13

@aucampia

I did this while looking at #1844 - but this does not quite address anything there. I plan to make a separate PR with some security documentation and warnings, and maybe an example of how to use python auditing and urllib.request.install_opener to mitigate the issue. I'm going to consider that as closing the matter.

@aucampia

Reduced the size of changes a bit, will merge with no review as this is pretty well tested code and the non-test changes are very minor.

@aucampia

I have added a bunch of tests for InputSource handling, checking every kind of input source with every parser. During this, I detected the following issues that I fixed:

Other changes with no runtime impact include:

@aucampia aucampia deleted the iwana-20230307T1924-fix_iri2uri branch

April 9, 2023 15:04