Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Webinject CPAN distribution.

Report information
The Basics
Id: 74629
Status: resolved
Priority: 0/
Queue: Webinject

People
Owner: NIERLEIN [...] cpan.org
Requestors: s.j.small [...] exeter.ac.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.71
Fixed in: (no value)



I have serveral checks which all work with Webinject 1.41. They however fail with Webinject 1.71. The problem seems to occur when the value of PARSEDRESULT1 (or PARSEDRESULT2 etc) is read. The error message is 'Can't call method "parseresponse" without a package or object reference at /usr/local/share/perl5/Webinject.pm line 1465.' In the following example case 1 & 2 work as expected but case 3 throws the error. <case id="1" description1="..." description2="..." method="post" url="..." postbody="..." verifyresponsecode="..." parseresponse="Location: |\n" /> <case id="2" description1="..." description2="..." method="get" url="{PARSEDRESULT}" parseresponse='name=\"RelayState\" value="|"' parseresponse1='name=\"SAMLResponse\" value="|"|escape' verifyresponsecode="..." verifypositive="..." /> <case id="3" description1="..." description2="..." method="post" postbody="RelayState={PARSEDRESULT}&SAMLResponse {PARSEDRESULT1}" url="..." verifyresponsecode="..." /> I notice that in your tests 03-parse_response.xml and 20-full_test.xml populate these variables but do not attempt to read from them.
Subject: Re: [rt.cpan.org #74629]
Date: Thu, 02 Feb 2012 19:20:21 +0100
To: bug-Webinject [...] rt.cpan.org
From: Sven Nierlein <sven [...] nierlein.de>
Hi, could you try the fix from https://github.com/sni/Webinject/commit/af67183eeacb871024adb81a0c5e68ee42fc34d3 and see if that works for you? Thanks for reporting this issue. Sven
From: s.j.small [...] exeter.ac.uk
Thank you very much for providing the patch and resolving the matter so quickly. The patch works for all my checks. I consider the bug fixed. On Thu Feb 02 13:20:32 2012, sven@nierlein.de wrote: Show quoted text
> Hi, > > could you try the fix from >
https://github.com/sni/Webinject/commit/af67183eeacb871024adb81a0c5e68ee42fc34d3 Show quoted text
> and see if that works for you? > > Thanks for reporting this issue. > Sven
Thanks for reporting the issue, i just uploaded the fixed package to cpan.