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


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

Submitted by:  None
Submitted on:  Wed Jun 23 10:01:23 2010  
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 Jun 28 06:56:55 2010, 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:

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

It's Archlinux.

Wed Jun 23 12:18:29 2010, 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 Jun 23 10:34:09 2010, comment #4:


$ 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

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

Could you try with --debug 0x8000 please

Fabien CHABANNE <chabannf>
Project Member
Wed Jun 23 10:10:32 2010, 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

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

% zonecheck
ERROR: One domainname expected

As expected

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

It happens if I call Zonecheck without domain name.

$ 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?



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

Attach File(s):

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 Jun 29 14:37:37 2010chabannfOpen/ClosedOpen=>Closed
    Mon Jun 28 06:56:55 2010chabannfStatusWorks For Me=>Fixed
    Wed Jun 23 10:07:20 2010bortzmeyerSeverityHigh=>Ordinary
      StatusNone=>Works For Me

    Back to the top

    Powered by Savane 3.1-cleanup1