Why api query is giving empty output when the entity is having special character in RHV
Issue
- While querying the storage/network information using RHEV-M api, it's giving empty return value even when the particular entity exist in the RHEV-M. For example, when the search value is a network name
Test_Network, it will return empty value. However a network with nameTestis giving output correctly. Anything without special character is providing info correctly. Also querying the root path (/networks) is providing the correct output and is correctly displaying all entities including the one with special characters.
api/networks?search=name=Test_Network
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<networks/>
api/networks?search=name=Test
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<networks>
<network href="/api/networks/ee589662-2e62-48a2-adaa-22ba3a0d8f95" id="ee589662-2e62-48a2-adaa-22ba3a0d8f95">
<name>Test</name>
<description>Test </description>
-----
-----
</network>
</networks>
api/networks
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<networks>
<network href="/api/networks/9ebbc092-8930-4601-83ea-e4830653769a" id="9ebbc092-8930-4601-83ea-e4830653769a">
<name>Test_Network</name>
-----
-----
</network>
<network href="/api/networks/ee589662-2e62-48a2-adaa-22ba3a0d8f95" id="ee589662-2e62-48a2-adaa-22ba3a0d8f95">
<name>Test</name>
<description>Test </description>
----
----
</network>
<networks>
Environment
- Red Hat Enterprise Virtualization 3.5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.