Send Netdot-devel mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."


Today's Topics:

   1. [Netdot - Bug #1766] Error with Ipblocks with more        than one
      Ipblock attribute ([email protected])
   2. Re: [Netdot - Support #1769] (New) Error when running make
      installdb with PostgresQL 9.2 (Anton Berezin)
   3. [Netdot - Bug #1766] Error with Ipblocks with more        than one
      Ipblock attribute ([email protected])
   4. Re: [Netdot - Bug #1766] Error with Ipblocks with more than
      one Ipblock attribute (William Bulley)


----------------------------------------------------------------------

Message: 1
Date: Tue, 23 Jul 2013 14:11:09 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1766] Error with Ipblocks with
        more    than one Ipblock attribute
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1766 has been updated by Anton Berezin.


Should be really fixed with

https://github.com/tobez/Netdot/commit/9f507894c84f93d6646f77d7c20d1c2b80efb652
----------------------------------------
Bug #1766: Error with Ipblocks with more than one Ipblock attribute
https://osl.uoregon.edu/redmine/issues/1766#change-3104

Author: Matej Vadnjal
Status: Resolved
Priority: Normal
Assignee: 
Category: 
Target version: 
Resolution: 


If you have an Ipblock with two or more custom attributes assigned, you get the 
following error when you click on Attributes tab 
(http://<host>/netdot/management/ip.html?id=1549&view=Attributes):

<pre>

System error

error:  Can't locate object method "address_numeric" via package 
"Netdot::Model::IpblockAttrName" at 
/opt/netdot/htdocs/generic/sortresults.mhtml line 163.

context:        
...     
158:     $alpha = 1;
159:     }
160:     push @lbls, [$obj , $lbl];
161:     }
162:     if ( $ip ){
163:     @lbls = sort {
164:     $a->[0]->$sort_field->address_numeric <=>
165:     $b->[0]->$sort_field->address_numeric
166:     } @lbls;
...     

code stack:      /opt/netdot/htdocs/generic/sortresults.mhtml:162
/opt/netdot/htdocs/management/ip.html:1711
/opt/netdot/htdocs/management/autohandler:81
/usr/share/perl5/HTML/Mason/Request.pm:936
/opt/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21
/opt/netdot/htdocs/autohandler:76

</pre>

I belive the problem is in the regex in line 150 of sortresults.mhtml:

<pre>
                if ( $ref =~ /Ipblock/o ){
                    $ip = 1;
                }
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


------------------------------

Message: 2
Date: Tue, 23 Jul 2013 23:18:30 +0200
From: Anton Berezin <[email protected]>
Subject: Re: [Netdot-devel] [Netdot - Support #1769] (New) Error when
        running make installdb with PostgresQL 9.2
To: [email protected]
Cc: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

On Mon, Jul 22, 2013 at 11:46:23AM -0700, [email protected] wrote:
> ----------------------------------------
> Support #1769: Error when running make installdb with PostgresQL 9.2
> 
> When running make installdb on a 64 bit CentOS 6 machine with PG 9.2 and 
> Netdot 1.0.4, I run into this error:
> 
> Creating Pg database netdot.
> translate: Error with producer 'SQL::Translator::Producer::PostgreSQL': Can't 
> use an undefined value as an ARRAY reference at 
> /usr/local/share/perl5/SQL/Translator/Producer/PostgreSQL.pm line 340.
>  at ../lib/DBUTIL.pm line 267.

What is the version of SQL::Translator?

$ perl -MSQL::Translator -MSQL::Translator::Producer::PostgreSQL -le 'print 
$SQL::Translator::VERSION; print 
$SQL::Translator::Producer::PostgreSQL::VERSION'

\Anton.
-- 
Our society can survive even a large amount of irrational regulation.
  -- John McCarthy


------------------------------

Message: 3
Date: Wed, 24 Jul 2013 03:24:50 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1766] Error with Ipblocks with
        more    than one Ipblock attribute
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1766 has been updated by Matej Vadnjal.


Yes, this is working fine now. Thank you.
----------------------------------------
Bug #1766: Error with Ipblocks with more than one Ipblock attribute
https://osl.uoregon.edu/redmine/issues/1766#change-3105

Author: Matej Vadnjal
Status: Resolved
Priority: Normal
Assignee: 
Category: 
Target version: 
Resolution: 


If you have an Ipblock with two or more custom attributes assigned, you get the 
following error when you click on Attributes tab 
(http://<host>/netdot/management/ip.html?id=1549&view=Attributes):

<pre>

System error

error:  Can't locate object method "address_numeric" via package 
"Netdot::Model::IpblockAttrName" at 
/opt/netdot/htdocs/generic/sortresults.mhtml line 163.

context:        
...     
158:     $alpha = 1;
159:     }
160:     push @lbls, [$obj , $lbl];
161:     }
162:     if ( $ip ){
163:     @lbls = sort {
164:     $a->[0]->$sort_field->address_numeric <=>
165:     $b->[0]->$sort_field->address_numeric
166:     } @lbls;
...     

code stack:      /opt/netdot/htdocs/generic/sortresults.mhtml:162
/opt/netdot/htdocs/management/ip.html:1711
/opt/netdot/htdocs/management/autohandler:81
/usr/share/perl5/HTML/Mason/Request.pm:936
/opt/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21
/opt/netdot/htdocs/autohandler:76

</pre>

I belive the problem is in the regex in line 150 of sortresults.mhtml:

<pre>
                if ( $ref =~ /Ipblock/o ){
                    $ip = 1;
                }
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


------------------------------

Message: 4
Date: Wed, 24 Jul 2013 14:51:50 -0400
From: William Bulley <[email protected]>
Subject: Re: [Netdot-devel] [Netdot - Bug #1766] Error with Ipblocks
        with more than one Ipblock attribute
To: Anton Berezin <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

According to [email protected] on Tue, 07/23/13 at 17:11:
> 
> Issue #1766 has been updated by Anton Berezin.
> 
> Should be really fixed with
> 
> https://github.com/tobez/Netdot/commit/9f507894c84f93d6646f77d7c20d1c2b80efb652

Anton,

I am a bit confused by the above URL.

I have compared the code of htdocs/generic/sortresults.mhtml from
version 1.0.4 with the HEAD of the master branch in the repository
(no changes to this file from middle of last year - 2012) with the
diffs in the above URL.  I do not see the "use NetAddr::IP;" pragma
in the 1.0.4 or master branch files.  Also, the changes show a call
to the "can()" method on (the new) line 151.  Where does this "can"
method appear (in which Perl module or library)?  Thanks!

Regards,

web...

-- 
William Bulley                     Email: [email protected]

72 characters width template ----------------------------------------->|


------------------------------

_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel


End of Netdot-devel Digest, Vol 76, Issue 15
********************************************

Reply via email to