[MDSAL-712] Action(Provider)Service translates grouping Action path incorrectly Created: 01/Dec/21  Updated: 10/Feb/22  Resolved: 02/Dec/21

Status: Resolved
Project: mdsal
Component/s: Binding API, Binding runtime
Affects Version/s: 7.0.0, 8.0.0
Fix Version/s: 9.0.0, 8.0.8

Type: Bug Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MDSAL-721 ActionSpec.build() does not handle Ke... Resolved

 Description   

The APIs involved in servicing Actions on binding level do not behave correctly when action is defined in a grouping context – i.e. for a construct like this:

grouping foo {
  container foo {
     action foo;
  }
}

container bar {
  uses foo;
}

The problem is that DOM APIs expect a SchemaNodeIdentifier, i.e. /bar/foo/foo, whereas binding-dom-adapter will translate the path to /foo/foo/foo.

Fixing this requires additional information in the binding services to disambiguate the place were the action is defined (and where the corresponding interface is generated) versus which instantiation the user wants to service.

This deficiency is flushed out by removal of ActionDefinition.getPath() and therefore is a prerequisite to adoption of yangtools-8.


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