bugZoneCheck - Bugs: bug #16317, undefined method `serial' for...

 
 

bug #16317: undefined method `serial' for nil:NilClass

Submitted by:  Stephane Bortzmeyer <bortzmeyer>
Submitted on:  Mon 10 Apr 2006 08:07:24 PM UTC  
 
Category: testsSeverity: High
Priority: 5 - NormalItem Group: Crash/Error
Status: FixedPrivacy: Public
Assigned to: Fabien CHABANNE <chabannf>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 20 Apr 2007 04:18:38 PM UTC, comment #1:

This should be fixed in the file

test\soa.rb

in the method

chk_soa_coherence()

by substituting the lines

serial_ref = soa(@domain.ns[0][1][0]).serial
serial_other=soa(ip).serial
return true if serial_ref != serial_other

with the line

return true if soa(@domain.ns[0][1][0]).nil? || soa(ip).nil? || soa(@domain.ns[0][1][0]).serial != soa(ip).serial

Marcos Sanz <marcos>
Mon 10 Apr 2006 08:07:24 PM UTC, original submission:

Random (?) error when testing domains where the primary does not send back a SOA.

% zonecheck --ns 'ns.magic.fr;ns2.magic.fr' swaldeco.fr
ZONE : swaldeco.fr.
NS <= : ns.magic.fr. [62.210.158.47]
NS : ns2.magic.fr. [62.39.164.10]

_____________
,---------------.|
~~~~ | warning || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`---------------'
w> The format of the serial number is not YYYYMMDDnn
| Ref: RFC1912 (p.3)
| The recommended syntax is YYYYMMDDnn (YYYY=year, MM=month, DD=day,
| nn=revision number).
`----- -- -- - - -
: The serial 1144674647 doesn't seem to be in the YYYYMMDDnn format.
`..... .. .. . . .
=> ns2.magic.fr./62.39.164.10

___________
,-------------.|
~~~~ | fatal || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`-------------'
f> [TEST coherence of serial number with primary nameserver]: undefined method `serial' for nil:NilClass
=> ns2.magic.fr./62.39.164.10

f> No SOA record found on server
=> ns.magic.fr./62.210.158.47

==> FAILURE (and 1 warning(s))

Stephane Bortzmeyer <bortzmeyer>
Project Administrator

 

(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 (Updated the item)
  • -unavailable- added by marcos (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 22 Jun 2010 02:01:02 PM UTCchabannfOpen/ClosedOpen=>Closed
    Tue 15 Jun 2010 07:40:44 AM UTCchabannfStatusReady For Test=>Fixed
    Thu 04 Feb 2010 01:03:10 PM UTCchabannfStatusNone=>Ready For Test
    Thu 28 Jan 2010 01:32:41 PM UTCchabannfAssigned toNone=>chabannf

    Back to the top


    Powered by Savane 3.1-cleanup1