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 #1658] (Resolved) REST interface is broken
      ([email protected])
   2. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC3-13-gdc9703a (Apache)
   3. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC3-14-gf3e68da (Apache)


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

Message: 1
Date: Wed, 18 Jul 2012 09:14:05 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1658] (Resolved) REST interface
        is      broken
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1658 has been updated by Carlos Vicente.

Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.1
Resolution set to fixed

Thank you!
----------------------------------------
Bug #1658: REST interface is broken
https://osl.uoregon.edu/redmine/issues/1658

Author: Matej Vadnjal
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: 
Target version: 1.0.1
Resolution: fixed


A request for /netdot/rest/device/ results in an error:

<pre>
error:  Can't call method "headers_in" on an undefined value at 
/usr/local/netdot/lib/Netdot/REST.pm line 119.
context:        
...     
115:     my $r = delete $argv{r} || $self->throw_fatal("You need to pass 
request object");
116:     $self->{request} = $argv{r};
117:    
118:     # Get relevant HTTP headers from request object
119:     my $headers = $self->{request}->headers_in;
120:    
121:     $logger->info(sprintf("Netdot::REST::handle_resource: %s request for 
%s?%s from %s (%s)",
122:     $self->{request}->method,
123:     $resource,
...     
code stack:      /usr/local/netdot/lib/Netdot/REST.pm:119
/usr/local/netdot/htdocs/rest/dhandler:34
/usr/local/netdot/htdocs/rest/autohandler:22
/usr/local/netdot/htdocs/autohandler:76
</pre>

If I change line 116 to:
<pre>
$self->{request} = $r;
</pre>

it works.

Netdot 1.0.1 RC3


-- 
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: Wed, 18 Jul 2012 11:42:31 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC3-13-gdc9703a
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  dc9703ab6de48c40d125a412a24e24ca05612921 (commit)
      from  0c5e9c08cf089bc7a4d19baad6a3c7a741848a16 (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 dc9703ab6de48c40d125a412a24e24ca05612921
Author: Carlos Vicente <[email protected]>
Date:   Tue Jul 17 05:31:46 2012 -0400

    Remove unnecessary carriage return

diff --git a/bin/updatedevices.pl b/bin/updatedevices.pl
index beba628..af70f08 100755
--- a/bin/updatedevices.pl
+++ b/bin/updatedevices.pl
@@ -221,7 +221,7 @@ if ( $TOPO ){
     Netdot::Topology->discover(%uargs);
 }
 
-$logger->info(sprintf("$0 total runtime: %s\n", 
Netdot->sec2dhms(time-$start)));
+$logger->info(sprintf("$0 total runtime: %s", Netdot->sec2dhms(time-$start)));
 
 =head1 AUTHOR
 

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

Summary of changes:
 bin/updatedevices.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 3
Date: Wed, 18 Jul 2012 11:46:05 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC3-14-gf3e68da
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  f3e68da7eb173be5f96521df8d0c40e31ccbf697 (commit)
      from  dc9703ab6de48c40d125a412a24e24ca05612921 (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 f3e68da7eb173be5f96521df8d0c40e31ccbf697
Author: Carlos Vicente <[email protected]>
Date:   Tue Jul 17 05:35:27 2012 -0400

    Remove unnecessary variable assignment

diff --git a/lib/Netdot/Model/Interface.pm b/lib/Netdot/Model/Interface.pm
index b8a316e..0e53e73 100644
--- a/lib/Netdot/Model/Interface.pm
+++ b/lib/Netdot/Model/Interface.pm
@@ -621,7 +621,6 @@ sub update_ip {
                }else{
                    $logger->info(sprintf("%s: Created Subnet %s/%s", 
                                          $label, $subnetaddr, $subnetprefix));
-                   my $version = $newblock->version;
                }
            }
        }

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

Summary of changes:
 lib/Netdot/Model/Interface.pm |    1 -
 1 files changed, 0 insertions(+), 1 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 16
********************************************

Reply via email to