Bug #13526

Upload multi-page files as multiple descriptions functionality results in 500 error

Added by Mike Cantelon 4 months ago. Updated 4 months ago.

Status:NewStart date:06/17/2021
Priority:HighDue date:
Assignee:-% Done:

0%

Category:Digital object
Target version:-
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

To reproduce:

1. Go to /settings/uploads and set "Upload multi-page files as multiple descriptions" to "yes"
2. Save
3. Attempt to link a multi-page PDF to an information object

Result:

500 error and no creation of digital objects

Expected result:

No error and creation of digital objects

History

#1 Updated by Mike Cantelon 4 months ago

Error results because the compound digital objects don't have their name property set, in the createCompoundChildren method of QubitDigitalObject, but the MySQL table schema for digital objects doesn't allow nane to be NULL.

Solved by setting name to some value.

Also available in: Atom PDF