Skip to content

Missing mandatory prefix for XML metadata "type" #2382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
siprab opened this issue Apr 8, 2025 · 5 comments
Open

Missing mandatory prefix for XML metadata "type" #2382

siprab opened this issue Apr 8, 2025 · 5 comments
Labels
is:bug Bug description. status:invalid Issue is not reproducible or the behavior is intended.

Comments

@siprab
Copy link

siprab commented Apr 8, 2025

Hi,

libyang is throwing below error while creating subscription:

Tag: operation-failed Type: application Severity: error Message: Missing mandatory prefix for XML metadata "type".

The RPC sent is
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="42"> <create-subscription xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"> <filter type="xpath" xmlns:o-ran-supervision="urn:o-ran:supervision:1.0" select="/o-ran-supervision:*"/> </create-subscription> </rpc>

this is similar to issue #1959

we are using libyang v3.5.0

Please suggest. Thank you.

@michalvasko
Copy link
Member

As you correctly noticed, exactly the same issue was fixed in the past. I have also tried it with the current libyang version and it also worked so my advice is to update libyang, in case there was a regression.

@michalvasko michalvasko added is:bug Bug description. status:invalid Issue is not reproducible or the behavior is intended. labels Apr 8, 2025
@siprab
Copy link
Author

siprab commented Apr 8, 2025

Hi Michal,

Are you suggesting to upgrade libyang on server side?

@michalvasko
Copy link
Member

Yes, that is the only advice I can give you.

@siprab
Copy link
Author

siprab commented Apr 8, 2025

Hi Michal,

our server uses the 3rd party code, can anything be done at client to send the subscription RPC with xml prefix for 'type' attribute?

the current RPC which is sent by client now is as below:
<create-subscription xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"> <filter type="xpath" xmlns:o-ran-supervision="urn:o-ran:supervision:1.0" select="/o-ran-supervision:*"/> </create-subscription>

and the RPC which we expect the client to send:
<create-subscription xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"> <filter xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:type="xpath" xmlns:o-ran-supervision="urn:o-ran:supervision:1.0" nc:select="/o-ran-supervision:*"/> </create-subscription>

could you please suggest on this?

@michalvasko
Copy link
Member

Yes, you can try sending such an RPC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Bug description. status:invalid Issue is not reproducible or the behavior is intended.
Projects
None yet
Development

No branches or pull requests

2 participants