[CONTROLLER-856] odl-restconf feature is not properly bringing in odl-aaa-authn Created: 18/Sep/14  Updated: 19/Oct/17  Resolved: 25/Sep/14

Status: Resolved
Project: controller
Component/s: restconf
Affects Version/s: Helium
Fix Version/s: None

Type: Bug
Reporter: Ed Warnicke Assignee: Ed Warnicke
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
is duplicated by AAA-12 Missing restconf feature dependency Resolved
External issue ID: 1948

 Description   

odl-restconf feature does not properly depend on odl-aaa-authn and thus if it is started before authn

a) Does not have authentication
b) Logs many many errors like:

2014-09-17 01:55:16,104 | WARN | pool-15-thread-1 | AbstractLifeCycle | 213 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | FAILED org.eclipse.jetty.security.ConstraintSecurityHandler@1830c120: java.lang.IllegalStateException: No LoginService for org.eclipse.jetty.security.authentication.BasicAuthenticator@3771ebd0 in org.eclipse.jetty.security.ConstraintSecurityHandler@1830c120
java.lang.IllegalStateException: No LoginService for org.eclipse.jetty.security.authentication.BasicAuthenticator@3771ebd0 in org.eclipse.jetty.security.ConstraintSecurityHandler@1830c120
at org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:61)[213:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
...

2014-09-17 01:55:12,053 | ERROR | pool-15-thread-2 | WebAppPublisher | 228 - org.ops4j.pax.web.pax-web-extender-war - 3.1.0 | Error deploying web application
java.lang.IllegalStateException: No LoginService for org.eclipse.jetty.security.authentication.BasicAuthenticator@66db77f in org.eclipse.jetty.security.ConstraintSecurityHandler@d29f625



 Comments   
Comment by Tony Tkacik [ 18/Sep/14 ]

ODL Restconf feature must not depend on odl-aaa-authn feature (dependency cycle).
What you really want is odl-restconf-aaa-authn feature which will install this two together.

Comment by Liem Nguyen [ 18/Sep/14 ]

Echoing Tony... Do we have an "integration" feature that allows installing of odl-aaa-authn and odl-restconf together? This would solve this issue for now.

In the next release, we probably want to move away from web.xml and use the whiteboard extender pattern so restconf can react to authn joining/leaving. I am investigating into this...

Comment by Tony Tkacik [ 19/Sep/14 ]

So Integration projects defines several features (odl-integration-compatible-with-all and others),
so the one I am proposing does not exists as of now, but it should be easy to create one.

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