Skip Menu |

This queue is for tickets about the XML-XPath CPAN distribution.

Report information
The Basics
Id: 118643
Status: resolved
Priority: 0/
Queue: XML-XPath

People
Owner: MANWAR [...] cpan.org
Requestors: jidanni [...] jidanni.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.38
Fixed in: 1.39



Subject: -e /a/ errors should be caught earlier
Date: Sun, 06 Nov 2016 13:44:26 +0800
To: bug-XML-XPath [...] rt.cpan.org
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
$ echo '<a></a>'|xpath -e /// /dev/stdin #good: token / doesn't match format of a 'Step' $ echo '<a></a>'|xpath -e /a/ /dev/stdin #bad, should be caught earlier: Use of uninitialized value $token in concatenation (.) or string at /usr/share/perl5/XML/XPath/Parser.pm line 636. Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 639. Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 649. Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 670. Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 676. Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 682. Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 688. Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 693. Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 698. Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 703. Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 708. Use of uninitialized value $token in concatenation (.) or string at /usr/share/perl5/XML/XPath/Parser.pm line 766. token doesn't match format of a 'Step' Version: 1.37
Hi @jidanni, Thanks for reporting the issue. I will look into it asap. Best Regards, Mohammad S Anwar
Hi, With my proposed change, I am now getting this, is it acceptable? manwar@ubuntu:~/github/XML-XPath$ echo '<a></a>'|xpath -e /a/ /dev/stdin Found 1 nodes in /dev/stdin: -- NODE -- <a /> Best Regards, Mohammad S Anwar
Subject: Re: [rt.cpan.org #118643] -e /a/ errors should be caught earlier
Date: Mon, 07 Nov 2016 22:04:42 +0800
To: "Mohammad Sajid Anwar via RT" <bug-XML-XPath [...] rt.cpan.org>
From: 積丹尼 Dan Jacobson <jidanni [...] jidanni.org>
I guess it is acceptable. I don't really know XML or the xpath language too well.
Resolved.