Skip Menu |

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

Report information
The Basics
Id: 44959
Status: resolved
Priority: 0/
Queue: XML-Compile-SOAP

People
Owner: Nobody in particular
Requestors: jozef [...] kutej.net
Cc:
AdminCc:

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



Subject: XML::Compile::WSDL11 double initialization fails
Date: Sat, 11 Apr 2009 20:51:43 +0200
To: bug-XML-Compile-SOAP [...] rt.cpan.org
From: Jozef Kutej <jozef [...] kutej.net>
diff --git a/t/50wsdl.t b/t/50wsdl.t index dcd4791..0490ba2 100644 --- a/t/50wsdl.t +++ b/t/50wsdl.t @@ -121,6 +121,7 @@ __STOCKQUOTESERVICE_WSDL ### BEGIN OF TESTS ### +my $hmmm = XML::Compile::WSDL11->new($xml_service); my $wsdl = XML::Compile::WSDL11->new($xml_service); ok(defined $wsdl, "created object"); Makes the t/50wsdl.t fail with: XML-Compile-SOAP-2.03$ prove -Ilib t/50wsdl.t t/50wsdl....ok 1/34error: no definitions for `service' found # Looks like you planned 34 tests but only ran 3. # Looks like your test died just after 3. t/50wsdl....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 4-34 Failed 31/34 tests, 8.82% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/50wsdl.t 255 65280 34 62 4-34 Failed 1/1 test scripts. 31/34 subtests failed. Files=1, Tests=34, 1 wallclock secs ( 0.64 cusr + 0.04 csys = 0.68 CPU) Failed 1/1 test programs. 31/34 subtests failed. Same happens in my program when I pass two file names. Regards, Jozef
Subject: Re: [rt.cpan.org #44959] XML::Compile::WSDL11 double initialization fails
Date: Sun, 12 Apr 2009 23:46:57 +0200
To: Jozef Kutej via RT <bug-XML-Compile-SOAP [...] rt.cpan.org>
From: Mark Overmeer <mark [...] overmeer.net>
* Jozef Kutej via RT (bug-XML-Compile-SOAP@rt.cpan.org) [090411 18:52]: Show quoted text
> Sat Apr 11 14:52:04 2009: Request 44959 was acted upon. > Transaction: Ticket created by JKUTEJ > +my $hmmm = XML::Compile::WSDL11->new($xml_service); > my $wsdl = XML::Compile::WSDL11->new($xml_service);
The caching in XML::Compile::Schema is too aggressively deciding that the second schema is a dupplication of the first. Of course, it is... but in a different object... the caching, however, is global, not per object. This requires a tricky rewrite, which is now on my list. -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
Subject: Re: [rt.cpan.org #44959] XML::Compile::WSDL11 double initialization fails
Date: Tue, 14 Apr 2009 09:39:34 +0200
To: bug-XML-Compile-SOAP [...] rt.cpan.org
From: Jozef Kutej <jozef [...] kutej.net>
Mark Overmeer via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=44959 > > > * Jozef Kutej via RT (bug-XML-Compile-SOAP@rt.cpan.org) [090411 18:52]:
>> Sat Apr 11 14:52:04 2009: Request 44959 was acted upon. >> Transaction: Ticket created by JKUTEJ >> +my $hmmm = XML::Compile::WSDL11->new($xml_service); >> my $wsdl = XML::Compile::WSDL11->new($xml_service);
> > The caching in XML::Compile::Schema is too aggressively deciding that > the second schema is a dupplication of the first. Of course, it is... > but in a different object... the caching, however, is global, not per > object.
Hmm it's ok that it's cached but why the code dies? It should fast and happily survive this...
Subject: Re: [rt.cpan.org #44959] XML::Compile::WSDL11 double initialization fails
Date: Tue, 14 Apr 2009 09:55:22 +0200
To: Jozef Kutej via RT <bug-XML-Compile-SOAP [...] rt.cpan.org>
From: Mark Overmeer <solutions [...] overmeer.net>
* Jozef Kutej via RT (bug-XML-Compile-SOAP@rt.cpan.org) [090414 07:39]: Show quoted text
> >> +my $hmmm = XML::Compile::WSDL11->new($xml_service); > >> my $wsdl = XML::Compile::WSDL11->new($xml_service);
> > Hmm it's ok that it's cached but why the code dies? It should fast and happily > survive this...
The "caching" means here: ignore when seen before. Maybe not the right name. So, when processing the same WSDL for the second time, it will skip all definitions because the string has been processed before. Of course, this should be object bound, but currently it is class global... the patch is not simple, but may be ready today. (work-around: add a blank to the second use of the string) -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
got fixed in 2.05