shlomif / perl-XML-LibXML

The XML-LibXML CPAN Distribution for Processing XML using the libxml2 library
https://metacpan.org/release/XML-LibXML
Other
17 stars 35 forks source link

Allow to parse XML Schema without accessing network #40

Closed pali closed 4 years ago

pali commented 4 years ago

New optional parameter "no_network => 1" may be added to XML::LibXML::Schema->new() constructor to disallow network access when parsing supplied XML Schema.

Disabling network access when parsing XML is needed to prevent security related problems and also to ensure that for parsing is not needed internet connection.

pali commented 4 years ago

It looks like that building on Travis is broken... It throws error: Can't locate Alien/Libxml2.pm in @INC

pali commented 4 years ago

Testing on Travis is fixed by forcing of usage Ubuntu 14.04 on Travis. Tests are now passing.

shlomif commented 4 years ago

Testing on Travis is fixed by forcing of usage Ubuntu 14.04 on Travis. Tests are now passing.

Ubuntu 14.04 is old, and I don't want to test using it. Please switch Travis to use 18.05 - possibly by removing old versions of perl. Thanks!

pali commented 4 years ago

possibly by removing old versions of perl.

Done. Old perl versions were removed from .travis.yml.

pali commented 4 years ago

See also https://travis-ci.community/t/failure-with-perl-5-16-5-18-5-20/2458/2

We do not compile these for Xenial. If you need these Perl versions, please use Trusty.

pali commented 4 years ago

https://docs.travis-ci.com/user/reference/xenial#perl-support

Supported versions 5.22, 5.24, 5.26, 5.28 and 5.30 can be installed by using the perl:-key.

shlomif commented 4 years ago

Merged now, thanks.