[CONTROLLER-887] GET empty data doesn't return error messages Created: 23/Sep/14  Updated: 14/Nov/17  Resolved: 23/Oct/14

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

Type: Bug
Reporter: Jozef Jankula Assignee: Jozef Gloncak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 2047

 Description   

See e.g.
Test_Scenario_17_precondition = {
'uri': '/config/opendaylight-inventory:nodes/node/id17/table/17',
'headers':

{'accept': 'application/xml','content-type': 'application/xml'}

,
'expected_status': 404,
'expected': '''
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<errors
xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
<error>
<error-type>application</error-type>
<error-tag>data-missing</error-tag>
<error-message>No data was found.</error-message>
</error>
</errors>
'''
}

No error message is received.

Expected result:
In received <rpc-error> must be according RFC 6241 Appendix A page 78
error-tag: data-missing
error-type: application
error-severity: error
Description: Request could not be completed because the relevant
data model content does not exist. For example,
a "delete" operation was attempted on
data that does not exist.

Release Candidate version
0.2.0-Helium-RC1-6-v201409220013



 Comments   
Comment by Jozef Gloncak [ 25/Sep/14 ]

patch
https://git.opendaylight.org/gerrit/11563

Comment by Jozef Gloncak [ 25/Sep/14 ]

build is unstable (I can't find reason why)

Comment by RichardHill [ 25/Sep/14 ]

ODL uses RESTCONF http://tools.ietf.org/html/rfc6020 and http://www.ietf.org/archive/id/draft-bierman-netconf-restconf-02.txt. Implementation of
RFC 6241 Appendix A page 78 is an enhancement.

Comment by Jozef Gloncak [ 14/Oct/14 ]

Retrigerred and now successfully built
https://git.opendaylight.org/gerrit/11563

Comment by Tony Tkacik [ 22/Oct/14 ]

Cherrypicked to stable/helium

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