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] (New) Error with Ipblocks with       more than
      one Ipblock attribute ([email protected])


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

Message: 1
Date: Mon, 8 Jul 2013 03:53:52 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1766] (New) 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 reported by Matej Vadnjal.

----------------------------------------
Bug #1766: Error with Ipblocks with more than one Ipblock attribute
https://osl.uoregon.edu/redmine/issues/1766

Author: Matej Vadnjal
Status: New
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


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

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


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

Reply via email to