Skip Menu |
 

This queue is for tickets about the Object-InsideOut CPAN distribution.

Report information
The Basics
Id: 61589
Status: resolved
Priority: 0/
Queue: Object-InsideOut

People
Owner: Nobody in particular
Requestors: MPREWITT [...] cpan.org
Cc: prewittm [...] ms.com
AdminCc:

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



CC: prewittm [...] ms.com
Subject: Unhandled Parameter new feature
Download (untitled) / with headers
text/plain 779b
Just upgraded from OIO 3.38 to 3.67 and started getting fatal errors due to unhandled paramters. I see this is a new feature added sometime after 3.38. While I agree that this is a good feature, we have a lot of code which passes unneeded parameters which are normally ignored. It's been really hard to debug and find all these in our test environment before deploying to production. Is it possible to add an OIO option to make this a non-fatal 'warn' instead of a die? This would allow us to run in prod for a while with the new version and handle any missed fixes. Then, when we are more sure about the remediation we can remove the option. I guess our other option is to install a die handler and convert it to a warn if it's this type of die. Thanks, Marc
Download (untitled) / with headers
text/plain 610b
On Thu Sep 23 11:13:23 2010, MPREWITT wrote: Show quoted text
> Just upgraded from OIO 3.38 to 3.67 and started getting fatal errors > due to unhandled paramters. I see this is a new feature added sometime > after 3.38.
I uploaded v3.68 to CPAN. It will allow you to have unhandled params generate warnings only. From the POD: If you add the following construct to the start of your application: BEGIN { no warnings 'once'; $OIO::Args::Unhandled::WARN_ONLY = 1; } then unhandled parameters will only generate warnings rather than causing exceptions to be thrown. Hope this helps. Thanks for using OIO.
Subject: RE: [rt.cpan.org #61589] Unhandled Parameter new feature
Date: Fri, 24 Sep 2010 10:19:54 -0400
To: <bug-Object-InsideOut [...] rt.cpan.org>
From: "Prewitt, Marc" <Marc.Prewitt [...] morganstanley.com>
Download (untitled) / with headers
text/plain 1.6k
Thanks. That looks like it's what I need. I'll give it a try. Show quoted text
-----Original Message----- From: Jerry D. Hedden via RT [mailto:bug-Object-InsideOut@rt.cpan.org] Sent: Thursday, September 23, 2010 1:34 PM To: MPREWITT@cpan.org Cc: Prewitt, Marc (Corporate Technology) Subject: [rt.cpan.org #61589] Unhandled Parameter new feature <URL: https://rt.cpan.org/Ticket/Display.html?id=61589 > On Thu Sep 23 11:13:23 2010, MPREWITT wrote:
> Just upgraded from OIO 3.38 to 3.67 and started getting fatal errors > due to unhandled paramters. I see this is a new feature added sometime > after 3.38.
I uploaded v3.68 to CPAN. It will allow you to have unhandled params generate warnings only. From the POD: If you add the following construct to the start of your application: BEGIN { no warnings 'once'; $OIO::Args::Unhandled::WARN_ONLY = 1; } then unhandled parameters will only generate warnings rather than causing exceptions to be thrown. Hope this helps. Thanks for using OIO. -------------------------------------------------------------------------- NOTICE: If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
Subject: Re: [rt.cpan.org #61589] Unhandled Parameter new feature
Date: Fri, 24 Sep 2010 10:22:43 -0400
To: bug-Object-InsideOut [...] rt.cpan.org
From: "Jerry D. Hedden" <jdhedden [...] cpan.org>
Download (untitled) / with headers
text/plain 2.1k
There may be some test failures from t/27-exception.t. These are not indicative of code problems. Just 'force' the CPAN install. I'll make another release in a few days to fix the test issue, but it shouldn't involve any changes in the .pm files. On Fri, Sep 24, 2010 at 10:20, marc.prewitt@morganstanley.com via RT <bug-Object-InsideOut@rt.cpan.org> wrote: Show quoted text
>       Queue: Object-InsideOut >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=61589 > > > Thanks.  That looks like it's what I need.  I'll give it a try. > > > -----Original Message----- > From: Jerry D. Hedden via RT [mailto:bug-Object-InsideOut@rt.cpan.org] > Sent: Thursday, September 23, 2010 1:34 PM > To: MPREWITT@cpan.org > Cc: Prewitt, Marc (Corporate Technology) > Subject: [rt.cpan.org #61589] Unhandled Parameter new feature > > <URL: https://rt.cpan.org/Ticket/Display.html?id=61589 > > > On Thu Sep 23 11:13:23 2010, MPREWITT wrote:
>> Just upgraded from OIO 3.38 to 3.67 and started getting fatal errors >> due to unhandled paramters.  I see this is a new feature added sometime >> after 3.38.
> > I uploaded v3.68 to CPAN.  It will allow you to have unhandled params > generate warnings only.  From the POD: > > If you add the following construct to the start of your application: > >  BEGIN { >     no warnings 'once'; >     $OIO::Args::Unhandled::WARN_ONLY = 1; >  } > > then unhandled parameters will only generate warnings rather than > causing exceptions to be thrown. > > Hope this helps.  Thanks for using OIO. > > > > -------------------------------------------------------------------------- > NOTICE: If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing. > >
Subject: Re: [rt.cpan.org #61589] Unhandled Parameter new feature
Date: Fri, 24 Sep 2010 15:25:55 -0400
To: bug-Object-InsideOut [...] rt.cpan.org
From: "Jerry D. Hedden" <jdhedden [...] cpan.org>
Download (untitled) / with headers
text/plain 452b
On Fri, Sep 24, 2010 at 10:22, Jerry D. Hedden <jdhedden@cpan.org> wrote: Show quoted text
> There may be some test failures from t/27-exception.t.  These are not > indicative of code problems.  Just 'force' the CPAN install.  I'll > make another release in a few days to fix the test issue, but it > shouldn't involve any changes in the .pm files.
Disregard this caveat. 3.68 is fine. The problem I noted is against blead perl. So all is well out in the field.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.