[Bug 23130] New: Incorrect alternative mana server URL in etc/koha-conf.xml
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 Bug ID: 23130 Summary: Incorrect alternative mana server URL in etc/koha-conf.xml Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: trivial Priority: P5 - low Component: Mana-kb Assignee: koha-bugs@lists.koha-community.org Reporter: david@davidnind.com Target Milestone: --- The commented out alternative mana KB server URL included in etc/koha-conf.xml is not correct. If it is used it generates an error message when submitting an account creation request, and the account creation request fails. Error message: 'malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<html>\r\n<head><tit...") at /usr/share/perl5/JSON.pm line 171.' -- 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=23130 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |david@davidnind.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 --- Comment #1 from David Nind <david@davidnind.com> --- The URL should start with https instead of http: - Current URL: <!-- alternative value http://mana-test.koha-community.org to query the test server --> - Corrected URL: <!-- alternative value https://mana-test.koha-community.org to query the test server --> To replicate the issue: 1) Add <mana_config>http://mana-test.koha-community.org</mana_config> to /etc/koha/sites/<instancename>/koha-conf.xml (see etc/koha-conf.xml in the Koha code repository for an example of where to add this; <instancename> if using koha-testing-docker is kohadev). 2) Clear memcached and restart services so that the changes to your Koha instance configuration are recognised (if using koha-testing-docker run flush_memcached and then restart_all). 3) From the staff client home page go to Koha administration > Additional parameters > Share content with Mana KB. 4) Enable content sharing: change 'Use Mana KB for sharing content' to Yes and press Save. 5) Enter your first name, last name and email address in the Configure Mana KB section of the page and then click on 'Send to Mana KB'. 6) An error message is displayed, this may be something like 'malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<html>\r\n<head><tit...") at /usr/share/perl5/JSON.pm line 171.'. 7) Change the mana server URL to https://mana-test.koha-community.org (see step 1), and repeat steps 2, 3 and 5. 8) Instead of an error message you should get 'You successfully created your Mana KB account. Check your mailbox and follow instructions.' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 90635 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90635&action=edit Bug 23130: Fix alternative mana server URL in etc/koha-conf.xml If the alternative mana KB server URL in etc/koha-conf.xml is used it causes an error message like 'malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<html>\r\n<head><tit...") at /usr/share/perl5/JSON.pm line 171.' when submitting an account creation request, and the account creation request fails. This patch updates the alternative mana KB server URL in etc/koha-conf.xml from http://mana-test.koha-community.org to https://mana-test.koha-community.org (the URL should start with https instead of http). If the updated URL is used the account creation request succeeds without causing any error messages. To test: 1) Add <mana_config>http://mana-test.koha-community.org</mana_config> to /etc/koha/sites/<instancename>/koha-conf.xml (see etc/koha-conf.xml in the Koha code repository for an example of where to add this; <instancename> if using koha-testing-docker is kohadev). 2) Clear memcached and restart services so that the changes to your Koha instance configuration are recognised (if using koha-testing-docker run flush_memcached and then restart_all). 3) From the staff client home page go to Koha administration > Additional parameters > Share content with Mana KB. 4) Enable content sharing: change 'Use Mana KB for sharing content' to Yes and press Save. 5) Enter your first name, last name and email address in the Configure Mana KB section of the page and then click on 'Send to Mana KB'. 6) An error message is displayed, this may be something like: 'malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<html>\r\n<head><tit...") at /usr/share/perl5/JSON.pm line 171.' 7) Change the mana server URL to https://mana-test.koha-community.org (see step 1), and repeat steps 2, 3 and 5. 8) Instead of an error message you should get 'You successfully created your Mana KB account. Check your mailbox and follow instructions.' -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com Patch complexity|--- |Trivial patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This fix updates the release notes| |alternative Mana KB server | |URL in | |etc/koha-conf.xml to | |https://mana-test.koha-comm | |unity.org. If the updated | |URL is used the account | |creation request is | |successful and doesn't | |cause any error messages. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #90635|0 |1 is obsolete| | --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 90707 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90707&action=edit Bug 23130: Fix alternative mana server URL in etc/koha-conf.xml If the alternative mana KB server URL in etc/koha-conf.xml is used it causes an error message like 'malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<html>\r\n<head><tit...") at /usr/share/perl5/JSON.pm line 171.' when submitting an account creation request, and the account creation request fails. This patch updates the alternative mana KB server URL in etc/koha-conf.xml from http://mana-test.koha-community.org to https://mana-test.koha-community.org (the URL should start with https instead of http). If the updated URL is used the account creation request succeeds without causing any error messages. To test: 1) Add <mana_config>http://mana-test.koha-community.org</mana_config> to /etc/koha/sites/<instancename>/koha-conf.xml (see etc/koha-conf.xml in the Koha code repository for an example of where to add this; <instancename> if using koha-testing-docker is kohadev). 2) Clear memcached and restart services so that the changes to your Koha instance configuration are recognised (if using koha-testing-docker run flush_memcached and then restart_all). 3) From the staff client home page go to Koha administration > Additional parameters > Share content with Mana KB. 4) Enable content sharing: change 'Use Mana KB for sharing content' to Yes and press Save. 5) Enter your first name, last name and email address in the Configure Mana KB section of the page and then click on 'Send to Mana KB'. 6) An error message is displayed, this may be something like: 'malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<html>\r\n<head><tit...") at /usr/share/perl5/JSON.pm line 171.' 7) Change the mana server URL to https://mana-test.koha-community.org (see step 1), and repeat steps 2, 3 and 5. 8) Instead of an error message you should get 'You successfully created your Mana KB account. Check your mailbox and follow instructions.' Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de Status|Needs Signoff |Signed Off --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- It appears that http: now forwards to https:, but it's still nice to have this! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #90707|0 |1 is obsolete| | --- Comment #5 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 90784 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90784&action=edit Bug 23130: Fix alternative mana server URL in etc/koha-conf.xml If the alternative mana KB server URL in etc/koha-conf.xml is used it causes an error message like 'malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<html>\r\n<head><tit...") at /usr/share/perl5/JSON.pm line 171.' when submitting an account creation request, and the account creation request fails. This patch updates the alternative mana KB server URL in etc/koha-conf.xml from http://mana-test.koha-community.org to https://mana-test.koha-community.org (the URL should start with https instead of http). If the updated URL is used the account creation request succeeds without causing any error messages. To test: 1) Add <mana_config>http://mana-test.koha-community.org</mana_config> to /etc/koha/sites/<instancename>/koha-conf.xml (see etc/koha-conf.xml in the Koha code repository for an example of where to add this; <instancename> if using koha-testing-docker is kohadev). 2) Clear memcached and restart services so that the changes to your Koha instance configuration are recognised (if using koha-testing-docker run flush_memcached and then restart_all). 3) From the staff client home page go to Koha administration > Additional parameters > Share content with Mana KB. 4) Enable content sharing: change 'Use Mana KB for sharing content' to Yes and press Save. 5) Enter your first name, last name and email address in the Configure Mana KB section of the page and then click on 'Send to Mana KB'. 6) An error message is displayed, this may be something like: 'malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<html>\r\n<head><tit...") at /usr/share/perl5/JSON.pm line 171.' 7) Change the mana server URL to https://mana-test.koha-community.org (see step 1), and repeat steps 2, 3 and 5. 8) Instead of an error message you should get 'You successfully created your Mana KB account. Check your mailbox and follow instructions.' Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |julian.maurice@biblibre.com Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master Version(s)| |19.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 --- Comment #6 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Nice work! Pushed to master for 19.11.00 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com --- Comment #7 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Congratulations on your first patch David, it's great to have you aboard :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23130 Fridolin SOMERS <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to master |Pushed to stable CC| |fridolin.somers@biblibre.co | |m Version(s)|19.11.00 |19.11.00,19.05.02 released in| | --- Comment #8 from Fridolin SOMERS <fridolin.somers@biblibre.com> --- Pushed to 19.05.x for 19.05.02 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org