Skip to content

Conversation

cyrilfr
Copy link

@cyrilfr cyrilfr commented Oct 2, 2019

Add the support for camt.052/053/054 file format.

Copy link
Collaborator

@uwemaurer uwemaurer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@uwemaurer uwemaurer merged commit 355c547 into ebics-java:master Oct 3, 2019
@cyrilfr
Copy link
Author

cyrilfr commented Oct 4, 2019

Maybe the pain formats should be added too.

The fetchFile() method fails because the unserialization doesn't unserialize (or the serialization fails to serialize) the key digests.

So to make a fetch request, I had to add those lines before the call:

EbicsBank bank = session.getUser().getPartner().getBank();
bank.setDigests(KeyUtil.getKeyDigest(bank.getE002Key()), KeyUtil.getKeyDigest(bank.getX002Key()));

(I post here because there is no Issue section.)

@uwemaurer
Copy link
Collaborator

uwemaurer commented Oct 4, 2019 via email

@cyrilfr
Copy link
Author

cyrilfr commented Oct 4, 2019

I don't get an error during the unserialization but the digests are wrong so the EBICS server respond with an error. Using the snippet from above before calling fetchFile of FileTransfer in the fetchFile method of EbicsClient updates the digests and makes it work.
I experienced this issue a long time ago so I don't exaclty remember the nature of the wrong digests. To me they look good (in format) but they aren't the ones used for the initialization requests and are refused by the server obviously. I run the initialization requests and the file fetch request in separate steps like written in the Wiki.

nelkahn pushed a commit to nelkahn/ebics-java-client that referenced this pull request Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants