fiskaly / fiskaly-kassensichv-client-java

fiskaly KassenSichV Cloud-TSE client for Java Desktop / Android - https://kassensichv.io
http://dashboard.fiskaly.com
6 stars 3 forks source link

404 when trying to finish transactions through SMA #9

Closed cjaentsch closed 5 years ago

cjaentsch commented 5 years ago

Start transaction works: PUT https://kassensichv.io/api/v0/tss/0e709b9a-9e09-4d48-9680-c1810a1e45c3/tx/e09bf758-d9a2-449e-bb34-af6815d76389

Finish transaction does not work: PUT https://kassensichv.io/api/v0/tss/0e709b9a-9e09-4d48-9680-c1810a1e45c3/tx/e09bf758-d9a2-449e-bb34-af6815d76389?last_revision=1

404 E_NOT_FOUND "Path does not exist"

When not requesting through the SMA but to the cloud directly, it works with both requests.

cjaentsch commented 5 years ago

Error found in this line: https://github.com/fiskaly/fiskaly-kassensichv-client-java/blob/master/client/src/main/java/com/fiskaly/kassensichv/client/interceptors/TransactionInterceptor.java#L63

Should be: parts.add(0, host + "/log"); String newUrl = String.join("?", parts);

auxdevelopment commented 5 years ago

Should be fixed by this