pkar_watch does not produce report for malformed LL #90

Open
opened 2026-10-14 21:13:29 +00:00 by scossu · 0 comments
Owner

A malformed LL submitted via pkar command line produces the following report:

{
  "id": "YXmHgxZvhjvsQjUh",
  "message": "An error occurred while parsing the SIP.",
  "result": "failure",
  "traceback": [
    "\t[C]: in global 'error'",
    "\t...ar/.luarocks/share/lua/5.5/pocket_archive/submission.lua:486: in upvalue 'process_rsrc'",
    "\t...ar/.luarocks/share/lua/5.5/pocket_archive/submission.lua:708: in function <...ar/.luarocks/share/lua/5.5/pocket_archive/submission.lua:536>",
    "\t[C]: in global 'xpcall'",
    "\t...ar/.luarocks/share/lua/5.5/pocket_archive/submission.lua:873: in method 'new'",
    "\t...cks/lib/luarocks/rocks-5.5/pocket_archive/scm-2/bin/pkar:76: in field 'fn'",
    "\t/home/pkar/.luarocks/share/lua/5.5/cli.lua:59: in function </home/pkar/.luarocks/share/lua/5.5/cli.lua:35>",
    "\t(...tail calls...)",
    "\t...cks/lib/luarocks/rocks-5.5/pocket_archive/scm-2/bin/pkar:581: in main chunk",
    "\t[C]: in ?"
  ],
  "timestamp": "2026-10-14T19:57:06Z",
  "ll": "pkar_submission-1999-duh.csv",
  "path": [
    "1999-DUH/CbEZKyYptUf3ZpnB/duh_20x28-0031.tif"
  ],
  "fn_error": "...ar/.luarocks/share/lua/5.5/pocket_archive/submission.lua:486: File type provided for VPdm1GFKGFa6uPAK but the source path 1999-DUH/hTbroIZMtEpI5JiG/duh_20x28-0003.tif is not a file."
}

When submitted via drop box, pkar_watch outputs in the log:

Oct 14 19:56:05 roncolo bash[33068]: 19:56:06 PKAR err   Submission process failed: ...b/luarocks/rocks-5.5/pocket_archive/scm-2/bin/pkar_watch:151: Submission failed. Check report.

but it does not create the report.

Additionally from creating the report, the app should indicate its location in the log.

Reports are created for successful submissions (not tested yet for validation errors on well-formed LLs).

A malformed LL submitted via `pkar` command line produces the following report: ``` { "id": "YXmHgxZvhjvsQjUh", "message": "An error occurred while parsing the SIP.", "result": "failure", "traceback": [ "\t[C]: in global 'error'", "\t...ar/.luarocks/share/lua/5.5/pocket_archive/submission.lua:486: in upvalue 'process_rsrc'", "\t...ar/.luarocks/share/lua/5.5/pocket_archive/submission.lua:708: in function <...ar/.luarocks/share/lua/5.5/pocket_archive/submission.lua:536>", "\t[C]: in global 'xpcall'", "\t...ar/.luarocks/share/lua/5.5/pocket_archive/submission.lua:873: in method 'new'", "\t...cks/lib/luarocks/rocks-5.5/pocket_archive/scm-2/bin/pkar:76: in field 'fn'", "\t/home/pkar/.luarocks/share/lua/5.5/cli.lua:59: in function </home/pkar/.luarocks/share/lua/5.5/cli.lua:35>", "\t(...tail calls...)", "\t...cks/lib/luarocks/rocks-5.5/pocket_archive/scm-2/bin/pkar:581: in main chunk", "\t[C]: in ?" ], "timestamp": "2026-10-14T19:57:06Z", "ll": "pkar_submission-1999-duh.csv", "path": [ "1999-DUH/CbEZKyYptUf3ZpnB/duh_20x28-0031.tif" ], "fn_error": "...ar/.luarocks/share/lua/5.5/pocket_archive/submission.lua:486: File type provided for VPdm1GFKGFa6uPAK but the source path 1999-DUH/hTbroIZMtEpI5JiG/duh_20x28-0003.tif is not a file." } ``` When submitted via drop box, `pkar_watch` outputs in the log: ``` Oct 14 19:56:05 roncolo bash[33068]: 19:56:06 PKAR err Submission process failed: ...b/luarocks/rocks-5.5/pocket_archive/scm-2/bin/pkar_watch:151: Submission failed. Check report. ``` but it does not create the report. Additionally from creating the report, the app should indicate its location in the log. Reports are created for successful submissions (not tested yet for validation errors on well-formed LLs).
scossu added this to the v1.1.0 milestone 2026-10-14 21:13:29 +00:00
scossu modified the milestone from v1.1.0 to 1.0.x bugfixes 2026-10-15 02:10:39 +00:00
Sign in to join this conversation.
No milestone
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
ktx/pocket_archive#90
No description provided.