Hi Vivek,

Glad to hear your setup has been successful.

In the schema change tutorial 
https://wiki.onap.org/display/DW/AAI+Tutorial-Making+and+Testing+a+Schema+Change+-+Dublin

Everything hinges on the OXM definitions that you put in. If you are not 
following the tutorial to the letter, then please attach your modified OXM 
file, so we can follow along.

Were you able to follow the tutorial as written all the way to a successful 
conclusion, before making your extra changes?

I guess you are at step 19 now, which adds the "NewWidgets" to the "Network" 
namespace, but in your case, you modified the step to add it to the 
"CloudInfrastructure" namespace instead.

To accompany this change, step 21 also needs to be modified where:

<xml-property name="namespace" value="network" />

becomes

<xml-property name="namespace" value="cloud-infrastructure" />

Please note that in the "NewWidget" definition as written:

<xml-element java-attribute="newWidgetName" name="new-widget-name" 
required="true" type="java.lang.String" xml-key="true">

the "new-widget-name" is the unique key of the object, so this forms part of 
the URL path as well as the payload of the PUT request.

Your first PUT request got the error:

<variable>Invalid input performing %1 on %2:uri and payload keys don't 
match</variable>

because the payload had this:

<new-widget-name>example-new-widget-name-val-43832</new-widget-name>

but your URL path had this:

<variable>v16/cloud-infrastructure/new-widgets/new-widget/example-new-widget-id-val-51753</variable>

Attempting to use the "new-widget-id" attribute as the unique key instead of 
the "new-widget-name" results in this error.
Please check step 28 in the Postman PUT URL.

The Resources Java process error confirms this confusion:

2019-07-17 16:59:41.801 ERROR 6190 --- [qtp798393859-39] 
org.onap.aai.logging.ErrorLogHelper      : uri and payload keys don't match 
ex=org.onap.aai.exceptions.AAIException: uri and payload keys don't match


In your second curl command, using the "new-widget-name" value in the URL also 
gives the same error as before, so now I suspect that your steps 20/21 
definitions of "NewWidgets" and "NewWidget" have diverged further from the 
tutorial steps.

Please send your OXM definitions as well, so we can check them over.

Thanks,
Keong

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#18159): https://lists.onap.org/g/onap-discuss/message/18159
Mute This Topic: https://lists.onap.org/mt/32488645/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to