Skip to content
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

Decode BEJ error occurs. #1

Open
codeRhythm opened this issue Nov 19, 2024 · 0 comments
Open

Decode BEJ error occurs. #1

codeRhythm opened this issue Nov 19, 2024 · 0 comments

Comments

@codeRhythm
Copy link

codeRhythm commented Nov 19, 2024

when decoding BEJ, 3 PropertyName not decoded successfully.
seems something wrong with bejDictGetPropertyName

#some local logs:
bejGetPropName
-bejDictGetPropertyName returns @odata.id nameOffset 1145 nameLength 10
bejGetPropName
-bejDictGetPropertyName returns @odata.type nameOffset 1171 nameLength 12
bejGetPropName
-bejDictGetPropertyName returns Name nameOffset 109 nameLength 5
-bejDictGetPropertyName returns Members nameOffset 101 nameLength 8
-bejDictGetPropertyName returns Members nameOffset 101 nameLength 8
bejGetPropName
-bejDictGetPropertyName returns @odata.count nameOffset 1120 nameLength 13
-bejDictGetPropertyName returns @Redfish.CollectionCapabilities nameOffset 831 nameLength 32
bejGetPropName
Failed to get dictionary property for offset: 312
-bejDictGetPropertyName returns Capabilities nameOffset 1271 nameLength 13
-bejDictGetPropertyName returns CapabilitiesObject nameOffset 1574 nameLength 19
bejGetPropName
Invalid property offset. Pointing to Dictionary header data
Failed to get dictionary property for offset: 0
-bejDictGetPropertyName returns UseCase nameOffset 1599 nameLength 8
-bejDictGetPropertyName returns VolumeCreation nameOffset 1662 nameLength 15
-bejDictGetPropertyName returns Links nameOffset 1593 nameLength 6
-bejDictGetPropertyName returns TargetCollection nameOffset 1619 nameLength 17
bejGetPropName
Invalid property offset. Pointing to Dictionary header data
Failed to get dictionary property for offset: 0
bejGetPropName
-bejDictGetPropertyName returns MaxMembers nameOffset 1284 nameLength 11
bejGetPropName
-bejDictGetPropertyName returns @odata.etag nameOffset 1133 nameLength 12
Failed to get dictionary property for offset: 22

libbej output json (Indentation has been manually adjusted)

{
   "@odata.id":"%L4",
   "@odata.type":"#VolumeCollection.VolumeCollection",
   "Name":"Intel VROC Volume Collection",
   "Members":[],
   "[email protected]":0,
   "@Redfish.CollectionCapabilities":{
      "#CollectionCapabilities.v1_3_0.CollectionCapabilities",
      "Capabilities":[
         {
            "CapabilitiesObject":{
	       "%L5"
	    },
            "UseCase":"VolumeCreation",
            "Links":{
               "TargetCollection":{
                   "%L4"
               }
            }
         }
      ],
      "MaxMembers": 24
   },
   "@odata.etag": "W/\"3155ef27\""
}

other BEJ decode tool(RDE-Dictionary) output:

{
   "@odata.id": "%L4",
   "@odata.type": "#VolumeCollection.VolumeCollection",
   "Name": "Intel VROC Volume Collection",
   "Members": [],
   "[email protected]": 0,
   "@Redfish.CollectionCapabilities": {
      "@odata.type": "#CollectionCapabilities.v1_3_0.CollectionCapabilities",
      "Capabilities": [
         {
            "CapabilitiesObject": {
               "@odata.id": "%L5"
            },
            "UseCase": "VolumeCreation",
            "Links": {
               "TargetCollection": {
                  "@odata.id": "%L4"
               }
            }
         }
      ],
      "MaxMembers": 24
   },
   "@odata.etag": "W/\"3155ef27\""
}

files-to-decode.zip has been attached.
Many thanks

files-to-decode.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant