Ticket #1148 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

DNS serial is not updated more than once a day when changing sub domains

Reported by: anders(a)adev.se Assigned to: rats
Priority: major Milestone: ispCP ω 1.0.0 - RC5
Component: Backend (Engine) Version: ispCP ω 1.0.0 - RC4
Severity: Don't know Keywords:
Cc:

Description

I have fixed this in the ispcp-sub-mngr with start on line 286 and 494 with this code:

    #
    # {TIMESTAMP} must be updated too;
    #

    ($rs, $rdata) = get_tag($db_time_b, $db_time_e, $working);

    return $rs if ($rs != 0);

    my @rdata2 = split(/\n/, $rdata);
    my $seq = $rdata2[1];

    $seq =~ s/^\s+//;
    $seq =~ s/\s+$//;
    $seq = substr($seq, -2);
    $seq = int($seq) + 1;

    #
    # Timestamp fix for DNS - Data
    #

    my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
    my $time2 = sprintf "%4d%02d%02d%02d",$year+1900,$mon+1,$mday,$seq;

Attachments

Change History

03/30/2008 04:54:56 PM changed by rats

  • owner set to rats.
  • status changed from new to assigned.
  • milestone changed from Working to ispCP ω 1.0.0 - RC5.

(follow-up: ↓ 3 ) 03/31/2008 09:44:15 AM changed by rats

  • status changed from assigned to closed.
  • resolution set to fixed.

I hope it works as it should; untested - what, if no sequence set?

added in r1089

(in reply to: ↑ 2 ) 04/03/2008 08:39:07 AM changed by anders[a]adev.se

It seems like you have missed to change the string on the last row:

You must change "01" to "%02d":

my $time2 = sprintf "%4d%02d%02d%02d",$year+1900,$mon+1,$mday,$seq;

I hope it works as it should; untested - what, if no sequence set? added in r1089

04/19/2008 05:45:43 AM changed by anders[a]adev.se

  • status changed from closed to reopened.
  • resolution deleted.

Is my last comment fixed anywhere?

04/23/2008 10:39:55 PM changed by rats

  • status changed from reopened to closed.
  • resolution set to fixed.

added in r1124

04/28/2008 10:48:13 PM changed by anders[a]adev.se

  • status changed from closed to reopened.
  • resolution deleted.

Needs to be fixed on line 510 aswell.

04/29/2008 09:34:50 PM changed by rats

  • status changed from reopened to closed.
  • resolution set to fixed.

thank you; I oversaw it! (r1132)


Add/Change #1148 (DNS serial is not updated more than once a day when changing sub domains)




Action