Giter Site home page Giter Site logo

Comments (11)

tomasg2012 avatar tomasg2012 commented on August 25, 2024

This error message is a bit vague and doesn't tell the user that this is an Exception error, this error is a result of the XML file used for this resource is missing a reference for Resource.v1_0_0. I'm not sure if the log provides that info but if you can look at the other comment first it might resolve this.

from redfish-service-validator.

jbobzin-insyde avatar jbobzin-insyde commented on August 25, 2024

from redfish-service-validator.

tomasg2012 avatar tomasg2012 commented on August 25, 2024

in the linked XML, the Resource reference is actually

<edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml">
<edmx:Include Namespace="Resource"/>
<edmx:Include Namespace="Resource.v1_0_0"/>
</edmx:Reference>

But in the metadata from the other post, you are correct, that is shown above. Seems that the problem is that the program is using the $metadata response to determine inheritance when it's supposed to be using the xml of EthernetInterfaces, which is linked in the references. I can't seem to find the area where the key error actually happens.

from redfish-service-validator.

jbobzin-insyde avatar jbobzin-insyde commented on August 25, 2024

from redfish-service-validator.

tomasg2012 avatar tomasg2012 commented on August 25, 2024

Personally I wouldn't recommend making changes to please the tool, your $metadata seems appropriate. In fact, the service I currently test against does not have Resource on its $metadata.

I'm a little under the weather right now, so I apologize if the code comes slow.

from redfish-service-validator.

tomasg2012 avatar tomasg2012 commented on August 25, 2024

A new branch has been made, test it if you please.

from redfish-service-validator.

jbobzin-insyde avatar jbobzin-insyde commented on August 25, 2024

from redfish-service-validator.

tomasg2012 avatar tomasg2012 commented on August 25, 2024

Thank a ton for the feedback, it helps plenty. I've been talking with others about how the output and responses to certain types of errors should be, it's improved quite a bit and I'll try to get something more easily digestible by this Thursday.

Much like the References XML problem from the last iteration of the program before the pull request, it's an honest mistake to expect no mechanical errors with some of these inputs. Would you be able to respond with the odata typos in question?

from redfish-service-validator.

jbobzin-insyde avatar jbobzin-insyde commented on August 25, 2024

from redfish-service-validator.

mraineri avatar mraineri commented on August 25, 2024

I think both @odata.type and @odata.context need to have some level of agreement, otherwise I don't see how a client could sanely decode the payload.

But I agree; it would be better for the tool to detect the condition, print it, and exit with an error gracefully rather than just throw an exception.

from redfish-service-validator.

jbobzin-insyde avatar jbobzin-insyde commented on August 25, 2024

Problem was in test system

from redfish-service-validator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.