[AAA-20] java.lang.NullPointerException at org.opendaylight.aaa.sts.TokenAuthFilter Created: 23/Sep/14  Updated: 21/Mar/19  Resolved: 02/Oct/14

Status: Verified
Project: aaa
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: RichardHill Assignee: Liem Nguyen
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File opendaylight.tar(1).xz    
External issue ID: 2057

 Description   

When starting ODL with config in attachment, saw this warning. logs are also attached. I tried and failed to replicate this bug by dl and manually installing the same odl version so it may be a problem created by automated test framework.

      1. 014-09-23 15:16:08,382 | WARN | qtp1239865600-63 | ServletHandler | 170 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | /restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib/loc-rib/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/ipv4-routes
        java.lang.NullPointerException
        at org.opendaylight.aaa.sts.TokenAuthFilter.filter(TokenAuthFilter.java:47)[297:org.opendaylight.aaa.authn-sts:0.1.0.Helium]

      1. Version tested:
        http://nexus.opendaylight.org/content/groups/staging/org/opendaylight/integration/distribution-karaf/0.2.0-Helium/distribution-karaf-0.2.0-Helium.zip


 Comments   
Comment by RichardHill [ 23/Sep/14 ]

Attachment opendaylight.tar(1).xz has been added with description: odl config ang logs

Comment by Liem Nguyen [ 23/Sep/14 ]

This issue is likely caused by the fact that Restconf is accessed (and hence the Auth filter invoked) before AAA (odl-aaa-authn feature) is fully started.

Comment by Liem Nguyen [ 23/Sep/14 ]

Short term fix will be for AAA to return a 503 (Service Unavailable). Longer term fix to specify a dependency on odl-aaa-authn in Restconf.

Comment by Liem Nguyen [ 23/Sep/14 ]

AAA service now returns 503 (Service Unavailable) if it is accessed before completely started up. Upon receiving this error code, clients/test code can retry accessing Restconf/REST API at a later time.

Comment by Liem Nguyen [ 23/Sep/14 ]

Fixed by https://git.opendaylight.org/gerrit/#/c/11500/

Generated at Wed Feb 07 19:08:25 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.