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

 
 

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

Submitter:  None
Submitted:  Wed 23 Jun 2010 10:01:23 AM UTC
   
 
Category:  input Severity:  Ordinary
Priority:  5 - Normal Item Group:  Crash/Error
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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 -email is unavailable-

Fabien CHABANNE <chabannf>
Group 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>
Group 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>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-29 chabannf Open/ClosedOpen Closed
    2010-06-28 chabannf StatusWorks For Me Fixed
    2010-06-23 bortzmeyer SeverityHigh Ordinary
        StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code