[NETCONF-849] Fields filtering fails for leafs in lists Created: 12/Jan/22  Updated: 12/Jan/22  Resolved: 12/Jan/22

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: 2.0.11, 2.0.12
Fix Version/s: None

Type: Bug Priority: High
Reporter: Peter Puškár Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Phosphorus SR-1

https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/opendaylight/15.1.0/opendaylight-15.1.0.zip

Simulated device via testtool.

https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/netconf/netconf-testtool/2.0.11/netconf-testtool-2.0.11-executable.jar

 

Device configuration attached in config.txt.


Attachments: Text File config.txt     Text File log.txt     File test-augment@2020-10-27.yang     File test-module@2020-10-27.yang    
Issue Links:
Duplicate
duplicates NETCONF-820 Fail to process RESTCONF fields on th... Resolved

 Description   

Trying to filter out leafs in list using fields query returns 500.

http://127.0.0.1:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=testtool/yang-ext:mount/test-module:root?content=config&fields=list-root(top-list(key-1))

Relevant log message attached below in log.txt.

HTTP response:
 

 <html> 
 <head> <metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/> <title>Error 500 Request failed.</title> </head> 
 <body> <h2>HTTP ERROR 500 Request failed.</h2> <table> <tr> <th>URI:</th> <td>/rests/data/network-topology:network-topology/topology=topology-netconf/node=testtool/yang-ext:mount/test-module:root </td> </tr> <tr> <th>STATUS:</th> <td>500</td> </tr> <tr> <th>MESSAGE:</th> <td>Request failed.</td> </tr> <tr> <th>SERVLET:</th> <td>org.glassfish.jersey.servlet.ServletContainer</td> </tr> </table> 
 </body> 
 </html>

 


Generated at Wed Feb 07 20:16:04 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.