Offline block list fails to run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned |
Bug Description
OpenSRF version: 1.2.0
Evergreen version: 1.6.0.0
PG version: 8.3.8
Linux version: Ubuntu Hardy server edition (AMD64)
When trying to run /openils/
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Connected to OpenSRF...") at /usr/local/
offline-
Connected to OpenSRF network...
oils# "23294123456789"
"4362123"
"23294234567890"
"23294345678901"
"23294456789012"
"23294567890123"
"23294678901234"
"23294789012345"
"700149274"
My suspicion, confirmed by testing, is that the 'Connected to OpenSRF Network' crashes offline-
I am not submitting a patch because there are a number of possible solutions:
- toss the 'Connected to OpenSRF Network' message in offline-blocked-pl, the same way it currently tosses the 'oils#' prompt.
- quote the 'Connected to OpenSRF Network' message in oils_requestor, so it will be recognized as a valid JSON string
- remove the 'Connected to OpenSRF Network' message in oils_requestor completely
The first option is probably the best one - if there's general agreement, the fix is trivial, but I can submit a patch anyway if desired.
Related branches
Changed in evergreen: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
OpenSRF version: 1.2.0
Evergreen version: 1.6.0.0
PG version: 8.3
Linux version: Ubuntu Hardy server edition (AMD64)
We are seeing the same issue and I went with the first suggested option - tossing the message in offline- blocked- list.pl
next if $barcode =~ /^Connected/o; # hack to chop out the connected to opensrf notice