BMF-RKSV-Technik / at-registrierkassen-mustercode

111 stars 39 forks source link

DEP verification v1.1.1 - fails on future dates #650

Open jirihelmich opened 6 years ago

jirihelmich commented 6 years ago

Even though I pass the -f parameter:

$ java -jar regkassen-verification-depformat-1.1.1.jar -c cryptographicMaterialContainer.json -i dep-export.json -o out/ -f

Step 2 fails:

Step 2: RKSV-DEP-EXPORT Validation: This process validates the RKSV-DEP-EXPORT file.

If the dep-export.json contain some future date bills. If I wait so that the export contains days that are all in the past, it passes.

Alex1130 commented 6 years ago

Just out of curiosity: is this a time travel issue?
What are the real world use cases? (different Timezone between cashbox and Verification-Tool , I guess)

jirihelmich commented 6 years ago

Hi, it is for testing purposes, so that I can see how the cashbox behaves if I fast forward to next month, how Monatbeleg is issued, etc.

I have now learned to begin in the past and fast forward to present, but it took me a weekend to figure this out as the error said the chaining value is wrong on the future bill, not the fact it is a future bill.

But yes, your case would break it as well.

aunterlu commented 6 years ago

Hi, now I have also a failed testcase with future dates. I am getting the following message in 0014_dep.json: "verificationResultDetailedMessage" : "Ein interner Fehler trat während der Validierung des Verkettungswerts auf."

Setting the time to 2019-10-25, the test is ok.

Attached you will find the dep.json and cryptographicMaterialContainer.json. I am testing with: java -jar regkassen-verification-1.1.1/regkassen-verification-depformat-1.1.1.jar -v -f -o ./output -i ./dep.json -c ./cryptographicMaterialContainer.json

testdep.tar.gz