Closed Aravinda93 closed 1 year ago
Dear @Aravinda93 , Nice to hear from you and thanks for making us aware of this. You are correct that one and the same EPCIS event must result in an identical hash value irrespective if it is formatted in XML or JSON/JSON-LD. We anyway still have to make a couple of further adjustments @Echsecutor and I intend to tackle after EPCIS/CBV 2.0's ratification. Kind regards and all the best, @RalphTro
Dear @RalphTro,
Thanks a lot for the response and confirmation :) Wish you a great day ahead :)
Kind regards, Aravinda
@Aravinda93 your suspicion is correct, the bare string notation is not yet properly normalised. We will fix this in https://github.com/RalphTro/epcis-event-hash-generator/pull/66
edit: to make this more explicit: https://github.com/RalphTro/epcis-event-hash-generator/issues/72
Dear @Aravinda93, From my POV, this can be closed from my POV; all tasks related to this issue have been addressed. Would you agree?
Dear @RalphTro
Since you have provided the confirmation that XML and JSON event hash should be same and we will be testing it during the development to ensure everything is correct, let us close this issue to avoid any confusion with actual issues.
Gladly!
@RalphTro @Echsecutor
Hello,
We came across a scenario where Hash-id generated for XML event and its converted JSON/JSON-LD event is different so we wanted to confirm if it needs to be the same or if this is expected behavior?
For example: We tried to generate an event hash following a simple event in XML format:
For the above event we received the following event hash id:
ni:///sha-256;508c04775b92e088ff199ced46aa3120791f8a907430541fa64ab30c49aa6d9e?ver=CBV2.0
We converted the same event to JSON:
For the above event we received the following event hash id:
ni:///sha-256;8001402aeb8e39fb2d595ed3ac479d7cd462343acbd2eb7db9912f30ec7c6283?ver=CBV2.0
As we can see for the same event in XML and JSON/JSON-LD format we are receiving different hash ids so we would like to confirm if this is expected?
We believe this maybe be happening due to the bare string notation used in JSON/JSON-LD event format due to which we have differences in some of the fields such as
bizStep
anddisposition
.CC: @dakbhavesh