Bug 13661

Summary: Prevent sabotaging Zebra indexing from the cataloguing module by creating a subfield with a very long word.
Product: Koha Reporter: Olli-Antti Kivilahti <olli-antti.kivilahti>
Component: CatalogingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: katrin.fischer, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 13659    
Bug Blocks:    

Description Olli-Antti Kivilahti 2015-02-03 12:06:44 UTC
!--------!-!-------!
 ! REPLICATE THE ISSUE !
  !--------!-!-------!
1. Add this to any subfield:
TÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄLTÄÄL
2. Make a full Zebra reindexing.
3. Observe a "*** stack smashing detected ***: /usr/bin/zebraidx terminated"-error, when the faulty Biblio is indexed, and a possibly broken search index.
Comment 1 Katrin Fischer 2015-02-08 12:30:23 UTC
I wonder, shouldn't the max length definition on the subfield configuration page stop you from doing this?
Comment 2 Katrin Fischer 2020-01-06 14:33:16 UTC
I never got an answer from Olli - but I assume that the maxlength setting will prevent entering words longer than 999 (his example is 1008), that probably cause this issue.

Please reopen if more is needed.