[AAA-194] Anonymous access to URL does not work Created: 17/Mar/20 Updated: 17/Apr/20 Resolved: 17/Apr/20 |
|
| Status: | Resolved |
| Project: | aaa |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Sodium SR3, Magnesium SR1, Aluminium |
| Type: | Bug | Priority: | Low |
| Reporter: | Luis Gomez | Assignee: | Venkatrangan Govindarajan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Sub-Tasks: |
|
| Description |
|
In older versions of ODL (e.g. Oxygen) we could configure this in aaa-app-config.xml to allow anonymous access (no user auth) to the topology URL:
<urls>
<pair-key>/operational/network-topology**</pair-key>
<pair-value>anon</pair-value>
</urls>
The same configuration does not work in recent ODL versions including master. |
| Comments |
| Comment by Luis Gomez [ 17/Mar/20 ] |
|
It looks like it works if I set full restconf path:
<urls>
<pair-key>/restconf/operational/network-topology**</pair-key>
<pair-value>anon</pair-value>
</urls>
But then we should probably change this file to add full paths as well: |
| Comment by Luis Gomez [ 17/Mar/20 ] |
|
Also we have to release note whenever the behavior changed. |
| Comment by Venkatrangan Govindarajan [ 19/Mar/20 ] |
|
ecelgp The Path MAtching is based on AntPathMatcher (https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/util/AntPathMatcher.html) A Path like /*/operational/network-topology* should also work. |
| Comment by Luis Gomez [ 19/Mar/20 ] |
|
OK, I will try that, but should we also change the other URLs in https://git.opendaylight.org/gerrit/gitweb?p=aaa.git;a=blob;f=aaa-shiro/impl/src/main/resources/initial/aaa-app-config.xml;h=56053887a3a3523b84fc56129c446ed5784962ea;hb=HEAD#l300 |
| Comment by Luis Gomez [ 19/Mar/20 ] |
|
Yes, it also works: */operational/network-topology** |