View Issue Details

IDProjectCategoryView StatusLast Update
0010666Talertaler-harnesspublic2025-12-21 20:46
ReporterFlorian Dold Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.0 
Target Version1.3Fixed in Version1.3 
Summary0010666: implement test for exchange AML officer SPA PDF generation
DescriptionThere is some basic support for it in the exchange, but no automated tests yet.

We could simply extend the existing tests to also generate PDFs. They'll of course need to be manually checked for correctness.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

child of 0009917 closedChristian Grothoff AML SPA must be able to create PDF with entire AML file(s) [0h] 

Activities

Florian Dold

2025-11-27 16:05

manager   ~0026647

.. including forms created by Swissness checks.

These need to be manually inspected for correctness.

We also need to test the derived attributes (presence of other forms in the GwG file).

Florian Dold

2025-11-28 22:02

manager   ~0026678

The test for this is in taler-typescript-core.git/packages/taler-harness/src/integrationtests/test-tops-aml-pdf.ts line 46ff.

Christian Grothoff

2025-12-06 16:40

manager   ~0026798

877933767..9b16e9592 expands the test logic, but there are many small issues I don't know how to address nicely, so leaving some for you ;-).

Florian Dold

2025-12-10 17:54

manager   ~0026864

The PDF generation currently does not work on my system at all. It seems some file is missing. Did you maybe forget to commit it?

(8NKRPJ842EQPDPYDHTD8265VHR) ERROR `access' failed on file `/home/fdold-work/local/share/taler-exchange/typst-forms/_cover_.typ' at mhd_typst.c:529 with error: No such file or directory

There does not seem to be a _cover.typ file in exchange.git.

Christian Grothoff

2025-12-12 19:09

manager   ~0026941

Eh, it is _cover_.typ, and that is in git.

Florian Dold

2025-12-12 21:21

manager   ~0026945

Hmm. Builds on my current machine now. Maybe a bootstrap issue, or maybe an issue due to the .gitignore'd Makefile.am.

I've extended the test helpers with submitOfficerForm, which allows submitting forms via decisions (which is allowed in any state, not just when there is a measure for the upload).

This now crashes the exchange:

(HEWTDMHSPJRCKTB7JYH6TW53XR) INFO No decisions taken, creating empty cover page
(HEWTDMHSPJRCKTB7JYH6TW53XR) DEBUG Running prepared statement `select_aml_attributes_dec' on 0x146be1b0
(HEWTDMHSPJRCKTB7JYH6TW53XR) DEBUG Executing prepared SQL statement `select_aml_attributes_dec'
(HEWTDMHSPJRCKTB7JYH6TW53XR) DEBUG Execution of prepared SQL statement `select_aml_attributes_dec' finished (PGRES_TUPLES_OK)
(HEWTDMHSPJRCKTB7JYH6TW53XR) INFO Dumping attachment `alice-id.pdf'
(HEWTDMHSPJRCKTB7JYH6TW53XR) INFO Dumping attachment `alice-cr.pdf'
(HEWTDMHSPJRCKTB7JYH6TW53XR) INFO Dumping attachment `charlie-id.pdf'
(HEWTDMHSPJRCKTB7JYH6TW53XR) INFO Dumping attachment `charlie-mandate.pdf'
(HEWTDMHSPJRCKTB7JYH6TW53XR) INFO Dumping attachment `diana-id.pdf'
(HEWTDMHSPJRCKTB7JYH6TW53XR) INFO Dumping attachment `diana-resolution.pdf'
(HEWTDMHSPJRCKTB7JYH6TW53XR) INFO Dumping attachment `company-id-doc.pdf'
(HEWTDMHSPJRCKTB7JYH6TW53XR) ERROR Assertion failed at taler-exchange-httpd_aml-attributes-get.c:753. Aborting.

Florian Dold

2025-12-12 21:23

manager   ~0026946

I am also not sure why it logs `No decisions taken, creating empty cover page` since clearly there was a successful "POST /aml/.../decision" request.

Christian Grothoff

2025-12-14 14:34

manager   ~0026971

I don't get a crash, I do get a PDF...

Christian Grothoff

2025-12-14 14:35

manager   ~0026972

But I don't get the logs with the attachments (!?).

Christian Grothoff

2025-12-15 19:47

manager   ~0027002

Oh, NOW it crashes for me, too! :-)

Christian Grothoff

2025-12-15 20:15

manager   ~0027003

Crash fixed in fbc7b8824..320ab53cf, we still have some typst issue now.

Christian Grothoff

2025-12-15 20:47

manager   ~0027004

Test passes!!!

Issue History

Date ModifiedUsernameFieldChange
2025-11-26 16:19Florian DoldNew Issue
2025-11-26 18:05Christian GrothoffSeverityminor => feature
2025-11-26 18:05Christian GrothoffStatusnew => implementing
2025-11-26 18:05Christian GrothoffTarget Version => 1.4
2025-11-27 16:05Florian DoldNote Added: 0026647
2025-11-27 16:09Christian GrothoffRelationship addedchild of 0009917
2025-11-27 16:12Florian DoldAssigned To => Florian Dold
2025-11-27 16:12Florian DoldStatusimplementing => assigned
2025-11-28 21:14Florian DoldSummaryimplement test for exchange AML officer SPA PDF generation => implement test for exchange AML officer SPA PDF generation [12h]
2025-11-28 22:02Florian DoldNote Added: 0026678
2025-11-28 22:02Florian DoldAssigned ToFlorian Dold => Christian Grothoff
2025-11-28 22:02Florian DoldSummaryimplement test for exchange AML officer SPA PDF generation [12h] => implement test for exchange AML officer SPA PDF generation
2025-12-06 16:40Christian GrothoffNote Added: 0026798
2025-12-06 16:40Christian GrothoffAssigned ToChristian Grothoff => Florian Dold
2025-12-10 17:54Florian DoldNote Added: 0026864
2025-12-10 17:54Florian DoldAssigned ToFlorian Dold => Christian Grothoff
2025-12-12 19:09Christian GrothoffNote Added: 0026941
2025-12-12 19:09Christian GrothoffAssigned ToChristian Grothoff => Florian Dold
2025-12-12 21:21Florian DoldNote Added: 0026945
2025-12-12 21:23Florian DoldNote Added: 0026946
2025-12-12 21:23Florian DoldAssigned ToFlorian Dold => Christian Grothoff
2025-12-14 14:34Christian GrothoffNote Added: 0026971
2025-12-14 14:35Christian GrothoffNote Added: 0026972
2025-12-15 19:44Christian GrothoffAssigned ToChristian Grothoff => Florian Dold
2025-12-15 19:47Christian GrothoffAssigned ToFlorian Dold => Christian Grothoff
2025-12-15 19:47Christian GrothoffNote Added: 0027002
2025-12-15 20:15Christian GrothoffNote Added: 0027003
2025-12-15 20:47Christian GrothoffNote Added: 0027004
2025-12-16 22:00Christian GrothoffStatusassigned => informing
2025-12-16 22:00Christian GrothoffResolutionopen => fixed
2025-12-16 22:00Christian GrothoffFixed in Version => 1.4
2025-12-21 20:45Christian GrothoffProduct Version => 1.0
2025-12-21 20:45Christian GrothoffFixed in Version1.4 => 1.3
2025-12-21 20:45Christian GrothoffTarget Version1.4 => 1.3
2025-12-21 20:46Christian GrothoffStatusinforming => closed