[Bug 24392] New: Leading whitespaces in Marc fields cause errors
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24392 Bug ID: 24392 Summary: Leading whitespaces in Marc fields cause errors Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: MARC Bibliographic data support Assignee: koha-bugs@lists.koha-community.org Reporter: cbrannon@cdalibrary.org QA Contact: testopia@bugs.koha-community.org We've discovered that leading whitespaces in at least the 947h field have caused error messages on bib records (detail.pl), and lists linked to the record to fail to load (shelves.pl). Perhaps there should be something in place to either warn or automatically strip leading/trailing whitespaces on these fields, or something done to prevent these whitespaces from breaking things. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24392 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- All good for me. Which Koha versions? Which errors in the koha logs? In the JS console? Can you attach the record to this bug report? -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24392 --- Comment #2 from Christopher Brannon <cbrannon@cdalibrary.org> --- (In reply to Jonathan Druart from comment #1)
All good for me. Which Koha versions? Which errors in the koha logs? In the JS console? Can you attach the record to this bug report?
Right now we are seeing this in 19.05. I don't know about earlier versions. The records were repaired, so I don't have an example at the moment. I will see if I can recreate this manually. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24392 --- Comment #3 from Christopher Brannon <cbrannon@cdalibrary.org> --- (In reply to Jonathan Druart from comment #1)
All good for me. Which Koha versions? Which errors in the koha logs? In the JS console? Can you attach the record to this bug report?
I can't manually recreate this, but I am checking with Bywater to see if they can. I am suspecting the whitespace was transferred through a downloaded record, since I can't manually create the error. Wonder if there needs to be something in place to strip leading whitespace on downloaded records? -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24392 --- Comment #4 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- No, edit a record, add trailing/leading whitespaces, save, edit again => Whitespaces are still there. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24392 --- Comment #5 from Christopher Brannon <cbrannon@cdalibrary.org> --- (In reply to Jonathan Druart from comment #4)
No, edit a record, add trailing/leading whitespaces, save, edit again => Whitespaces are still there.
This isn't a matter of manually adding whitespace. I can do that. It just isn't creating the same effect. So, there is something more specific about the whitespace that I don't know about. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24392 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #6 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Christopher Brannon from comment #5)
(In reply to Jonathan Druart from comment #4)
No, edit a record, add trailing/leading whitespaces, save, edit again => Whitespaces are still there.
This isn't a matter of manually adding whitespace. I can do that. It just isn't creating the same effect. So, there is something more specific about the whitespace that I don't know about.
Maybe it was not whitespace but some other non-printable characters that got in fro copy&pasting? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org