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

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

Open
jirihelmich opened this issue Jan 22, 2018 · 3 comments
Open

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

jirihelmich opened this issue Jan 22, 2018 · 3 comments

Comments

@jirihelmich
Copy link

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
Copy link

Alex1130 commented Jan 23, 2018

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
Copy link
Author

jirihelmich commented Jan 23, 2018

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
Copy link

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

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

3 participants