[GH-ISSUE #3654] Pdfcredentials download not working #1879

Closed
opened 2026-02-27 11:19:40 +03:00 by kerem · 0 comments
Owner

Originally created by @xinomilo on GitHub (Aug 2, 2025).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3654

Impacted versions

  • OS Type: Debian
  • OS Version: 12.11
  • Database Type: MySQL (MariaDB)
  • Database version: 10.11.11
  • Modoboa: 2.4.9
  • installer used: No (used installer a few years ago, manually updating since..)
  • Webserver: Nginx

Steps to reproduce

new frontend -> Identities, try to download any user pdf credential.

Current behavior

trying to download any pdf credential from any existing identities and nothing happens. same with new users created. no errors/messages shown. just seems identities page is refreshing after pressing "Download PDF Credentials"..
pdf files do exist in /srv/modoboa/pdfcredentials (modoboa:modoboa perms)

uwsgi log :
example.net [pid: 3148328|app: 1|req: 11/29] xxx.xxx.xxx.xxx () {58 vars in 1030 bytes} [Sat Aug 2 15:57:55 2025] GET /api/v2/accounts/?page=1&page_size=25 => generated 19829 bytes in 272 msecs (HTTP/2.0 200) 6 headers in 205 bytes (1 switches on core 0)
example.net [pid: 3148325|app: 1|req: 5/30] xxx.xxx.xxx.xxx () {58 vars in 1030 bytes} [Sat Aug 2 15:58:02 2025] GET /api/v2/accounts/?page=1&page_size=25 => generated 19829 bytes in 165 msecs (HTTP/2.0 200) 6 headers in 205 bytes (2 switches on core 0)
example.net [pid: 3148327|app: 1|req: 5/31] xxx.xxx.xxx.xxx () {58 vars in 1030 bytes} [Sat Aug 2 15:58:16 2025] GET /api/v2/accounts/?page=1&page_size=25 => generated 19829 bytes in 175 msecs (HTTP/2.0 200) 6 headers in 205 bytes (1 switches on core 0)

pdf credentials download was working fine in old frontend.

btw, even when manually downloaded (eg scp/rsync from server), pdf files can't be opened.. (maybe different issue?) eg.

$ file user@example.com.pdf
user@example.com.pdf: data

$ pdfinfo user@example.com.pdf
Syntax Warning: May not be a PDF file (continuing anyway)
Syntax Error (13): Illegal character '{'
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table

Expected behavior

download user credentials pdf in browser.

Originally created by @xinomilo on GitHub (Aug 2, 2025). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3654 # Impacted versions * OS Type: Debian * OS Version: 12.11 * Database Type: MySQL (MariaDB) * Database version: 10.11.11 * Modoboa: 2.4.9 * installer used: No (used installer a few years ago, manually updating since..) * Webserver: Nginx # Steps to reproduce new frontend -> Identities, try to download any user pdf credential. # Current behavior trying to download any pdf credential from any existing identities and nothing happens. same with new users created. no errors/messages shown. just seems identities page is refreshing after pressing "Download PDF Credentials".. pdf files do exist in /srv/modoboa/pdfcredentials (modoboa:modoboa perms) uwsgi log : example.net [pid: 3148328|app: 1|req: 11/29] xxx.xxx.xxx.xxx () {58 vars in 1030 bytes} [Sat Aug 2 15:57:55 2025] GET /api/v2/accounts/?page=1&page_size=25 => generated 19829 bytes in 272 msecs (HTTP/2.0 200) 6 headers in 205 bytes (1 switches on core 0) example.net [pid: 3148325|app: 1|req: 5/30] xxx.xxx.xxx.xxx () {58 vars in 1030 bytes} [Sat Aug 2 15:58:02 2025] GET /api/v2/accounts/?page=1&page_size=25 => generated 19829 bytes in 165 msecs (HTTP/2.0 200) 6 headers in 205 bytes (2 switches on core 0) example.net [pid: 3148327|app: 1|req: 5/31] xxx.xxx.xxx.xxx () {58 vars in 1030 bytes} [Sat Aug 2 15:58:16 2025] GET /api/v2/accounts/?page=1&page_size=25 => generated 19829 bytes in 175 msecs (HTTP/2.0 200) 6 headers in 205 bytes (1 switches on core 0) pdf credentials download was working fine in old frontend. btw, even when manually downloaded (eg scp/rsync from server), pdf files can't be opened.. (maybe different issue?) eg. $ file user@example.com.pdf user@example.com.pdf: data $ pdfinfo user@example.com.pdf Syntax Warning: May not be a PDF file (continuing anyway) Syntax Error (13): Illegal character '{' Syntax Error: Couldn't find trailer dictionary Syntax Error: Couldn't find trailer dictionary Syntax Error: Couldn't read xref table # Expected behavior download user credentials pdf in browser.
kerem closed this issue 2026-02-27 11:19:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1879
No description provided.