[Bug 17673] New: HTML5Media: Using an OPAC URL for an uploaded file does not work in staff
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17673 Bug ID: 17673 Summary: HTML5Media: Using an OPAC URL for an uploaded file does not work in staff Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Staff Client Assignee: koha-bugs@lists.koha-community.org Reporter: m.de.rooy@rijksmuseum.nl QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com Currently, playing an uploaded file in the Media tab will not work. The URL is invalid. The URLs should be: OPAC /cgi-bin/koha/opac-retrieve-file.pl?id=bce868a0f5521e9329ccbc73414b4927 STAFF /cgi-bin/koha/opac/opac-retrieve-file.pl?id=bce868a0f5521e9329ccbc73414b4927 Note that the URL used in staff is the OPAC one from 856$u. In this case "opac-retrieve-file" should be prefixed with "opac/". Alternatively, the staff upload URL could be: /cgi-bin/koha/tools/upload.pl?op=download&id=316 NOTE: In this case the id is the real id; in opac parameter id is actually used for the hashvalue. -- 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=17673 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mirko@abunchofthings.net -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17673 --- Comment #1 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Or use OPACBaseURL in all cases? -- 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=17673 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|HTML5Media: Using an OPAC |HTML5Media: Using an OPAC |URL for an uploaded file |URL for an uploaded file |does not work in staff |does not always work in | |staff -- 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=17673 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch Status|NEW |Needs Signoff -- 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=17673 --- Comment #2 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 57732 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57732&action=edit Bug 17673: HTML5Media: Using an OPAC URL for an uploaded file does not always work in staff If you did no fill OPACBaseURL, the media URL for an uploaded file will work in OPAC, but not in staff. You can solve that by filling OPACBaseURL correctly. We could also add a simple replace in C4/HTML5Media.pm. Test plan: [1] Add an upload (say .webm file) via 856$u in editor. [2] Check media tab in opac and staff detail. -- 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=17673 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |17501 Assignee|koha-bugs@lists.koha-commun |m.de.rooy@rijksmuseum.nl |ity.org | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17501 [Bug 17501] Koha Objects for uploaded files -- 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=17673 --- Comment #3 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- The patches for 17501 are coming. This patch is built on top of those. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17673 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #57732|0 |1 is obsolete| | --- Comment #4 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 57733 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57733&action=edit Bug 17673: HTML5Media: Using an OPAC URL for an uploaded file does not always work in staff If you did not fill OPACBaseURL, the media URL for an uploaded file will work in OPAC, but not in staff. You can solve that by filling OPACBaseURL correctly. We could also add a simple replace in C4/HTML5Media.pm. Test plan: [1] Add an upload (say .webm file) via 856$u in editor. Put 'video/webm' into 856$q. [2] Check media tab in opac and staff detail. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17673 --- Comment #5 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Note from the author :) Still arguable, because the other link on staff detail at Online resources will still not work. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17673 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |RESOLVED Resolution|--- |WONTFIX -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17673 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17673 Bug 17673 depends on bug 17501, which changed state. Bug 17501 Summary: Koha Objects for uploaded files https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17501 What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org