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 #1664] (Resolved) Changing "General Name and
      Domain" of Device fails ([email protected])
   2. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC3-39-g2981939 (Apache)
   3. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC3-40-g4432b6b (Apache)
   4. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC3-41-g481b0c5 (Apache)


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

Message: 1
Date: Tue, 24 Jul 2012 06:25:05 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1664] (Resolved) Changing
        "General        Name and Domain" of Device fails
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1664 has been updated by Carlos Vicente.

Status changed from New to Resolved
Target version changed from 1.0.1-RC3 to 1.0.1
Resolution set to fixed


----------------------------------------
Bug #1664: Changing "General Name and Domain" of Device fails
https://osl.uoregon.edu/redmine/issues/1664

Author: Florian Sch?del
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: DeviceManagement
Target version: 1.0.1
Resolution: fixed


Hello there,

In my Netdot 1.0.1-rc3 installation it isn't possible to change the name and 
domain of a new or an existing device 
(http://x.y.z.z2/netdot/management/device.html?id=xx&view=Basics&editgen=1). 
This operation is aborted due to the following error: 

device.html produced the following error:


Transaction aborted: Error while updating Device: Can't call method "get_label" 
without a package or object reference at 
/usr/local/netdot/lib/Netdot/Model/Device.pm line 2344.

Stack:
  [/usr/local/netdot/lib/Netdot/Model/Device.pm:2344]
  [/usr/local/netdot/lib/Netdot/Model/Device.pm:2362]
  [/usr/local/netdot/lib/Netdot/Model.pm:163]
  [/usr/local/netdot/lib/Netdot/Model.pm:121]
  [/usr/local/share/perl/5.14.2/Class/Trigger.pm:74]
  [/usr/local/share/perl/5.14.2/Class/DBI.pm:796]
  [/usr/local/netdot/lib/Netdot/Model.pm:819]
  [/usr/local/netdot/lib/Netdot/Model/Device.pm:2423]
  [/usr/local/netdot/lib/Netdot/UI.pm:253]
  [/usr/local/netdot/htdocs/management/device.html:155]
  [/usr/local/netdot/htdocs/management/device.html:156]
  [/usr/local/netdot/htdocs/management/autohandler:81]
  [/usr/local/share/perl/5.14.2/HTML/Mason/Request.pm:948]
  
[/usr/local/netdot/htdocs/masondata/obj/1249759374/management/autohandler.obj:21]
  [/usr/local/netdot/htdocs/autohandler:76]



I would be very glad, if this bug would be fixed in the next RC-Version, 
because I've recommended my employer to use netdot instead of excel. 
Thanks a lot

Florian





-- 
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, 24 Jul 2012 06:55:00 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC3-39-g2981939
To: [email protected]
Message-ID: <[email protected]>

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot Git repository".

The branch, netdot-1.0 has been updated
       via  29819393c52be598536dabdca509dd2395a758bb (commit)
       via  396ff47c87be71fa16e867b35f56dc3ee0fe4655 (commit)
       via  dddcc66af85c5af9d850c1d284cefc707694edbd (commit)
       via  91c37baf09bf15509c150be409f2919a20706abf (commit)
       via  c9d892e1d36ae29d9642e2fb68efc5c40a6d8e2c (commit)
      from  7e9fd90c2d015cdd056194121f82f9c26e323253 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 29819393c52be598536dabdca509dd2395a758bb
Merge: 396ff47 7e9fd90
Author: Carlos Vicente <[email protected]>
Date:   Mon Jul 23 20:23:47 2012 -0700

    Merge branch 'netdot-1.0' of https://netdot.uoregon.edu/git/netdot into 
netdot-1.0


commit 396ff47c87be71fa16e867b35f56dc3ee0fe4655
Merge: dddcc66 6209831
Author: Carlos Vicente <[email protected]>
Date:   Mon Jul 23 20:07:44 2012 -0700

    Merge branch 'netdot-1.0' of https://netdot.uoregon.edu/git/netdot into 
netdot-1.0


commit dddcc66af85c5af9d850c1d284cefc707694edbd
Merge: 91c37ba 00cd3bb
Author: Carlos Vicente <[email protected]>
Date:   Mon Jul 23 19:46:03 2012 -0700

    Merge branch 'netdot-1.0' of https://netdot.uoregon.edu/git/netdot into 
netdot-1.0


commit 91c37baf09bf15509c150be409f2919a20706abf
Merge: c9d892e 0277037
Author: Carlos Vicente <[email protected]>
Date:   Mon Jul 23 19:28:23 2012 -0700

    Merge branch 'netdot-1.0' of https://netdot.uoregon.edu/git/netdot into 
netdot-1.0


commit c9d892e1d36ae29d9642e2fb68efc5c40a6d8e2c
Author: Carlos Vicente <[email protected]>
Date:   Mon Jul 23 07:41:27 2012 -0700

    Correction

diff --git a/htdocs/generic/edit.html b/htdocs/generic/edit.html
index ae28680..aea87cb 100644
--- a/htdocs/generic/edit.html
+++ b/htdocs/generic/edit.html
@@ -160,7 +160,7 @@ if ( $table ){
            my $new;
            eval{
                Netdot::Model->do_transaction( sub{
-                   $ui->check_value_lenghts($table, \%args);
+                   $ui->check_value_lengths($table, \%args);
                    $new = $table->insert(\%args);
                                               });
            };

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

Summary of changes:
 htdocs/generic/edit.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 3
Date: Tue, 24 Jul 2012 07:29:48 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC3-40-g4432b6b
To: [email protected]
Message-ID: <[email protected]>

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot Git repository".

The branch, netdot-1.0 has been updated
       via  4432b6b224567a0cb4972b8564646b7cf594d66a (commit)
      from  29819393c52be598536dabdca509dd2395a758bb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4432b6b224567a0cb4972b8564646b7cf594d66a
Author: Carlos Vicente <[email protected]>
Date:   Tue Jul 24 10:29:07 2012 -0400

    Add check for ipblock parameter when adding a subnet dhcp scope

diff --git a/lib/Netdot/Model/DhcpScope.pm b/lib/Netdot/Model/DhcpScope.pm
index e73b275..3ab9c90 100644
--- a/lib/Netdot/Model/DhcpScope.pm
+++ b/lib/Netdot/Model/DhcpScope.pm
@@ -606,6 +606,10 @@ sub _validate_args {
        }
 
     }elsif ( $type eq 'subnet' ){
+
+       $self->throw_user("$name: Subnet IP block not defined")
+           unless $fields{ipblock};
+
        if ( $fields{ipblock}->version != $fields{container}->version ){
            $self->throw_user("$name: IP version in subnet scope does not match 
IP version in container");
        }       

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

Summary of changes:
 lib/Netdot/Model/DhcpScope.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 4
Date: Tue, 24 Jul 2012 11:45:32 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC3-41-g481b0c5
To: [email protected]
Message-ID: <[email protected]>

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot Git repository".

The branch, netdot-1.0 has been updated
       via  481b0c53eb24ac12d705d4b3ebdbf437c80b02db (commit)
      from  4432b6b224567a0cb4972b8564646b7cf594d66a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 481b0c53eb24ac12d705d4b3ebdbf437c80b02db
Author: Carlos Vicente <[email protected]>
Date:   Tue Jul 24 14:44:58 2012 -0400

    ip.html was showing too much information to regular users

diff --git a/htdocs/management/ip.html b/htdocs/management/ip.html
index 16addaf..ad44e28 100644
--- a/htdocs/management/ip.html
+++ b/htdocs/management/ip.html
@@ -931,22 +931,23 @@ if ( $edit ){
 %# Navigation Bar
 %#######################################################################
 
+% if ( $manager && $manager->can($user, "access_section", 'ip.html:sites') ){
     <div id="navbar">
         <ul id="navigation">
 %         if( $view eq "Children" ) {
               <li><span>Children</span></li>
 %         } else {
-            <li><a href="ip.html?id=<% $id %>&view=Children">Children</a></li>
+              <li><a href="ip.html?id=<% $id 
%>&view=Children">Children</a></li>
 %         }
 %         if( $view eq "Sites" ) {
               <li><span>Sites</span></li>
 %         } else {
-            <li><a href="ip.html?id=<% $id %>&view=Sites">Sites</a></li>
+              <li><a href="ip.html?id=<% $id %>&view=Sites">Sites</a></li>
 %         }
 %         if( $view eq "Zones" ) {
               <li><span>Zones</span></li>
 %         } else {
-            <li><a href="ip.html?id=<% $id %>&view=Zones">Zones</a></li>
+              <li><a href="ip.html?id=<% $id %>&view=Zones">Zones</a></li>
 %         }
 %         if ( $o->status->name eq 'Subnet' ){
 %             if( $view eq "DHCP" ) {
@@ -963,7 +964,7 @@ if ( $edit ){
 %         if( $view eq "Comments" ) {
               <li><span>Comments</span></li>
 %         } else {
-            <li><a href="ip.html?id=<% $id %>&view=Comments">Comments</a></li>
+              <li><a href="ip.html?id=<% $id 
%>&view=Comments">Comments</a></li>
 %         }
 %         if( $view eq "All" ) {
               <li><span>All</span></li>
@@ -972,6 +973,7 @@ if ( $edit ){
 %         }
         </ul>
     </div>
+% }
 
 %#######################################################################
 %# Body
@@ -1380,9 +1382,11 @@ print $tmp{value};
 % }
 
 % if ( $view eq 'Sites' || $view eq 'All'){
+
 %################################################################
 %# Sites
 %################################################################
+% if ( $manager && $manager->can($user, "access_section", 'ip.html:sites') ){
 % my @ss = $o->sites;
   <div class="container">
     <div class="containerheadleft">Sites</div>
@@ -1402,6 +1406,7 @@ print $tmp{value};
     </div>
   </div>
 
+%  }
 % }
 
 % if ( $view eq 'Zones' || $view eq 'All' ){
@@ -1517,6 +1522,7 @@ print $tmp{value};
 %# Access Rights
 %################################################################
 % if ( $view eq 'Rights' || $view eq 'All' ){
+%  if ( $manager && $manager->can($user, "access_section", 
'ip.html:edit_rights') ){
 <%perl>
 my @arights = AccessRight->search(object_class=>'Ipblock', object_id=>"$o");
 my @urights  = map { $_->user_rights  } @arights;
@@ -1524,7 +1530,6 @@ my @grights  = map { $_->group_rights } @arights;
 my @all_rights = ( @urights, @grights);
 </%perl>
 
-% if ( $manager && $manager->can($user, "access_section", 
'ip.html:edit_rights') ){
       <div class="container">
       <div class="containerheadleft">Access Rights</div>
       <div class="containerheadright">
@@ -1563,8 +1568,7 @@ if ( $_action eq 'VIEW_ADD_RIGHTS' ){
 </%perl>
       </div>
       </div>
-    
-% }
+%  }
 % }
 
 

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

Summary of changes:
 htdocs/management/ip.html |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

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


End of Netdot-devel Digest, Vol 64, Issue 23
********************************************

Reply via email to