Bug 22462

Summary: Crash in patron card printing
Product: Koha Reporter: Christian Stelzenmüller <christian.stelzenmueller>
Component: Label/patron card printingAssignee: Chris Nighswonger <cnighswonger>
Status: RESOLVED WORKSFORME QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: cecile.joyet, jonathan.druart, martin.renvoize, victor
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22429
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22497
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 22429    
Bug Blocks:    

Description Christian Stelzenmüller 2019-03-06 12:28:34 UTC
Patron card printing:

Layout: the entered text in a text field is longer then the possible page height, page width, card height and card width in the 
template.
Result: when running a batch, the created pdf can't be opened, and Koha doesn't respond. It also seems to end in an infinite loop.
It also happens if all values in the template are saved with the default values "0". 

Template:
page height: 50 mm
page width: 20 mm
card heigh: 50 mmm
card width: 20 mm

Layout:
Textfield Text: Libraries are great
Comment 1 Katrin Fischer 2019-03-06 12:55:54 UTC
If what Christian describes happens, this brings down the instance until the process is killed (like with a Plack restart)
Comment 2 Jonathan Druart 2020-08-07 12:17:36 UTC
Can you provide detailed steps to recreate the problem?
Comment 3 Katrin Fischer 2020-08-07 13:05:00 UTC
It's actually in the bug description:

1) Set up a template for patron card printing with either 

Template:
page height: 50 mm
page width: 20 mm
card heigh: 50 mmm
card width: 20 mm

or leaving all those as 0.

2) Create a layout, including:

Textfield Text: Libraries are awesome, great and super cool.

(or something else too long for the card width)

3) Create a batch with one or more patrons to print cards for

4) Print the cards.

5) PDF won't open.
Comment 4 Jonathan Druart 2020-08-07 13:25:41 UTC
I don't recreate with those step (the pdf is blank however).
Comment 5 Katrin Fischer 2020-08-16 07:49:48 UTC
Maybe this has been fixed by bug 23488?