bugZoneCheck - Bugs: bug #30230, [CLI] undefined method `error' for...

 
 

bug #30230: [CLI] undefined method `error' for nil:NilClass

Submitted by:  None
Submitted on:  Wed 23 Jun 2010 10:01:23 AM UTC  
 
Category: inputSeverity: Ordinary
Priority: 5 - NormalItem Group: Crash/Error
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 28 Jun 2010 06:56:55 AM UTC, comment #7:

Fixed in CVS.
Bug came from a difference of behaviour between ruby 1.8 and ruby 1.9.1 for the Array.nitems function.

Diff to previous:
http://cvs.savannah.gnu.org/viewvc/zonecheck/zc/zonecheck.rb?root=zonecheck&r1=1.24&r2=1.25

Fabien CHABANNE <chabannf>
Project Member
Wed 23 Jun 2010 12:50:30 PM UTC, comment #6:

It's Archlinux.

Anonymous
Wed 23 Jun 2010 12:18:29 PM UTC, comment #5:

What are your distribution of Linux and could you please take contact with us by mail at -unavailable-

Fabien CHABANNE <chabannf>
Project Member
Wed 23 Jun 2010 10:34:09 AM UTC, comment #4:

Here:

$ LANG=C zonecheck --debug 0x8000
/usr/local/libexec/zonecheck/zc/zonecheck.rb:191:in `rescue in start': undefined method `error' for nil:NilClass (NoMethodError)
from /usr/local/libexec/zonecheck/zc/zonecheck.rb:196:in `start'
from /usr/local/bin/zonecheck:338:in `<main>'

$ LANG=C zonecheck --INPUT=cli --debug 0x8000
ERROR: One domainname expected

Anonymous
Wed 23 Jun 2010 10:30:38 AM UTC, comment #3:

Could you try with --debug 0x8000 please

Fabien CHABANNE <chabannf>
Project Member
Wed 23 Jun 2010 10:10:32 AM UTC, comment #2:

Oops, I forgot…

$ ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]

$ zonecheck --INPUT=cli --version
zonecheck: version 3.0.0

Anonymous
Wed 23 Jun 2010 10:07:20 AM UTC, comment #1:

% zonecheck
ERROR: One domainname expected

As expected

Stephane Bortzmeyer <bortzmeyer>
Project Administrator
Wed 23 Jun 2010 10:01:23 AM UTC, original submission:

It happens if I call Zonecheck without domain name.

Example:
$ zonecheck
/usr/local/libexec/zonecheck/zc/zonecheck.rb:192:in `rescue in start': undefined method `error' for nil:NilClass (NoMethodError)
from /usr/local/libexec/zonecheck/zc/zonecheck.rb:197:in `start'
from /usr/local/bin/zonecheck:338:in `<main>'

It happens even if I force --INPUT=cli.

With the domain name or with a CLI option, it works properly.

Could it be possible to have a small usage info instead of this error trace?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by chabannf (Posted a comment)
  • -unavailable- added by bortzmeyer (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 29 Jun 2010 02:37:37 PM UTCchabannfOpen/ClosedOpen=>Closed
    Mon 28 Jun 2010 06:56:55 AM UTCchabannfStatusWorks For Me=>Fixed
    Wed 23 Jun 2010 10:07:20 AM UTCbortzmeyerSeverityHigh=>Ordinary
      StatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup