Bug 21766

Summary: Default sounds broken in 18.05 - wrong filter/link
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Staff interfaceAssignee: Martin Renvoize (ashimema) <martin.renvoize>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: fridolin.somers, gmcharlt, jonathan.druart, kyle, martin.renvoize
Version: 18.05   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 21775    
Bug Blocks:    
Attachments: Bug 21766: Correct filtering on AUDIO_ALERT_PATH js
Bug 21766: Correct filtering on AUDIO_ALERT_PATH js
Bug 20996: (RM follow-up) Fix the api tests
Bug 21766: Correct filtering on AUDIO_ALERT_PATH js

Description Nick Clemens (kidclamp) 2018-11-05 16:10:56 UTC
Bug 15734 introduced wrong filter for AUDIO_ALERT_PATH - this seems to be introducing a leading '/' to the url.

This means the links are forming as:
http://kohadev-intra.myDNSname.org:8080/cgi-bin/koha/circ/%2Fintranet-tmpl/prog/sound/beep.ogg
Instead of
http://kohadev-intra.myDNSname.org:8080/intranet-tmpl/prog/sound/beep.ogg
Comment 1 Martin Renvoize (ashimema) 2018-11-05 16:36:30 UTC
Created attachment 81972 [details] [review]
Bug 21766: Correct filtering on AUDIO_ALERT_PATH js

I managed to introduce a bad filter whilst backporting bug 15734 to the
18.05.x series. This patch attempts to correct that.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 2 Kyle M Hall (khall) 2018-11-05 17:44:31 UTC
Created attachment 81973 [details] [review]
Bug 21766: Correct filtering on AUDIO_ALERT_PATH js

I managed to introduce a bad filter whilst backporting bug 15734 to the
18.05.x series. This patch attempts to correct that.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 3 Martin Renvoize (ashimema) 2018-11-06 16:39:20 UTC Comment hidden (obsolete)
Comment 4 Jonathan Druart 2018-11-06 18:22:27 UTC
Created attachment 82003 [details] [review]
Bug 21766: Correct filtering on AUDIO_ALERT_PATH js

I managed to introduce a bad filter whilst backporting bug 15734 to the
18.05.x series. This patch attempts to correct that.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 5 Jonathan Druart 2018-11-06 18:23:22 UTC
Martin please include the tests from bug 21775 when you will push this fix.
Comment 6 Martin Renvoize (ashimema) 2018-11-16 14:17:03 UTC
Pushed to 18.05.x for 18.05.06
Comment 7 Fridolin Somers 2018-11-26 08:32:36 UTC
Pushed to 17.11.x for 17.11.12

This bug exists even without Bug 21775.