View Issue Details

IDProjectCategoryView StatusLast Update
0003173DCP-o-maticBugspublic2026-08-15 22:52
Reporterboxerab Assigned Tocarl  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSFedoraOS Version43
Product Version2.18.39 
Summary0003173: Two bugs surfaced by Claude Code
Description

Feedback from Claude:

Testing DCP-o-matic 2.18.39 (d71b711220) on Linux turned up two defects in dcpomatic2_kdm_cli.

First, the trusted device list is written with a thumbprint of nothing: passing -T <certificate> produces a KDM whose AuthorizedDeviceInfo/DeviceList/CertificateThumbprint is always 2jmj7l5rSw0yVb/vlWAYkK/YBwk=, which is the base64 SHA-1 of an empty input, rather than the thumbprint of the certificate supplied. I reproduced it with three different certificates whose real DER SHA-1 thumbprints are PPvP/Eq5P0t9Om2CjjVmSSKVgJg=, 9Sla3fDlp3tVMdr4RvpJPvKepKg= and UQ03OaS5eHR2AFTQhIUhGLVe9ko=, and all three yielded the same empty hash with no error or warning, so the resulting device list names no real device and a TDL-enforcing playback device has nothing valid to match.

Second, KDM generation fails for an encrypted Interop film with the message "no CPLs found in film", even though the film transcodes successfully, its metadata.xml records <Encrypted>1, and it contains exactly one CPL at <film>/<dcp>/cpl_<uuid>.xml using the http://www.digicine.com/PROTO-ASDCP-CPL-20040511# namespace; the identical command against an encrypted SMPTE film, with the same projector certificate and validity window, produces a valid ST 430-1/430-3 KDM. Whether Interop KDM generation is deliberately unsupported or CPL discovery simply does not recognise an Interop CPL root, the error message is misleading either way. Both were reproduced with films created by dcpomatic2_create and KDMs requested as dcpomatic2_kdm_cli -C projector.pem -T trusted-device.pem -c Cinema -S Screen -f "2026-10-01 00:00:00" -t "2027-01-01 00:00:00" -o outdir <film>.

TagsNo tags attached.
Branch
Estimated weeks required
Estimated work required

Activities

carl

2026-08-15 16:49

administrator   ~0007353

For the first bug, what are you passing for --formulation ? You need to use something other than modified-transitional-1 to see these trusted device thumbprints.

carl

2026-08-15 21:13

administrator   ~0007354

Second bug should be fixed by dcd5784fe63471140b929b9563372056ba99e41f

boxerab

2026-08-15 21:47

reporter   ~0007355

For first bug, that is my bad! I didn't pass anything for --formulation . One suggestion - maybe a warning when -T is passed without
multiple-modified-transitional-1 being set.

carl

2026-08-15 21:48

administrator   ~0007356

Precisely such a warning was added in 25ac279e5b7ae6593185230a0fe5a4022a6f689d (2.18.40).

boxerab

2026-08-15 22:52

reporter   ~0007357

excellent!

Issue History

Date Modified Username Field Change
2026-08-12 15:58 boxerab New Issue
2026-08-15 16:49 carl Assigned To => carl
2026-08-15 16:49 carl Status new => feedback
2026-08-15 16:49 carl Note Added: 0007353
2026-08-15 21:13 carl Note Added: 0007354
2026-08-15 21:47 boxerab Note Added: 0007355
2026-08-15 21:47 boxerab Status feedback => assigned
2026-08-15 21:48 carl Status assigned => resolved
2026-08-15 21:48 carl Resolution open => fixed
2026-08-15 21:48 carl Note Added: 0007356
2026-08-15 22:52 boxerab Note Added: 0007357