Comments (4)
It does look like you're using this correctly. @pboyd04 any ideas?
from libredfish.
I'm not sure if it ever worked, because I can't find any parsing code for the [parent.child].
In redpath.c:165
the propname just gets set to index. (Status.Health in my example) with the REDPATH_OP_EXISTS
operation.
Then later, when this operation gets executed in payload.c
this same path string gets used (as nodeName) when jansson is called: value = json_object_get(payload->json, nodeName)
Only this function doesn't support json paths, only json keys.
I have two ideas on how I might be able to fix this:
- Add a
json_object_get_by_path
function and use it inpayload.c
which would be able to handle these json paths. - Make
redpath.c
split this [parent.child] into two seperate redpathnodes that get handled separately.
IMHO option 1 is way simpler, and I already have working code that can handle json paths. I think I can implement it in payload.c
, without breaking any current functionality. But I would have to test this first.
Let me know what you think about it.
from libredfish.
Please see #163
from libredfish.
Fix merged
from libredfish.
Related Issues (20)
- Unable to parse json! unable to decode byte HOT 1
- Are URI fragments supported? HOT 7
- Support int64 in GetPayloadIntValue() HOT 2
- ETag support HOT 2
- Queue occasionally hangs
- getRedfishServiceRoot stops working forever if the connection drops
- TLS/Certificate-based authentication support HOT 1
- SSE stream creates Events HOT 1
- libredfish doesn't install entities/chassis.h or entitites/resource.h HOT 3
- Core file in libredfish 1.3.4 HOT 5
- Absolute paths not supported in `Location` header HOT 2
- serviceDecRefAndWait is hanging while serviceDecRef() works, why? HOT 2
- RedPaths referencing properties are returned as objects HOT 2
- Inconsistency of implementation in Redpath HOT 6
- [redfishtest] "/" works, but "/redfish/v1/Managers/" does not work HOT 1
- Is the callback in charge of freeing the payload when using getPayloadByPathAsync()? HOT 1
- Unable to terminate program correctly HOT 5
- redfishtest failed with timeout (CURL returned 28) when CURLOPT_FORBID_REUSE=0 HOT 4
- Implement timeout for each redfishService HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libredfish.