[Bug 6874] New: File upload in MARC
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bug #: 6874 Summary: File upload in MARC Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: Cataloging AssignedTo: gmcharlt@gmail.com ReportedBy: julian.maurice@biblibre.com QAContact: koha-bugs@lists.koha-community.org CC: ian.walls@bywatersolutions.com Add a plugin for uploading a file and link to it in MARC. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #1 from Julian Maurice <julian.maurice@biblibre.com> 2011-09-16 10:32:12 UTC --- Created attachment 5439 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5439 Patch Plugin for uploading files and link it into 856$u field -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5439|0 |1 is obsolete| | --- Comment #2 from Julian Maurice <julian.maurice@biblibre.com> 2011-09-16 10:34:46 UTC --- Created attachment 5440 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5440 Patch Previous patch does not contain the good bug number -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #3 from Julian Maurice <julian.maurice@biblibre.com> 2011-09-16 10:42:17 UTC --- To test: - Create the directory where uploaded files will go mkdir koha-tmpl/uploads - Set the 2 sysprefs uploadPath: "KOHA_ROOT/koha-tmpl/uploads" uploadWebPath: "/uploads" - Set the MARC framework to use "upload.pl" plugin for 856$u - Modify an existing biblio and use the plugin on this field - Save the modified biblio, verify that the url is well displayed at catalogue/detail.pl and try to download the file. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #4 from Julian Maurice <julian.maurice@biblibre.com> 2011-09-16 10:43:14 UTC --- P.S.: Don't forget to give rights on upload directory -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent Patch Status|--- |Needs Signoff -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Frère Sébastien Marie <semarie-koha@latrappe.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |semarie-koha@latrappe.fr --- Comment #5 from Frère Sébastien Marie <semarie-koha@latrappe.fr> 2011-09-16 13:55:29 UTC --- Hi, Just some remarks... 1. Template name The uploaded file for template are: - upload.tt - upload_delete_file.tt 'cataloguing/value_builder/upload.pl' use: my $template_name = $result || $delete ? "upload_delete_file.tmpl" : "upload.tmpl"; So template extensions are bad (in perl script, I think). 2. A security consideration in 'cataloguing/value_builder/upload.pl', in the sub "plugin", the template_name could be constructed with untrusted user parameter ($result). 3. A second security consideration (near same as above) in 'cataloguing/value_builder/upload.pl', in the sub "plugin", when a file is requested for deletion, the code is:
unlink("$upload_path/$result")
please consider that result come from untrusted input: $input->param('result'). So if $result contains something like "../../../" any file owned by http server could be deleted... 4. And a ore general security consideration (sorry, professional deformation :-) ) About permit uploading arbitrary file... how the filename is treated ? specially the extension ? Be careful with filename like 'test.pl' on a http server that served perl code (like Koha): this could result arbitrary command execution. (same problem for all server-side executable script configured on the server, like PHP, perl, python, cgi, SSI, ...). The minimal security is to advertise the administrator who want enable this preference to have special http server configuration for the "upload_path" (in order to disable all script execution, SSI, or others, and don't use user configuration in the directory [like .htaccess]) 5. Template remark for modified files (like MARCdetail.tt) The code added is generally like: [% IF ( subfiel.is_url ) %] <a href="[% subfiel.marc_value %]">[% subfiel.marc_value |html %]</a> [% ELSIF (subfiel.is_url ) %] [% subfiel.marc_value %] [% ELSE %] [% subfiel.marc_value |html %] [% END %] Why a second ELSIF with the same condition than before ? (subfiel.is_url) That's all for now ! Thanks. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Robin Sheat <robin@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robin@catalyst.net.nz --- Comment #6 from Robin Sheat <robin@catalyst.net.nz> 2011-09-18 23:28:17 UTC --- A couple of things: How will this handle installations that have multiple instances? I'm quite wary of allowing files to be uploaded into a webserver accessible directory, it seems there's too much that can go wrong unless you're really careful (whitelisting extensions, etc.) My preferences would be an out-of-server-tree location, and download requests go through a program that does the actual transfer. The upload.pl has no copyright header, or useful perldoc. "plugin_parameters : other parameters added when the plugin is called by the dopop function" is meaningless. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |paul.poulain@biblibre.com AssignedTo|gmcharlt@gmail.com |julian.maurice@biblibre.com -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5440|0 |1 is obsolete| | --- Comment #7 from Julian Maurice <julian.maurice@biblibre.com> 2011-10-07 10:20:25 UTC --- Created attachment 5764 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5764 Patch New rebased patch with some fixes. @Sébastien: 1/ Fixed. 2/ If you are talking about this line: my $template_name = $result || $delete ? "upload_delete_file.tt" : "upload.tt"; The '||' operator have higher precedence than '?' so in reality it's equivalent to my $template_name = ($result || $delete) ? "upload_delete_file.tt" : "upload.tt"; I added parentheses to avoid confusion 3/ '../' strings are now removed from filename ($result) 4/ Added chmod 0644 on created files to avoid script execution, and removed leading dot on filename to avoid uploading files like .htaccess 5/ err... copy/paste error. The second elsif condition is 'subfiel.is_file' @Robin: Not sure to understand your first question. What do you mean when you say "multiple instances"? You can set uploadPath to be external to the server tree location, and change the apache configuration to add a directory alias. Added copyright header and a brief perldoc section. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #8 from Robin Sheat <robin@catalyst.net.nz> 2011-10-09 22:32:58 UTC --- Multiple instances is when you're running more than one koha instance on a server. Having the files accessible directly through apache strikes me as problematic. Adding an alias doesn't solve that really, and I don't think chmod 0644 will either. For a simple example, what if someone uploads a PHP file and you have mod_php enabled? The patch has a lot of 'warn's in it, looks like debug code. Most of the functions are undocumented, which is bad. Putting HTML/Javascript in .pl files is something that should really really be avoided, it's violating separation of concerns (I know that other parts of Koha have that, that upsets me too :) It should be pushed into a template. I note that you search through to find a free filename. I can't tell what the base name will be (or perhaps it's provided by the uploader), but that a) risks a (very unlikely) race condition, and b) could get slow if there are many files. Perhaps include a timestamp as well? If the OPAC is set so that it requires a valid login to access, then this will still allow those files to be accessible, which is bad. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
Multiple instances is when you're running more than one koha instance on a server.
Having the files accessible directly through apache strikes me as problematic. Adding an alias doesn't solve that really, and I don't think chmod 0644 will either. For a simple example, what if someone uploads a PHP file and you have mod_php enabled? can't it be solved just by an apache config (like "noexec" or something like
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #9 from Paul Poulain <paul.poulain@biblibre.com> 2011-10-13 13:16:11 UTC --- (In reply to comment #8) that ?)
The patch has a lot of 'warn's in it, looks like debug code.
Agreed, Julian, please update unconditional warns to "$debug and warn"
Most of the functions are undocumented, which is bad. If you're speaking of upload.pl, I fully agree, Julian, please add some documentation to this script.
Putting HTML/Javascript in .pl files is something that should really really be avoided, it's violating separation of concerns (I know that other parts of Koha have that, that upsets me too :) It should be pushed into a template.
If you speak of upload.pl, it's how it's made for all plugins and I don't think this should be changed for this one. I agree we should improve the cataloguing plugin system (& probably completely rewrite the cataloguing tool in fact), but that's outside the scope of this patch. For consistency reason I think upload.pl should continue to have this structure & embeed code & html & javascript.
I note that you search through to find a free filename. I can't tell what the base name will be (or perhaps it's provided by the uploader), but that a) risks a (very unlikely) race condition, and b) could get slow if there are many files. Perhaps include a timestamp as well? I don't understand what you mean here, so won't say anything.
If the OPAC is set so that it requires a valid login to access, then this will still allow those files to be accessible, which is bad. True, but how could we avoid this ? should we obfuscate all files URL by providing a pass-through perl script? Something like : <a href="/cgi-bin/koha/opac-retrieve.pl?filename=blabla">Download file</a> and opac-retrieve.pl: 1- check for Opac requiring login 2- send the file
Note that is would also solve your php uploaded concern right ? (Julian : if Robin confirms, ask stephane_n for what he did for Electre, it's that kind of thing) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #10 from Robin Sheat <robin@catalyst.net.nz> 2011-10-13 22:06:06 UTC --- * I don't think expecting people to configure apache to do that is reasonable, many of them have enough trouble with the basic stuff. * Yeah, I saw how the other plugins worked after I wrote that, so I think that's OK (but should probably be fixed in the longer term.) * Having a pass-through script is ideal. I'd be inclined to have it be like: opac-retrieve.pl?id=abc123 where abc123 is a random string, or perhaps a hash of the file. This will prevent people enumerating ID numbers, and can reduce the chance of collisions compared to using a filename (also, if you use a hash, then uploading the same file multiple times will mean that only one version needs to be stored.) In the longer term, it also allows it to have fancier permissions or what not. And, it would remove the risk of executable files being uploaded. I think it would also allow multiple Koha instances to share one file store, if it used hashes, as they wouldn't be guessable. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|master |Rel_3_8 --- Comment #11 from Paul Poulain <paul.poulain@biblibre.com> 2011-10-24 11:38:09 UTC --- Updating Version : This ENH will be for Koha 3.8 -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|Rel_3_8 |master --- Comment #12 from Paul Poulain <paul.poulain@biblibre.com> 2011-10-25 15:05:42 UTC --- Bug versionned for master. entries will be made against rel_3_8 once the patch has been applied (see thread about that on koha-devel yesterday) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 claire.hernandez@biblibre.com <claire.hernandez@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |claire.hernandez@biblibre.c | |om Patch Status|Needs Signoff |Does not apply --- Comment #13 from claire.hernandez@biblibre.com <claire.hernandez@biblibre.com> 2011-12-02 13:41:33 UTC --- $ git-bz apply 6874 Bug 6874 - File upload in MARC Patch Apply? [yn] y Applying: Bug 6874: Adds the ability to upload a file for a subfield /home/claire/dev/community_repo/koha/.git/rebase-apply/patch:329: trailing whitespace. return $string; /home/claire/dev/community_repo/koha/.git/rebase-apply/patch:555: trailing whitespace. <script type="text/javascript" src="[% yuipath %]/utilities/utilities.js"></script> /home/claire/dev/community_repo/koha/.git/rebase-apply/patch:564: trailing whitespace. var doc = opener.document; /home/claire/dev/community_repo/koha/.git/rebase-apply/patch:611: trailing whitespace. <script type="text/javascript" src="[% yuipath %]/utilities/utilities.js"></script> /home/claire/dev/community_repo/koha/.git/rebase-apply/patch:620: trailing whitespace. var doc = opener.document; error: patch failed: catalogue/detail.pl:104 error: catalogue/detail.pl: patch does not apply error: patch failed: installer/data/mysql/sysprefs.sql:318 error: installer/data/mysql/sysprefs.sql: patch does not apply error: patch failed: kohaversion.pl:16 error: kohaversion.pl: patch does not apply error: patch failed: opac/opac-detail.pl:223 error: opac/opac-detail.pl: patch does not apply Patch failed at 0001 Bug 6874: Adds the ability to upload a file for a subfield When you have resolved this problem run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort". Patch left in /tmp/Patch-69WGpm.patch -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #14 from claire.hernandez@biblibre.com <claire.hernandez@biblibre.com> 2011-12-02 14:44:15 UTC --- Forget it, this patch have conflicts better message with 3 way merge in git bz. $ git bz apply 6874 Bug 6874 - File upload in MARC Patch Apply? [yn] y Applying: Bug 6874: Adds the ability to upload a file for a subfield Using index info to reconstruct a base tree... <stdin>:329: trailing whitespace. return $string; <stdin>:555: trailing whitespace. <script type="text/javascript" src="[% yuipath %]/utilities/utilities.js"></script> <stdin>:564: trailing whitespace. var doc = opener.document; <stdin>:611: trailing whitespace. <script type="text/javascript" src="[% yuipath %]/utilities/utilities.js"></script> <stdin>:620: trailing whitespace. var doc = opener.document; warning: squelched 1 whitespace error warning: 6 lines add whitespace errors. Falling back to patching base and 3-way merge... Auto-merging C4/Biblio.pm Auto-merging catalogue/detail.pl CONFLICT (content): Merge conflict in catalogue/detail.pl Auto-merging installer/data/mysql/sysprefs.sql CONFLICT (content): Merge conflict in installer/data/mysql/sysprefs.sql Auto-merging installer/data/mysql/updatedatabase.pl Auto-merging kohaversion.pl CONFLICT (content): Merge conflict in kohaversion.pl Auto-merging opac/opac-detail.pl CONFLICT (content): Merge conflict in opac/opac-detail.pl Failed to merge in the changes. Patch failed at 0001 Bug 6874: Adds the ability to upload a file for a subfield When you have resolved this problem run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort". Patch left in /tmp/Patch-ExUoch.patch (In reply to comment #13) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5764|0 |1 is obsolete| | --- Comment #15 from Julian Maurice <julian.maurice@biblibre.com> 2012-01-12 17:10:10 UTC --- Created attachment 7114 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=7114 Reviewed patch This patch add a new table 'uploaded_files' where are stored the filename and the md5 of the file as an id. This id is stored in corresponding MARC subfield (so maybe 856$u is not the right place to store it?) and is used to download the file with the new script opac-retrieve-file.pl. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|PATCH-Sent (DO NOT USE) |P3 Status|Patch doesn't apply |Needs Signoff -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #16 from Robin Sheat <robin@catalyst.net.nz> 2012-02-01 00:29:08 UTC --- That looks good, my only quibble is about the use of MD5. There's no real reason to use it any more, and while it's not a particularly critical situation, it should probably still be avoided. See also: http://marc-stevens.nl/research/md5-1block-collision/ -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA CC| |jcamins@cpbibliography.com --- Comment #17 from Jared Camins-Esakov <jcamins@cpbibliography.com> 2012-02-07 15:45:13 UTC --- I've tested this, and encountered a number of problems. The following issues cause the patch to fail QA: 1. The syspref does not appear in the syspref interface. 2. There's no explanation of what the syspref should be set to. 3. This patch adds C4::UploadedFiles (notice the 's') with no indication of how it relates to C4::UploadedFile (notice the lack of the 's'). It's possible there is a legitimate reason for this, but there is absolutely no documentation of the new class. The following issues do not cause the patch to fail QA, but are worth noting: 4. Uploaded files can only be accessed when the display is set to normal mode. They do not work with XSLT mode. Perhaps the uploader could be modified to insert the entire URL so that it would work with XSLT displays too? 5. The patch does not rebase cleanly due to changes in the various installer files. You might as well fix this when you address issues 1-3 above, so that the next sign-off-er doesn't need to resolve the conflicts again. 6. The patch should not modify kohaversion.pl (again, easy to fix at sign off, but you might as well do it while fixing the above). 7. Instructions to activate the upload.pl plugin for 856 (or whatever) are not displayed on update. In terms of functionality in normal mode, when the 856$u is linked to the catalog.pl plugin, this is *very* cool. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #7114|0 |1 is obsolete| | --- Comment #18 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 7980 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=7980&action=edit File upload in MARC Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly -- What's new: - SHA-1 is now used to build the file hash instead of MD5 - uploadPath syspref is now displayed in the syspref interface (module Cataloging) - documentation added to C4::UploadedFiles - Value in MARC subfield is now the full URL instead of the id (needs OPACBaseURL syspref) - Patch rebased on current master - kohaversion.pl changes removed from the patch - updatedatabase.pl now prints a short explanation on how to make the plugin working - If 'uploadPath' directory contains other directories, a directory tree is displayed to allow the user to choose in which directory he wants to store his file -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #19 from Frère Sébastien Marie <semarie-koha@latrappe.fr> --- Hi, I only do a "visual review" of the code, but just some suggestions... In "C4/UploadedFiles.pm" - line 147:
if( -f $file_path ) { warn "Id $id not in database, but present in filesystem, do nothing"; return; }
Use "-e" instead of "-f": the difference is when $file_path is an existing link. -f say "not a file", but -e "a node exists" (may be a directory, a plain file, a socket, a pipe, a special block device, a symbolic link...) - line 153:
unless(open $out_fh, '>', $file_path) { warn "Failed to open file '$file_path': $!"; return; }
a race condition is possible between the check of file existence and the open of file. You could use sysopen function instead of file-check + open.
use IO::Handle; unless( sysopen($out_fh, $path, O_WRONLY|O_CREAT|O_EXCL) ) { warn "Failed to open file '$file_path': $!"; return; }
note: the file is created only if don't exist, due to O_CREAT|O_EXCL. There is not time between check and open because all is done by system kernel. In ".../cataloguing/value_builder/upload.tt" (and others templates): please use "html" filter. It is (generally) always to use it, a prevent XSS (here only "uploaded_file" seems to be build with user-input)
The file [% uploaded_file | html %] has been successfully uploaded.
In the syspref message, perhaps it should be added that the uploadPath MUST NOT be a public directory, accessible from the webserver (because else, the server could be exposed to arbitrary code execution by evil uploader). Else, the patch seems promising. Thanks -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #20 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Marking failed QA because of the security issues noted by Frere Marie. Once those have been resolved, I look forward to testing this. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #7980|0 |1 is obsolete| | --- Comment #21 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 8234 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=8234&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly -- What's new: - Use sysopen instead of open - Use html filter on 'uploaded_file' var - Change the syspref description - Rebased on master -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #22 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Julian, I don't think this works right. I have uploadPath set to /tmp, and I get the following result: http://screencast.com/t/x9ihzYSpWC Uploading doesn't seem to work to any directory. Am I missing something? Last time I tested it, the uploading worked, and there weren't all those radio boxes. Regards, Jared -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Tredok <tredok.pierre@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tredok.pierre@gmail.com --- Comment #23 from Tredok <tredok.pierre@gmail.com> --- Hello, We need more documentation about using syspref and directories (which one ? relative ? absolute ?). -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #24 from Julian Maurice <julian.maurice@biblibre.com> --- Jared, this hierarchy of radio buttons allow you to choose in which sub-directory you want to save your file. It normally displays only directories under uploadPath and where it have permission to write. So you should only have subdirectories of /tmp. I will take a look at this. Pierre, you must enter the absolute path to directory you want to save files. This can be any directory you want, but for security reasons it should not be reachable by webserver (so a directory outside of Koha source tree should be ok) -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #8234|0 |1 is obsolete| | --- Comment #25 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 8468 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=8468&action=edit File upload in MARC Patch rebased on master. Jared, I can't reproduce your problem. I've set uploadPath to '/tmp' and can only choose '(root)' (upload works) I created a directory /tmp/test, make it writable by www-data (apache user), then choice for this directory appears and upload works in both directories. Can you make another try, and give me more infos on what happens? -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Matthias Meusburger <matthias.meusburger@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matthias.meusburger@biblibr | |e.com --- Comment #26 from Matthias Meusburger <matthias.meusburger@biblibre.com> --- I've tried to reproduce the bug described by Jared as well, but it did work correctly for me. Using /tmp, I had (root) and the only www-data writable directory (and it's subdirectories). Non www-data writable directories were hidden. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #8468|0 |1 is obsolete| | --- Comment #27 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 10664 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10664&action=edit File upload in MARC Rebased on master -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10664|0 |1 is obsolete| | --- Comment #28 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 10673 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10673&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #29 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- The problem I reported earlier seemed to have something to do with setting the syspref *prior* to the revised patches. I tested it on an installation which had not had the syspref set previously, and it worked great. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |6274 -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10673|0 |1 is obsolete| | --- Comment #30 from Mason James <mtj@kohaaloha.com> --- Created attachment 10863 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10863&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> http://bugs.koha-community.org/show_bug.cgi?id=6784 -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA CC| |mtj@kohaaloha.com --- Comment #31 from Mason James <mtj@kohaaloha.com> --- (In reply to comment #29)
The problem I reported earlier seemed to have something to do with setting the syspref *prior* to the revised patches. I tested it on an installation which had not had the syspref set previously, and it worked great.
QA comment, passing QA... all perl-critic, perl syntax, and tt-template tests pass OK $ koha-qa.pl starting perlcritic-progressive tests... OK starting 'perl -c' syntax tests... OK starting xt/tt_valid.t tests... OK starting xt/author/vaild-template.t tests... OK rebased patch on 60b6c187c46614431f109512c740a3bcf077f342 -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #32 from Paul Poulain <paul.poulain@biblibre.com> --- I think i've found a problem with this patch. When testing, I uploaded a file, then tried to display it, I got: not found (my URL was: /cgi-bin/koha/opac-retrieve-file.pl?id=796851af7a586fad6a19883c8ad714fa116ee9ed) Investigating in /tmp/bz6874 I saw what can be the origin of the bug: -rw-rw-r-- 1 paul paul 41461 juil. 18 11:11 Capture d'écran - 06072012 - 14:04:07.png I uploaded a file called "Capture d'écran - 06072012 - 14:04:07.png" => the encoding on the filesystem is wrong, that's probably why it's failing... You should either fix the encoding or use Text::Unaccent to remove accents sorry, failed QA -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #33 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 10982 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10982&action=edit Bug 6874: Follow-up: fix filename encoding To test, try to upload a file with diacritics in its name and retrieve it by clicking on its link in catalogue/detail.pl page. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Passed QA -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Frère Sébastien Marie <semarie-koha@latrappe.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #34 from Frère Sébastien Marie <semarie-koha@latrappe.fr> --- I mark the bug "Failed QA" for a security problem (or perhaps two). in C4/UploadedFiles.pm, sub UploadFile, the regex for sanitize "../" is invalid.
if($filename =~ m#/(^|/)\.\.(/|$)# or $dir =~ m#(^|/)\.\.(/|$)#) {
for $filename, a "/" was inserted at the beginning... so a filename like "../foo" is ok. That line should be corrected like:
if($filename =~ m#(^|/)\.\.(/|$)# or $dir =~ m#(^|/)\.\.(/|$)#) {
And a second (possible) problem is using
$filename = decode_utf8($filename); *after* the previous check.
I think it may be possible to pass the "../" check and with decode_utf8 obtain a "../". To be sure, it should be investigated, but it should be ok to have the "decode_utf8" *before* the "../" check. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10982|0 |1 is obsolete| | --- Comment #35 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 11098 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11098&action=edit Bug 6874: Follow-up: fix filename encoding and sanitization
for $filename, a "/" was inserted at the beginning... so a filename like "../foo" is ok.
Good catch! Fixed in this new patch
I think it may be possible to pass the "../" check and with decode_utf8 obtain a "../". To be sure, it should be investigated, but it should be ok to have the "decode_utf8" *before* the "../" check.
'.' and '/' are ASCII characters. I don't think any UTF-8 operations could change them. But, for safety, decode_utf8 is now before the '../' check -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #36 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- The follow up does not fix filename encoding. When I try to upload a file with a diacritic in its name, the name is not changed. Also, as an aside, if you use the plugin after the field has already been linked to an uploaded file, you are asked if you want to delete the file, which is good, but -- after you delete the file -- you are not redirected to upload a new file. You have to close the window and reopen it by click on the plugin link. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #37 from Julian Maurice <julian.maurice@biblibre.com> --- The follow-up does not intend to remove accents but to fix encoding. If the name of your uploaded file is the same as the original file, and does not contain "é"-like characters, it's ok. To be sure, you may try to download it. I'm going to submit a patch for the 2nd point. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #38 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 11634 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11634&action=edit Bug 6874: Allow to reupload a file immediately after deletion This patch adds a button "Upload a new file" after the "sucessful deletion" message to avoid user to close and reopen the window. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #39 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- (In reply to comment #37)
The follow-up does not intend to remove accents but to fix encoding. If the name of your uploaded file is the same as the original file, and does not contain "é"-like characters, it's ok. To be sure, you may try to download it.
I don't understand this- I thought that the filenames were supposed to be hashes of some sort? -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #40 from Julian Maurice <julian.maurice@biblibre.com> --- At the end, filenames are just filenames. I think this is needed if you want to access uploaded files 'manually' (not with Koha). -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply --- Comment #41 from Owen Leonard <oleonard@myacpl.org> --- This does not apply anymore. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #42 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- (In reply to comment #40)
At the end, filenames are just filenames. I think this is needed if you want to access uploaded files 'manually' (not with Koha).
I thought we switched to using SHA1 as identifier to avoid clobbering files with the same name? -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10863|0 |1 is obsolete| | --- Comment #43 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 12355 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12355&action=edit Bug 6874: File upload in MARC Rebased on master -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #11098|0 |1 is obsolete| | --- Comment #44 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 12356 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12356&action=edit Bug 6874: Follow-up: fix filename encoding and sanitization Rebased on master -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #11634|0 |1 is obsolete| | --- Comment #45 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 12357 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12357&action=edit Bug 6874: Allow to reupload a file immediately after deletion Rebased on master -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #46 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 12358 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12358&action=edit Bug 6874: Change filename construction method. Use <SHA-1>_<filename>. SHA-1 to avoid name clash, filename to make it easier to find a file by its name, when not using Koha (direct filesystem access). -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #47 from Julian Maurice <julian.maurice@biblibre.com> --- Jared, I finally choose to use both SHA-1 and name for filename. So we have the advantages of both sides, I think. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #12355|0 |1 is obsolete| | --- Comment #48 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 14130 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14130&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #12356|0 |1 is obsolete| | --- Comment #49 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 14131 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14131&action=edit Bug 6874: Follow-up: fix filename encoding and sanitization Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #12357|0 |1 is obsolete| | --- Comment #50 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 14132 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14132&action=edit Bug 6874: Allow to reupload a file immediately after deletion This patch adds a button "Upload a new file" after the "sucessful deletion" message to avoid user to close and reopen the window. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #12358|0 |1 is obsolete| | --- Comment #51 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 14133 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14133&action=edit Bug 6874: Change filename construction method. Use <SHA-1>_<filename>. SHA-1 to avoid name clash, filename to make it easier to find a file by its name, when not using Koha (direct filesystem access). Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |kyle@bywatersolutions.com -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nengard@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #14130|0 |1 is obsolete| | Attachment #14131|0 |1 is obsolete| | Attachment #14132|0 |1 is obsolete| | Attachment #14133|0 |1 is obsolete| | --- Comment #52 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16343 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16343&action=edit Bug 6874: Follow-up: fix filename encoding and sanitization Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16343|0 |1 is obsolete| | --- Comment #53 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16354 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16354&action=edit Bug 6874: Follow-up: fix filename encoding and sanitization Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #54 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16355 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16355&action=edit Bug 6874: Allow to reupload a file immediately after deletion This patch adds a button "Upload a new file" after the "sucessful deletion" message to avoid user to close and reopen the window. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #55 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16356 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16356&action=edit Bug 6874: Change filename construction method. Use <SHA-1>_<filename>. SHA-1 to avoid name clash, filename to make it easier to find a file by its name, when not using Koha (direct filesystem access). Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #56 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16357 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16357&action=edit QA follow-up return with explicit undef removed Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA QA Contact|koha-bugs@lists.koha-commun |paul.poulain@biblibre.com |ity.org | --- Comment #57 from Paul Poulain <paul.poulain@biblibre.com> --- QA comment: sorry, another failed QA, because of koha-qa/perlcritic complaining: * opac/opac-retrieve-file.pl FAIL critic FAIL Bareword file handle opened at line 35, column 5. See pages 202,204 of PBP. * cataloguing/value_builder/upload.pl FAIL critic FAIL Glob written as <...> at line 143, column 17. See page 167 of PBP. However, i've uploaded rebased patches with a 3rd perlcritic error fixed, I let you fix those 2. Once follow-up uploaded, switch back to signed off -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #14130|1 |0 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #58 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 16370 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16370&action=edit Bug 6874: Follow-up for PBP fixes -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #14130|0 |1 is obsolete| | Attachment #16354|0 |1 is obsolete| | Attachment #16355|0 |1 is obsolete| | Attachment #16356|0 |1 is obsolete| | Attachment #16357|0 |1 is obsolete| | Attachment #16370|0 |1 is obsolete| | --- Comment #59 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16693 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16693&action=edit [PASSED QA] Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #60 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16694 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16694&action=edit [PASSED QA] Bug 6874: Follow-up: fix filename encoding and sanitization Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #61 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16695 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16695&action=edit [PASSED QA] Bug 6874: Allow to reupload a file immediately after deletion This patch adds a button "Upload a new file" after the "sucessful deletion" message to avoid user to close and reopen the window. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #62 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16696 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16696&action=edit [PASSED QA] Bug 6874: Change filename construction method. Use <SHA-1>_<filename>. SHA-1 to avoid name clash, filename to make it easier to find a file by its name, when not using Koha (direct filesystem access). Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #63 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16697 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16697&action=edit [PASSED QA] QA follow-up return with explicit undef removed Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> http://bugs.koha-community.org/show_bug.cgi?id=6874 Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #64 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16698 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16698&action=edit [PASSED QA] Bug 6874: Follow-up for PBP fixes Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #65 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16699 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16699&action=edit bug 6874 follow-up fix POD syntax -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #66 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Paul, isn't it kinda late where you are? ;) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #67 from Paul Poulain <paul.poulain@biblibre.com> --- (In reply to comment #66)
Paul, isn't it kinda late where you are? ;)
yep, but I cannot sleep, so I do some QA ;-) QA comment: I've added a follow-up to fix POD, it now passes koha-qa.pl QUESTION : trying to use the feature, I think I made something wrong or there's a problem. Here is what I do: * I've defined the UploadPath syspref to /tmp/bz6874 & created the directory * I've attached "upload.pl" plugin to 856$u * I've opened and edited an existing biblio * I click on the ... (on the right of 856) * I select a file, and put it in root of UploadPath * Koha says "The file logo2.jpg has been successfully uploaded." * I click "close" * i'm back to cataloguing, but the 856$u is empty shouldn't it contain the file I just uploaded ? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16693|0 |1 is obsolete| | Attachment #16694|0 |1 is obsolete| | Attachment #16695|0 |1 is obsolete| | Attachment #16696|0 |1 is obsolete| | Attachment #16697|0 |1 is obsolete| | Attachment #16698|0 |1 is obsolete| | Attachment #16699|0 |1 is obsolete| | --- Comment #68 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16712 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16712&action=edit [PASSED QA] Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #69 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16713 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16713&action=edit [PASSED QA] Bug 6874: Follow-up: fix filename encoding and sanitization Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #70 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16714 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16714&action=edit [PASSED QA] Bug 6874: Allow to reupload a file immediately after deletion This patch adds a button "Upload a new file" after the "sucessful deletion" message to avoid user to close and reopen the window. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #71 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16715 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16715&action=edit [PASSED QA] Bug 6874: Change filename construction method. Use <SHA-1>_<filename>. SHA-1 to avoid name clash, filename to make it easier to find a file by its name, when not using Koha (direct filesystem access). Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #72 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16716 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16716&action=edit [PASSED QA] QA follow-up return with explicit undef removed Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> http://bugs.koha-community.org/show_bug.cgi?id=6874 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #73 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16717 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16717&action=edit [PASSED QA] Bug 6874: Follow-up for PBP fixes Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #74 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16718 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16718&action=edit [PASSED QA] bug 6874 follow-up fix POD syntax Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #75 from Paul Poulain <paul.poulain@biblibre.com> --- Created attachment 16719 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16719&action=edit [PASSED QA] Bug 6874 follow-up jquery has moved The jquery library has been removed from themelang directory and put into /intranet-tmpl/lib/jquery This patch fixes the path -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA Patch complexity|--- |Medium patch --- Comment #76 from Paul Poulain <paul.poulain@biblibre.com> --- QA comment (continued) * the problem was caused by the move of the jquery library. Fixing the jquery path in http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16719 solves the problem, works well now passed QA ! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|master |3.14 --- Comment #77 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- This feature is lacking unit tests for the new C4::UploadedFiles, and at first glance does not look Plack-safe: my $upload_path = C4::Context->preference('uploadPath'); is at a file level, but $upload_path is used in subroutines. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #78 from Paul Poulain <paul.poulain@biblibre.com> --- (In reply to comment #77)
and at first glance does not look Plack-safe: my $upload_path = C4::Context->preference('uploadPath'); is at a file level, but $upload_path is used in subroutines.
I QAed it using Plack, and it worked well. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #79 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- (In reply to comment #78)
(In reply to comment #77)
and at first glance does not look Plack-safe: my $upload_path = C4::Context->preference('uploadPath'); is at a file level, but $upload_path is used in subroutines.
I QAed it using Plack, and it worked well.
That's good. The QA failure was due to the missing unit tests. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #80 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 17368 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17368&action=edit Bug 6874: Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #81 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 17369 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17369&action=edit Bug 6874: Add dependency to Test::CGI::Multipart -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #82 from Julian Maurice <julian.maurice@biblibre.com> --- Oops. Forgot to reset status. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 mathieu saby <mathieu.saby@univ-rennes2.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mathieu.saby@univ-rennes2.f | |r -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16712|0 |1 is obsolete| | Attachment #16713|0 |1 is obsolete| | Attachment #16714|0 |1 is obsolete| | Attachment #16715|0 |1 is obsolete| | Attachment #16716|0 |1 is obsolete| | Attachment #16717|0 |1 is obsolete| | Attachment #16718|0 |1 is obsolete| | Attachment #16719|0 |1 is obsolete| | Attachment #17368|0 |1 is obsolete| | Attachment #17369|0 |1 is obsolete| | --- Comment #83 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18767 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18767&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #84 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18768 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18768&action=edit Bug 6874: Follow-up: fix filename encoding and sanitization Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #85 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18769 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18769&action=edit Bug 6874: Allow to reupload a file immediately after deletion This patch adds a button "Upload a new file" after the "sucessful deletion" message to avoid user to close and reopen the window. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #86 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18770 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18770&action=edit Bug 6874: Change filename construction method. Use <SHA-1>_<filename>. SHA-1 to avoid name clash, filename to make it easier to find a file by its name, when not using Koha (direct filesystem access). Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #87 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18771 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18771&action=edit Bug 6874: QA follow-up return with explicit undef removed Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #88 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18772 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18772&action=edit Bug 6874: Follow-up for PBP fixes Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #89 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18773 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18773&action=edit bug 6874 follow-up fix POD syntax Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #90 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18774 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18774&action=edit Bug 6874 follow-up jquery has moved The jquery library has been removed from themelang directory and put into /intranet-tmpl/lib/jquery This patch fixes the path Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #91 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18775 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18775&action=edit Bug 6874: Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #92 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18776 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18776&action=edit Bug 6874: Add dependency to Test::CGI::Multipart Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #18776|0 |1 is obsolete| | --- Comment #93 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Created attachment 18777 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18777&action=edit Bug 6874: Add dependency to Test::CGI::Multipart Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #94 from Robin Sheat <robin@catalyst.net.nz> --- (In reply to comment #83)
New cataloging plugin upload.pl and new system preference 'uploadPath'. ... uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path
This should not be a system preference. It should be something that's set in the koha-conf.xml. Library staff should not be modifying it, as they can't ensure that directories are set up with the right permissions. If you're running a hosted setup without permission separation, you could upload into someone else's koha space (probably not terrible, but not ideal.) Finally, it's hard to do an automated configuration of a system preference, and it's easy to do one for koha-conf.xml. -- You are receiving this mail because: You are watching all bug changes.
This should not be a system preference. It should be something that's set in the koha-conf.xml. Library staff should not be modifying it, as they can't ensure that directories are set up with the right permissions. This is the same for all other system preferences that contain a path. So why
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #95 from Julian Maurice <julian.maurice@biblibre.com> --- this one is different? Moreover, I don't think a preference for a cataloguing plugin should be in koha-conf.xml (its place is not in global system preferences either but there is no other place) I'm not opposed to move this pref in koha-conf.xml, I just want to understand :) Also I would like to have someone else's opinion before writing a patch. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #96 from Paul Poulain <paul.poulain@biblibre.com> --- (In reply to comment #95)
This should not be a system preference. It should be something that's set in the koha-conf.xml. Library staff should not be modifying it, as they can't ensure that directories are set up with the right permissions. This is the same for all other system preferences that contain a path. So why this one is different? At 1st glance, I had the same reaction. But there is a difference : writing ! Other systempreferences only require reading (opacusercss for example), this one will write, and there is no other syspref in this case I think.
Moreover, I don't think a preference for a cataloguing plugin should be in koha-conf.xml (its place is not in global system preferences either but there is no other place) I hesitate... what I think is that this preference don't need to be setup during installation, because it's an additional feature that most libraries won't use. (like for ldap for example : there are default values, but the koha-conf.xml must be edited manually if you want to enable it)
I'm not opposed to move this pref in koha-conf.xml, I just want to understand :) Also I would like to have someone else's opinion before writing a patch.
my conclusion would be: * move the uploadPath to koha-conf.xml * add <uploadPath><uploadPath> (without any value) to default koha-conf * add a disclaimer on the plugin page if uploadPath is empty, saying something like "WARNING : your server is not properly setup, it won't work. uploadPath must be set in koha configuration file" (wait for another feedback before writing the patch) PS: will this patch make it's way one day ? :\ -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #97 from Robin Sheat <robin@catalyst.net.nz> --- (In reply to comment #95)
This is the same for all other system preferences that contain a path. So why this one is different?
Most of those are URL paths and such like. The only exception I can think of (though there are probably others) is the XSLT, and that is designed to be user editable.
Moreover, I don't think a preference for a cataloguing plugin should be in koha-conf.xml (its place is not in global system preferences either but there is no other place)
Well, it's a preference for where your things get uploaded on the server, it's not something that's likely to change during normal configuration I think. And it's pointless being exposed to library staff as they're typically not sysadmins. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #18767|0 |1 is obsolete| | Attachment #18768|0 |1 is obsolete| | Attachment #18769|0 |1 is obsolete| | Attachment #18770|0 |1 is obsolete| | --- Comment #98 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 18891 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18891&action=edit [SIGNED-OFF] Bug 6874: File upload in MARC Rebased on master Squash of 4 signed-off patches -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #18771|0 |1 is obsolete| | Attachment #18772|0 |1 is obsolete| | Attachment #18773|0 |1 is obsolete| | Attachment #18774|0 |1 is obsolete| | --- Comment #99 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 18892 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18892&action=edit [SIGNED-OFF] Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #18775|0 |1 is obsolete| | Attachment #18777|0 |1 is obsolete| | --- Comment #100 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 18893 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18893&action=edit [SIGNED-OFF] Bug 6874: Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #101 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 18894 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18894&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff --- Comment #102 from Julian Maurice <julian.maurice@biblibre.com> --- The last patch introduces a subroutine in t/lib/Mocks/Context.pm that is also introduced by Bug 10298. But there are quite similar and resolving the conflicts will be very easy. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #18894|0 |1 is obsolete| | --- Comment #103 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 20059 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20059&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #104 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 20060 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20060&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #20059|Bug 6874: Move uploadPath |[SIGNED-OFF] Bug 6874: Move description|syspref to koha-conf.xml |uploadPath syspref to | |koha-conf.xml -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply --- Comment #105 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Unfortunately the fourth patch, "Move uploadPath syspref to koha-conf.xml" will not apply at all because of missing sha1 information for sysprefs.sql. Could you please rebase this patchset and reupload? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtompset@hotmail.com --- Comment #106 from M. Tompsett <mtompset@hotmail.com> --- I'm attempting to backport to 3.12.x -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #107 from M. Tompsett <mtompset@hotmail.com> --- Okay, I accidentally messed up and got what I think is this working for master. However, I have some concerns. misc/strip_value_from_tag.pl The patches containing this were obsoleted (see first 5 ones, I think). Is this module not useful? t/lib/Mocks/Context.pm This exists in part in the non-obsoleted patches ([SIGNED-OFF] Bug 6874: Move uploadPath syspref to koha-conf.xml), but I think something substituting for t::lib::Mocks would be sufficient based on my reading of the code. 3-5 lines of code are missing in the patch, so I can't reconstruct what I think is the original file. I hunted through all the obsoleted patches too. I would very much prefer the original developer/author to rebase their patch, but am willing to provide what I have reconstructed. I know that my colleagues have asked for this patch, and so I'll make sure to back port to 3.12.x too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #108 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 20779 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20779&action=edit Reconstructed attempt for the upload plugin feature. This patch should obsolete all the other stuff, but since I am not the original author, but I really want this patch in, I have done my best to reconstruct it. I decided not to obsolete, in the case I that missed something. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff --- Comment #109 from M. Tompsett <mtompset@hotmail.com> --- As far as I can tell: - configure the koha-conf.xml with the appropriate values - make sure the directories exist and have the correct permissions <pluginsdir>/home/mtompset/koha-dev/var/lib/plugins</pluginsdir> <enable_plugins>1</enable_plugins> <upload_path>/home/mtompset/kohaclone/koha-tmpl/uploads</upload_path> - link 856$u to the upload.pl plugin. - test. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #110 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- (In reply to M. Tompsett from comment #109)
As far as I can tell: - configure the koha-conf.xml with the appropriate values - make sure the directories exist and have the correct permissions <pluginsdir>/home/mtompset/koha-dev/var/lib/plugins</pluginsdir> <enable_plugins>1</enable_plugins>
Please provide an updated test plan that reflects your new dependency on Koha's plugin system. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #18891|0 |1 is obsolete| | --- Comment #111 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 21432 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21432&action=edit [SIGNED-OFF] Bug 6874: File upload in MARC Rebased on master -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #18892|0 |1 is obsolete| | --- Comment #112 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 21433 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21433&action=edit [SIGNED-OFF] Bug 6874: QA follow-up Rebased on master -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #18893|0 |1 is obsolete| | --- Comment #113 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 21434 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21434&action=edit [SIGNED-OFF] Bug 6874: Add unit tests for C4::UploadedFiles Rebased on master -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #20059|0 |1 is obsolete| | --- Comment #114 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 21435 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21435&action=edit [SIGNED-OFF] Bug 6874: Move uploadPath syspref to koha-conf.xml Rebased on master -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #20060|0 |1 is obsolete| | --- Comment #115 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 21436 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21436&action=edit Bug 6874 - File upload in MARC - QA Followup Rebased on master -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #116 from Julian Maurice <julian.maurice@biblibre.com> --- (In reply to M. Tompsett from comment #107)
I would very much prefer the original developer/author to rebase their patch
Done ;-) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #20779|0 |1 is obsolete| | --- Comment #117 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 20779 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20779 Reconstructed attempt for the upload plugin feature. Original author rebased patches. No need for my intermediate attempt. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #118 from M. Tompsett <mtompset@hotmail.com> --- There is a missing semi-colon in the first attachment for the kohastructure.sql -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #119 from M. Tompsett <mtompset@hotmail.com> --- YIKES! " ) ENGINE=InnoDB DEFAULT CHARSET=utf8;" missing from above the uploaded_files table in kohastructure.sql -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #120 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21432 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21432 [SIGNED-OFF] Bug 6874: File upload in MARC Review of attachment 21432: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=6874&attachment=21432) ----------------------------------------------------------------- kohastructure.sql - missing ; on the DROP and the ") ENGINE=..." line was hijacked by the new table, but not replaced. This was obvious when I was attempting to install a UNIMARC installation to hopefully trigger cases 6, 6a, and 6b in C4::Biblio. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #121 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21436 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21436 Bug 6874 - File upload in MARC - QA Followup Review of attachment 21436: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=6874&attachment=21436) ----------------------------------------------------------------- ::: koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/upload.tt @@ +4,4 @@
<head> <title>Upload plugin</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script>
This is correct here, but the upload_delete_file.tt needs the same change. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #122 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21432 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21432 [SIGNED-OFF] Bug 6874: File upload in MARC Review of attachment 21432: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=6874&attachment=21432) ----------------------------------------------------------------- ::: installer/data/mysql/kohastructure.sql @@ +3202,5 @@
+-- +-- Table structure for table uploaded_files +-- + +DROP TABLE IF EXISTS uploaded_files
This line is missing a semi-colon. @@ +3211,1 @@
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
This line should be copied to 3201. ::: koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/upload_delete_file.tt @@ +3,5 @@
+<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Upload plugin</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
This should be [% interface %] not, [% themelang %] -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #123 from M. Tompsett <mtompset@hotmail.com> --- $ giz bz apply 6874 Had to fix up installer/data/mysql/updatedatabase.pl Had to install new dependency for this. $ koha_perl_deps.pl -m -u Listed new requirement (hence revised PerlDependencies.pm checked) $ sudo apt-get install libtest-cgi-multipart-perl Did the database upgrade by starting staff client. $ prove -v t/db_dependent/UploadedFiles.t everything passed. $ ~/qa-test-tools/koha-qa.pl -v 2 -c 10 (I forgot how many patches were applied, so I just said 10) No problems with this set of patches. Noticed POD updates unrelated to patches (C4::Biblio) Probably required to get C4::Biblio to pass QA tool tests. New files include: C4/UploadedFiles.pm cataloguing/value_builder/upload.pl koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/upload.tt koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/upload_delete_file.tt opac/opac-retrieve-file.pl t/db_dependent/UploadedFiles.t Did a opac-detail view, which means the "use C4::Biblio" isn't broken. There are 1,2,3,4,5,6,6a,6b,7,8,9 changes in C4::Biblio $ perldoc C4::Biblio This triggers 2,7,8,9 Refresh of opac-detail page triggers 3,4 Home -> administration -> Marc frameworks -> BKS framework structure -> tag 856 subfield structure -> edit subfields contraint -> advanced -> plugin = upload.pl Attempted to use plug in without configuring koha-conf.xml Correctly gave feedback. $ mkdir ~/uploads $ sudo chown www-data.www-data ~/uploads add in <upload_path>/home/mtompset/uploads</upload_path> Link a file into some biblio entry. Go to opac detail for it: http://demo.library.kohasystem.ca/cgi-bin/koha/opac-detail.pl?biblionumber=1... Triggers 1,3,4,5 In order to trigger 6, 6a, and 6b, GetMarcUrls needs to be called with something other than MARC21. I couldn't figure out how to do that. I'm attempting a UNIMARC installation. I used https://www.dropbox.com/s/idw98d7jiy5e5xd/dump_unimarc.zip as mentioned by Mathieu Saby in his August 20th email "pending bugs about UNIMARC marc flavor". Linked upload.pl uploaded a dummy file for a known biblio record. went to opac and did an opac detail view of it. (6, 6a) unlinked upload.pl refreshed opac detail page (6, 6b) testing to continue later. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #124 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Mark, could you describe a bit what you tested on the pages? The numbers make your test plan quite cryptic to read. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #125 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21432 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21432 [SIGNED-OFF] Bug 6874: File upload in MARC Review of attachment 21432: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=6874&attachment=21432) ----------------------------------------------------------------- ::: C4/Biblio.pm @@ +37,4 @@
use C4::Charset; use C4::Linker; use C4::OAI::Sets; +use C4::UploadedFiles;
This is C4::Biblio Change 1. @@ +1908,4 @@
=head2 GetMarcUrls
+ $marcurls = GetMarcUrls($record,$marcflavour,$frameworkcode);
This is C4::Biblio Change 2. @@ +1919,5 @@
+ my ( $record, $marcflavour, $frameworkcode ) = @_; + + my $tagslib = &GetMarcStructure(1, $frameworkcode); + my $urltag = '856'; + my $urlsubtag = 'u';
This block is C4::Biblio Change 3. @@ +1924,3 @@
my @marcurls; + for my $field ( $record->field($urltag) ) {
This is C4::Biblio Change 4. @@ +1927,5 @@
my @notes; for my $note ( $field->subfield('z') ) { push @notes, { note => $note }; } + my @urls = $field->subfield($urlsubtag);
This is C4::Biblio Change 5. @@ +1956,3 @@
$marcurl->{'part'} = $s3 if ($link); $marcurl->{'toc'} = 1 if ( defined($s3) && $s3 =~ /^[Tt]able/ ); } else {
This begins C4::Biblio Change 6. @@ +1956,5 @@
$marcurl->{'part'} = $s3 if ($link); $marcurl->{'toc'} = 1 if ( defined($s3) && $s3 =~ /^[Tt]able/ ); } else { + if ($tagslib->{ $urltag }->{ $urlsubtag }->{value_builder} eq "upload.pl" + and $url =~ /id=([0-9a-f]+)/) {
Inside this IF is C4::Biblio Change 6a. @@ +1963,5 @@
+ $marcurl->{'linktext'} = $field->subfield('2') + || C4::Context->preference('URLLinkText') + || $file->{filename}; + $marcurl->{'MARCURL'} = $url; + } else {
Inside this ELSE is C4::Biblio Change 6b. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #126 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21433 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21433 [SIGNED-OFF] Bug 6874: QA follow-up Review of attachment 21433: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=6874&attachment=21433) ----------------------------------------------------------------- ::: C4/Biblio.pm @@ +1446,4 @@
=head2 GetMarcPrice
return the prices in accordance with the Marc format. +
I ignored white space while labeling changes. @@ +3395,5 @@
=head2 CountBiblioInOrders
+=over + +=item $count = &CountBiblioInOrders( $biblionumber);
This is C4::Biblio change 7. @@ +3419,5 @@
=head2 GetSubscriptionsId
+=over + +=item $subscriptions = &GetSubscriptionsId($biblionumber);
This is C4::Biblio change 8. @@ +3443,5 @@
=head2 GetHolds
+=over + +=item $holds = &GetHolds($biblionumber);
This is C4::Biblio change 9. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #127 from M. Tompsett <mtompset@hotmail.com> --- I hope that clarifies the complete testing of the C4::Biblio changes that I have done. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #128 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Mark, actually I was more thinking about some 'non-programmer' notes about testing the actual functionality :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #129 from M. Tompsett <mtompset@hotmail.com> --- Fear not. :) I'll be getting to less programmer oriented testing instructions. The programmer oriented instructions are a matter of proving that the code changes introduced do not cause any problems by triggering all the code points. Now, back to testing... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #130 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 21489 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21489&action=edit Bug 6874 - Patch kohastructure.sql issues follow up Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #131 from M. Tompsett <mtompset@hotmail.com> --- Set up VM from scratch (include qa-test-tools, git-bz [fishsoup branch], koha origin/master branch) $ git checkout -b bug_6874 origin/master $ git bz apply 6874 $ perl Makefile.PL $ make $ make test $ make install Remember to set up some useful data after you get a working Koha. :) Configure patch - edit koha-conf.xml and make sure to fill in <upload_path></upload_path> (e.g. <upload_path>/home/mtompset/uploads</upload_path>) - make sure to give that directory correct permissions (e.g. sudo chown www-data.www-data /home/mtompset/uploads) - attach the plug-in to the 856$u subfield (e.g. - log in to staff client - click 'Koha administration' - click 'MARC bibliographic framework' - click 'MARC structure' for a framework - Find the 856 tag - click 'Subfields' - Find the 'u' subfield - click 'Edit' - click 'Other options (choose one)' - select 'upload.pl' in the Plugin drop-down - click 'Save changes') You will want to test in both MARC21 and UNIMARC systems. $ ./koha_perl_deps -m -u $ perldoc C4::Biblio $ perldoc C4::UploadedFiles This will trigger all the functions in C4::UploadedFiles $ prove -v t/db_dependent/UploadedFiles.t Once you have a bilio with 856$u linked up to a file, go to the same biblio on the OPAC. (e.g. http://demo.library.kohasystem.ca/cgi-bin/koha/opac-detail.pl?biblionumber=1...) Then unlink the upload.pl plugin and refresh the OPAC. This latter step is necessary to test a secondary code point under UNIMARC. In the staff client, find a biblio. Add it to your cart. Click the cart at the top of the page. This will test opac-retrieve-file.pl fully: While at the OPAC detail page for the item added - Click the 'Online resources:' URL. 1) It should work. - Delete the file from the filesystem. (e.g. sudo rm /home/mtompset/uploads/*) - Click the 'Online resources:' URL. 2) It should fail. - Open up MySQL and delete the record from the uploaded_files table. 3) It should fail. - Make sure to clear the 856$u entry for that biblio manually and save. opac-detail.pl change is tested just by viewing the details of the biblio with an 856$u link. opac-basket.pl change is tested by adding the item to your cart and clicking the "Cart" button. To test the template files, it is a matter of doing a lot of upload, delete, upload, whatever type tests in the staff client. This has not been fully tested, but there are some issues that I want to test to the point of being able to say what is wrong and how I was expecting it to be handled. I'm beginning to run short of testing time today again. However, I am pretty confident that I have tested the following thoroughly: C4/Biblio.pm C4/Installer/PerlDependencies.pm C4/UploadedFiles.pm basket/basket.pl etc/koha-conf.xml installer/data/mysql/kohastructure.sql installer/data/mysql/updatedatabase.pl opac/opac-basket.pl opac/opac-detail.pl opac/opac-retrieve-file.pl t/db_dependent/UploadedFiles.t Patches with updatedatabase.pl in them need to be rebased. I have already attached an extra patch to correct issues in kohastructure.sql I will continue my testing later of: catalogue/MARCdetail.pl catalogue/detail.pl cataloguing/value_builder/upload.pl koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/upload.tt koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/upload_delete_file.tt -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #132 from M. Tompsett <mtompset@hotmail.com> --- initial state: blank, no records in uploaded_files, no files on filesystem. click plug in icon - expected window pops up. click submit query with nothing clicked. - nothing happens, refreshes as expected. click submit query with root selected - nothing happens, refreshes as expected. click browse, but cancel - nothing happens as expected click browse and choose a file - file name appears as expected click submit query with root not selected - "Error: Failed to upload file. See logs for details." current state: file is uploaded, but database is blank. checked error logs jquery.js issue and "Use of uninitialized $dir" error. click Close. delete file from file system. make sure the jquery.js line in upload.tt has interface not themelang click plug in icon - expected window pops up click browse and choose a file - file name appears as expected click submit query with root not selected - "Error: Failed to upload file. See logs for details." ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ FIX REQUESTED: I was expecting to have a refresh of the page with perhaps a "You forgot to select a location" in red, just above/beside/below the "Choose where to upload file". I was also expect to NOT have the file uploaded. This disconnect between the file existing and the record not existing in the database leads to weird problems. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ click Close. delete file from file system. click plug in icon - expected window pops up click browse and choose a file - file name appears as expected click root - NOTE: I was lazy and didn't create subdirectories in this testing. click submit query - happy it worked kind of message click close - URL is filled in nicely. Not finished fully testing, but I thought I'd mention this problem since I found it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #133 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21432 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21432 [SIGNED-OFF] Bug 6874: File upload in MARC Review of attachment 21432: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=6874&attachment=21432) ----------------------------------------------------------------- ::: cataloguing/value_builder/upload.pl @@ +50,5 @@
+ var id = document.getElementById(index).value; + if(id.match(/id=([0-9a-f]+)/)){ + id = RegExp.\$1; + } + window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=upload.pl&index=\"+index+\"&id=\"+id, 'upload', 'width=600,height=400,toolbar=false,scrollbars=no');
var newin=... (this line) newin.focus(); ::: koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/upload.tt @@ +3,5 @@
+<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>Upload plugin</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
This should be interface, not themelang. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|3.14 |master --- Comment #134 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Reading through the comments of M.Tompset I think this is failed QA. There are issues and further testing should be postponed until those are fixed. Julian, could you please take a look and provide follow-ups where needed? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #135 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 21543 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21543&action=edit Bug 6874 - Focus and jquery.js fix Clicking the plug in show cause the popup window to refocus. The patch to the jquery.js script was wrong. Changed [% themelang %] to [% interface %]. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #136 from M. Tompsett <mtompset@hotmail.com> --- Seeing as I can't sign off on my own patches. Could you squash these into a single patch, re-test, and re-post, Julian? Thanks. I'll continue testing once reposted. :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #137 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- As they haven't been signed off you could squash your patches into one - but don't squash them with Julian's. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #138 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 21546 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21546&action=edit Bug 6874 - kohastructure.sql & jquery.js fix with refocus Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21489|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21543|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #139 from M. Tompsett <mtompset@hotmail.com> --- Squashed my patches together as per Katrin Fischer's request. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #140 from Julian Maurice <julian.maurice@biblibre.com> --- Created attachment 21635 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21635&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #141 from M. Tompsett <mtompset@hotmail.com> --- First patch needs to be rebased. uploaddatabase.pl patch issues. Still going ahead with testing. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #142 from M. Tompsett <mtompset@hotmail.com> --- Testing with Javascript enabled. click plugin icon click Submit Query with nothing filled in. - Was only told about the file location not filled in. I would expected to be told neither were filled in, if I get told this. Selected a file click Submit Query - expected to be told location not filled it. As expected. closed pop up window. click plugin icon click location, but not select a file. - Refreshed blank. A valid behaviour, but confusing since now we have the file location validation. selected a file and chose a location click Submit Query - File uploaded as expected. click close - URL is filled in nicely, as expected. click plugin icon - Would you like to delete window pops up. Okay behaviour. click cancel - windows closes no changes as expected. click plugin icon click delete - told it was deleted successfully, as expected. URL is blanked, as expected. click close repeat steps to get back to delete popup and click delete upload a new file -- after a few cycles of trying to repeat the nothing, browse, root, browse & root selections, I realized I would really like a way to clear the file selected. Though, perhaps this isn't the real need. I did try testing with Javascript off, but it is nearly impossible to work with different browers and scripting off. I was able to trigger your non-javascript red message under IE 10, but not Firefox 24 since the plugin icon refused to popup a window. The problem with it disabled was that then the 'close' doesn't work with javascript disabled, and the URL isn't filled in, but the file is uploaded. On a positive note it continues to behave as if there was no file uploaded, which is what is expected from a blank 856$u field. However, there are table entries and files sitting on the server now. SUGGESTIONS FOR IMPROVEMENTS: - If we validate the location, could we also validate if the filename is set? - Could we add a 'Cancel' which just closes the window to this? Not just a 'Submit Query' button. - Could we change 'Submit Query' to 'Upload File'? - When nothing was selected, got a refresh, which is okay, but strange in light of validation message logic that was added. - Javascript off generates bizarre (but not unstable) state of file uploaded and table pointing to it, but textbox empty, under IE 10. I couldn't even open the new popup windows under FireFox 24. I think if we document this requires Javascript, this is passable. This is getting really close to useable. Thank you for working on this, Julian. :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #143 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 21798 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21798&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21798|0 |1 is obsolete| | --- Comment #144 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 21799 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21799&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21546|0 |1 is obsolete| | --- Comment #145 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21546 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21546 Bug 6874 - kohastructure.sql & jquery.js fix with refocus squashed my patches into one on the end. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21436|0 |1 is obsolete| | --- Comment #146 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 21800 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21800&action=edit [SIGNED OFF] Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21800|0 |1 is obsolete| | --- Comment #147 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 21801 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21801&action=edit [SIGNED OFF] Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21635|0 |1 is obsolete| | --- Comment #148 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 21802 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21802&action=edit [SIGNED OFF] Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21799|0 |1 is obsolete| | --- Comment #149 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 21803 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21803&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #150 from M. Tompsett <mtompset@hotmail.com> --- Test Plan for my patch: - click plugin icon (after all the necessary configuration and setup). No red message is given. - Turn off javascript - click 'Upload file' Should get pretty red message about both things not selected. - go through combinations of one or the other, but not both, and clicking upload Should get pretty red message each time with appropriate message. - Turn on javascript - go through combinations of none, one, and then the other, javascript alerts should warn appropriately. - after linking the 856$u field to a preset URL, click the plugin icon, and delete the file. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #151 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21434 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21434 [SIGNED-OFF] Bug 6874: Add unit tests for C4::UploadedFiles Review of attachment 21434: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=6874&attachment=21434) ----------------------------------------------------------------- ::: C4/Installer/PerlDependencies.pm @@ +692,5 @@
+ 'Test::CGI::Multipart' => { + 'usage' => 'Tests', + 'required' => '0', + 'min_ver' => '0.0.3', + },
This needs a rebase now. :( -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dpavlin@rot13.org -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #152 from Dobrica Pavlinusic <dpavlin@rot13.org> --- I also have conflict in sysprefs: CONFLICT (content): Merge conflict in installer/data/mysql/sysprefs.sql -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #153 from Dobrica Pavlinusic <dpavlin@rot13.org> --- I'm applying on 3.2.x branch, but since it's removed in another patch, it would probably be better to drop all changes to sysprefs from this patchset instead of modifying it and than reverting it back. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion --- Comment #154 from M. Tompsett <mtompset@hotmail.com> --- Shoot... My librarian colleague came up with a scenario that breaks this. 1) Upload and set everything for a 856$u. 2) Clone the subfield. 3) Click the plugin icon. This is where the problem comes in, because now the two subfields you can end up deleting the file for the current 856$u, but the other 856$u still has a reference to the deleted file in it. Any ideas? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #155 from M. Tompsett <mtompset@hotmail.com> --- While we're waiting for a design suggestion to solve the test case I posted, could the original author please rebase his first two signed off patches? Thank you. :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #156 from M. Tompsett <mtompset@hotmail.com> --- I have some other related questions: - should validate URLs, since not all 856$u urls will be uploaded file urls. - external urls will generate the same apparent error deleting as the cloning scenario I mentioned in comment #154. - is telling a user to check errors logs reasonable? They may not have shell access to the system. - If a valid external url is detected, then a different response is needed than if we discover a url to a deleted file. - How will the user know to delete the text field before clicking the plugin icon in order to continue onto the upload screen to put a different file in place? The signed off patches need a rebase. Feedback on these questions would be useful. I'm leaving the status at In Discussion, because even if my patch was signed off, the problem with respect to external urls and deleted files, due to a clone, would still exist. And that seems like enough to merit not just running for QA's approval. -- You are receiving this mail because: You are watching all bug changes.
Shoot... My librarian colleague came up with a scenario that breaks this.
1) Upload and set everything for a 856$u. 2) Clone the subfield. 3) Click the plugin icon. This is where the problem comes in, because now the two subfields you can end up deleting the file for the current 856$u, but the other 856$u still has a reference to the deleted file in it. I think it's not a big deal: the user just get an invalid URL. That's exactly
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #157 from Paul Poulain <paul.poulain@biblibre.com> --- (In reply to M. Tompsett from comment #154) the same thing as when the librarian fills an invalid URL. Also note that the script misc/cronjobs/check-url-quick.pl will detect the problem. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #158 from Paul Poulain <paul.poulain@biblibre.com> --- (In reply to M. Tompsett from comment #156)
I have some other related questions: - should validate URLs, since not all 856$u urls will be uploaded file urls. Not sure I understand well the question, but isn't misc/cronjobs/check-url-quick.pl what you're asking ?
- external urls will generate the same apparent error deleting as the cloning scenario I mentioned in comment #154. see my previous answer.
- is telling a user to check errors logs reasonable? They may not have shell access to the system. No, it isn't
- If a valid external url is detected, then a different response is needed than if we discover a url to a deleted file. I think check-url-quick.pl achieve the goal, and it's better because it detects when an URL becomes invalid at any time.
- How will the user know to delete the text field before clicking the plugin icon in order to continue onto the upload screen to put a different file in place? I don't understand this one.
The signed off patches need a rebase. Feedback on these questions would be useful. I'm leaving the status at In Discussion, because even if my patch was signed off, the problem with respect to external urls and deleted files, due to a clone, would still exist. And that seems like enough to merit not just running for QA's approval. Are my answer OK and is it back to go to signed-off ? (I have not tested the patches still applies cleanly)
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #159 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Paul Poulain from comment #158)
(In reply to M. Tompsett from comment #156)
I have some other related questions: - should validate URLs, since not all 856$u urls will be uploaded file urls. Not sure I understand well the question, but isn't misc/cronjobs/check-url-quick.pl what you're asking ?
No. if ( is this one of our uploaded files ) { continue processing as expected } else { give big warning, and then go immediately to the upload, not the delete page }
- is telling a user to check errors logs reasonable? They may not have shell access to the system. No, it isn't
Then we need to fix that. However, I think that is in part of the signed off patches.
- If a valid external url is detected, then a different response is needed than if we discover a url to a deleted file. I think check-url-quick.pl achieve the goal, and it's better because it detects when an URL becomes invalid at any time.
This isn't about an invalid URL. Frankly, I don't care about the validity as much as I care about the process flow. If I have a url in the 856$u field and click the plugin icon, I do not expect to attempt to delete an external url (not our hosted files that were uploaded).
- How will the user know to delete the text field before clicking the plugin icon in order to continue onto the upload screen to put a different file in place? I don't understand this one.
Test this. Upload a file. Clone the field. Now there are two fields pointing to the same uploaded file. Click the plug in icon, and delete the file, but then cancel. Now there are two fields: one blanked (because you just deleted), and the other with a dangling reference. Now, click the plugin icon for the non-empty 856$u field. It's going to prompt to delete. The user will click "Delete", because there is no way to go to upload otherwise, and an error will be generated (because the file was already deleted). And there is no meaningful feedback suggesting to clear the field before clicking the plugin icon, so the user will be frustrated because they can't seem to upload a file anymore, because they overlook the obvious idea of clearing the field.
Are my answer OK and is it back to go to signed-off ? (I have not tested the patches still applies cleanly)
If I have clarified what I mean, and you do test and see the process flow, then you'll understand that with a couple more validations the process can be made smoother. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #160 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23588 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23588&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23588|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #161 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23589 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23589&action=edit [SIGNED OFF] Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21432|0 |1 is obsolete| | --- Comment #162 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21432 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21432 [SIGNED-OFF] Bug 6874: File upload in MARC I rebased it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #163 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23590 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23590&action=edit [SIGNED OFF] Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21433|0 |1 is obsolete| | --- Comment #164 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21433 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21433 [SIGNED-OFF] Bug 6874: QA follow-up I rebased this. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #165 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23591 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23591&action=edit [SIGNED OFF] Bug 6874: Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21434|0 |1 is obsolete| | --- Comment #166 from M. Tompsett <mtompset@hotmail.com> --- Comment on attachment 21434 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21434 [SIGNED-OFF] Bug 6874: Add unit tests for C4::UploadedFiles I rebased this. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #167 from M. Tompsett <mtompset@hotmail.com> --- I've almost got something nice working. I fixed DelUploadedFile and added DanglingEntry. Hopefully something will be finished in 24 hours. :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23589|0 |1 is obsolete| | --- Comment #168 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23607 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23607&action=edit [SIGNED OFF] Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23590|0 |1 is obsolete| | --- Comment #169 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23608 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23608&action=edit [SIGNED OFF] Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23591|0 |1 is obsolete| | --- Comment #170 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23609 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23609&action=edit [SIGNED OFF] Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #171 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23610 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23610&action=edit [SIGNED OFF] Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21801|0 |1 is obsolete| | --- Comment #172 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23611 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23611&action=edit [SIGNED OFF] Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21802|0 |1 is obsolete| | --- Comment #173 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23612 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23612&action=edit [SIGNED OFF] Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21803|0 |1 is obsolete| | --- Comment #174 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 23613 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23613&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21435|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
From a command line:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Needs Signoff --- Comment #175 from M. Tompsett <mtompset@hotmail.com> --- MEGA TEST PLAN -------------- git checkout -b bug_6874 origin/master git bz apply 6874 -- yes, it should all apply smoothly. I intentionally restored an old backup from a couple months ago to force the upgrade. staff client: -- upgrade -- login Koha administration MARC Bibliographic framework MARC structure (for BKS) Search for 856 Subfields Edit (for u) Other options Plugin: upload.pl Save changes Search the catalog tab {choose a word, any word. I used fancy, because I knew we had a cookbook} click first link Edit Edit record 8 (that's the tab name) click the name for 856 scroll down to u and click the plugin icon -- Correctly got a configuration error message. At a command prompt: vi ~/koha-dev/etc/koha-conf.xml /enable_plug -- add in: <upload_path>{appropriate path. I used /home/mtompset/uploads}</upload_path> :wq mkdir {appropriate path used} -- I even added some subdirectories sudo chown -R -v www-data.www-data {appropriate path used} Back in staff client: click the plugin icon again -- this time an upload screen pops up click the 'Upload file' button -- message about no file or destination browse for a file, select one click the 'Upload file' button -- message about no destination click the 'Cancel' button click the plugin icon click a destination radio button click the 'Upload file' button -- message about no file browse for a file, select one click the 'Upload file' button -- message about success click the 'close' button. -- the text box has been filled in with a nice URL click the plugin icon click cancel click the plugin icon click delete -- the test box should be blanked, and a success message given click Close -- reupload a file properly click the plugin icon click delete click upload file browse for a file, select a destination, click upload file click close on success message click 'Clone this subfield' click the second plugin icon click delete click close click the first plugin icon -- Nice error message about a URL which points to nothing. click cancel In the second 856$u type in a URL (eg. www.google.com) click the second plugin icon -- this jumps immediately to the upload screen, but does not give an error message, because the URL does not have opac-retrieve-file in it. click save (we need to save the bibliographic record) In OPAC: search for the same word (I used fancy) find the entry you just updated with links click the two links. The dangling entry should give you a 500 error, and the other link should work just fine. get back to the detail page In staff client: edit edit record 8 change the 856$u to a valid file in the first link. save In OPAC: refresh the detail page, and click the first link again this time it should get downloaded nicely. prove -v t/db_dependent/UploadedFiles.t perldoc C4::Biblio perldoc C4::UploadedFiles -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23607|0 |1 is obsolete| | --- Comment #176 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26418 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26418&action=edit [SIGNED OFF] Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23608|0 |1 is obsolete| | --- Comment #177 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26419 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26419&action=edit [SIGNED OFF] Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23609|0 |1 is obsolete| | --- Comment #178 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26420 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26420&action=edit [SIGNED OFF] Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23610|0 |1 is obsolete| | --- Comment #179 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26421 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26421&action=edit [SIGNED OFF] Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23611|0 |1 is obsolete| | --- Comment #180 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26422 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26422&action=edit [SIGNED OFF] Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23612|0 |1 is obsolete| | --- Comment #181 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26423 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26423&action=edit [SIGNED OFF] Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23613|0 |1 is obsolete| | --- Comment #182 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26424 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26424&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #183 from M. Tompsett <mtompset@hotmail.com> --- I rebase'd to master. The last patch still needs sign off. :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #184 from M. Tompsett <mtompset@hotmail.com> --- Someone asked about how to test and why I have my name on so many things. I thought perhaps posting this might help people find the test plan and some background details.
Also, why many commits have only your sign? Why is your sign at all?
Because I didn’t write all the first part. I tested it, because we wanted the same functionality.
It's also difficult to test something without a clear test plan.
Yes, yes, it is. I started... Comment 109. Comment 123. Katrin makes similar comments regarding the test plan being difficult or lacking in Comment 128. Comment 131. Comment 142. Which all cumulated into what you are looking for: Comment 175 I only wrote the last patch, which is not signed off. And in my mind, it is the only thing stopping this from reaching QA.
Could you add a description of what to test, before and after patch
Before, Koha does not host files, and 856$u needs to point to some external source. After, Koha’s tag editor lets you upload a file and have a URL automatically generated to point to that newly hosted file. I hope this helps someone decide to take the plunge and test this. :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl --- Comment #185 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to M. Tompsett from comment #184)
I hope this helps someone decide to take the plunge and test this. :)
Looking back at the history of this patch, I definitely admire the perseverance of Julian and Mark to get this into Koha. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #186 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26878 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26878&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #187 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26879 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26879&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #188 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26880 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26880&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #189 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26881 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26881&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #190 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26882 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26882&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #191 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26883 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26883&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26424|0 |1 is obsolete| | --- Comment #192 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 26884 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26884&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26418|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26419|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26420|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26421|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26422|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26423|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #193 from M. Tompsett <mtompset@hotmail.com> --- Given that master has had things added to it. I rebased against master. The only thing that really needs sign off is the last patch (kohastructure.sql, jquery.js, refocus, and more). You can find a mega test plan in comment 175. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|jcamins@cpbibliography.com | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bgkriegel@gmail.com --- Comment #194 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Hi, testing Found a problem, at first I have an empty OPACbaseURL, file upload worked. Then I set base url, now when I upload a file, the original file name is not appended at the end of the 'new' name, I got something like "/cgi-bin/koha/opac-retrieve-file.pl?id=775f48aaf5f7a44fa534dae4e7dc876ea7191115", with a missing "_filename.ext" But file is created, and I can delete it, but url does not work Other little things, koha-qa FAIL C4/UploadedFiles.pm FAIL cataloguing/value_builder/upload.pl ... FAIL opac/opac-retrieve-file.pl with error FAIL forbidden patterns forbidden pattern: Koha is now under the GPLv3 license (line 9) Just an old version of licence on files, update http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #195 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 27114 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27114&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #196 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Bernardo Gonzalez Kriegel from comment #194) So just to clarify. You tried to use this without OPACBaseURL set in the first place? And it seemed to upload fine. Then, you set the OPACBaseURL, and after logging out and back in, when you tried to check on the file it busted? I just patched the license stuff. I'll attempt to recreate your problem tomorrow. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #197 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 27125 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27125&action=edit Bug 6874 - Fix file URL This patch prepends 'http://' to file upload URL, because this patch series assumes (wrongly) that OAPCBaseURL is filled WITH that :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #198 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- (In reply to M. Tompsett from comment #196)
(In reply to Bernardo Gonzalez Kriegel from comment #194)
So just to clarify. You tried to use this without OPACBaseURL set in the first place? And it seemed to upload fine. Then, you set the OPACBaseURL, and after logging out and back in, when you tried to check on the file it busted?
I just patched the license stuff. I'll attempt to recreate your problem tomorrow.
Mark, found it! Your OPACBaseURL must be filled with "http://", that's it And it's wrong, or at last it's not suggested when you fill the preference ("The OPAC is located at http:// ... ") Look my followup, use it or not, fix as you like and squash with previous patch Regards :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #199 from Robin Sheat <robin@catalyst.net.nz> --- (In reply to Bernardo Gonzalez Kriegel from comment #197)
Created attachment 27125 [details] [review] Bug 6874 - Fix file URL
This patch prepends 'http://' to file upload URL, because this patch series assumes (wrongly) that OAPCBaseURL is filled WITH that :)
/me points to https:// and frowns. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #200 from M. Tompsett <mtompset@hotmail.com> --- Perhaps we need a dependency on bug 5010 to solve OPAC http vs. https issues? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #201 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- (In reply to Robin Sheat from comment #199)
/me points to https:// and frowns.
But... is strange to put OPAC under https It's possible of course, but my followup only inserts it if it's not there. It can be modified to recongnize ^http only... Mark, it's just an idea, ta -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #202 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Sorry, pressed wrong key. Mark, It's an idea, don't fully know if http(s):// is the expected beginning of base url. But that explained the wrong behavior I got. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #203 from Robin Sheat <robin@catalyst.net.nz> --- (In reply to Bernardo Gonzalez Kriegel from comment #201)
But... is strange to put OPAC under https
No it's not. In fact, these days we pretty much won't deploy anything without it. People's passwords and personal information goes over it, after all. Even more so when it's LDAPified to a corporate authentication server. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #204 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- (In reply to Robin Sheat from comment #203)
No it's not. In fact, these days we pretty much won't deploy anything without it. People's passwords and personal information goes over it, after all. Even more so when it's LDAPified to a corporate authentication server.
Good point, you are right. Putting 'https://' on OPACBaseURL brakes something? Is it safe to use it that way? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #205 from Robin Sheat <robin@catalyst.net.nz> --- (In reply to Bernardo Gonzalez Kriegel from comment #204)
Putting 'https://' on OPACBaseURL brakes something? Is it safe to use it that way?
We tend to not put the https:// part in, and it seems to work, though I bet there are corner cases that don't. I don't know what would happen if you included the protocol. Really, the whole syspref should be redesigned so that it requires it, so it can be set properly. I'm not sure what the best solution here is, perhaps make it work so that it'll add http:// unless the syspref =~ m|^\w+://| (after all, you might want to host your Koha on gopher://... :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #206 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Robin Sheat from comment #205)
(after all, you might want to host your Koha on gopher://... :)
YES! Oh man. I haven't heard of that protocol for like decades, since university. Actually, Bernardo Gonzalez Kriegel, putting 'http://' or 'https://' into the OPACBaseURL can break things, because some places would then generate http://http://, because we are totally inconsistent in our appending in code vs. appending in templates. That kind of mistake busts really well in FireFox. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #27125|0 |1 is obsolete| | --- Comment #207 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 27154 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27154&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, particularly the OPAC system preference: OpacProtocol. This is used to generate the http or https for the OPACBaseURL. This now checks for proper configuration of the system preference. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |5010 --- Comment #208 from M. Tompsett <mtompset@hotmail.com> --- I have attached my rework which includes a dependency on bug 5010. I have set the status to ASSIGNED, because I have not tested it yet, and did not feel like asking anyone else to sign off until I have revisited a full testing. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #27154|0 |1 is obsolete| | --- Comment #209 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 27155 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27155&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, particularly the OPAC system preference: OpacProtocol. This is used to generate the http or https for the OPACBaseURL. This now checks for proper configuration of the system preference. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #210 from M. Tompsett <mtompset@hotmail.com> --- Further testing has shown an problem with the id generation. You can't upload a file with identical contents to different directories. I'll add a patch for that. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #211 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 27225 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27225&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Liz Rea <liz@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |liz@catalyst.net.nz Summary|File upload in MARC |Attach a file to a MARC | |record (Was: File upload in | |MARC) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veron@veron.ch -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26878|0 |1 is obsolete| | --- Comment #212 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 30362 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30362&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26879|0 |1 is obsolete| | --- Comment #213 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 30363 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30363&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26880|0 |1 is obsolete| | --- Comment #214 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 30364 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30364&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26881|0 |1 is obsolete| | --- Comment #215 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 30365 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30365&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26882|0 |1 is obsolete| | --- Comment #216 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 30366 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30366&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26883|0 |1 is obsolete| | --- Comment #217 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 30367 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30367&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26884|0 |1 is obsolete| | --- Comment #218 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 30368 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30368&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #27114|0 |1 is obsolete| | --- Comment #219 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 30369 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30369&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #27155|0 |1 is obsolete| | --- Comment #220 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 30370 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30370&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, particularly the OPAC system preference: OpacProtocol. This is used to generate the http or https for the OPACBaseURL. This now checks for proper configuration of the system preference. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #27225|0 |1 is obsolete| | --- Comment #221 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 30371 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30371&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #222 from M. Tompsett <mtompset@hotmail.com> --- I rebased this. However, I am feeling, I may have to bite the bullet and just fix all the hardcoded http references in Koha across the board for bug 5010, so that OPACBaseURL can include https:// or http:// nicely. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #30362|0 |1 is obsolete| | --- Comment #223 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 32384 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32384&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #30363|0 |1 is obsolete| | --- Comment #224 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 32385 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32385&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #30364|0 |1 is obsolete| | --- Comment #225 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 32386 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32386&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #30365|0 |1 is obsolete| | --- Comment #226 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 32387 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32387&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #30366|0 |1 is obsolete| | --- Comment #227 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 32388 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32388&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #30367|0 |1 is obsolete| | --- Comment #228 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 32389 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32389&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #30368|0 |1 is obsolete| | --- Comment #229 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 32390 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32390&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #30369|0 |1 is obsolete| | --- Comment #230 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 32391 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32391&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #30370|0 |1 is obsolete| | --- Comment #231 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 32392 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32392&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010. This ensured that http or https is in the OPACBaseURL. This now checks for proper configuration of the system preference. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #30371|0 |1 is obsolete| | --- Comment #232 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 32393 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32393&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #233 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I recently worked on database documentation for 3.18 and noticed that we now have a table misc_files in the database which currently stores scanned invoices from the acquisition module (bug 3050) If I saw it correctly, this patch set will add a table 'uploaded_files'. It looks to me like the new table was thought up to store different kinds of files. Not sure if a merge of both features would make sense, but it might be worth investigating in order to avoid having various ways of achieving similar things. We also choose to keep things separate for reasons. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #234 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- We _might_ also choose... I see now that one main difference is that we upload files to the file system here while misc_files seems to store the files directly in the database. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=11317 CC| |martin.renvoize@ptfs-europe | |.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #235 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Looked at the database some more and we got lots of tables where we store files - but no feature yet where we store the files outside the database as far as I can tell. So I think the idea of merging with misc_files is irrelevant - please don't let me keep you from signing off! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@biblibre.co | |m Status|Needs Signoff |Patch doesn't apply --- Comment #236 from Jonathan Druart <jonathan.druart@biblibre.com> --- fatal: sha1 information is lacking or useless (catalogue/detail.pl). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #237 from M. Tompsett <mtompset@hotmail.com> --- Okay, I'll try to work on this. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32384|0 |1 is obsolete| | --- Comment #238 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36198 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36198&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32385|0 |1 is obsolete| | --- Comment #239 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36199 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36199&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32386|0 |1 is obsolete| | --- Comment #240 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36200 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36200&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32387|0 |1 is obsolete| | --- Comment #241 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36201 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36201&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36198|0 |1 is obsolete| | --- Comment #242 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36202 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36202&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36199|0 |1 is obsolete| | --- Comment #243 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36203 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36203&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36200|0 |1 is obsolete| | --- Comment #244 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36204 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36204&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36201|0 |1 is obsolete| | --- Comment #245 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36205 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36205&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32388|0 |1 is obsolete| | --- Comment #246 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36206 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36206&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32389|0 |1 is obsolete| | --- Comment #247 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36207 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36207&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32390|0 |1 is obsolete| | --- Comment #248 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36208 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36208&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32391|0 |1 is obsolete| | --- Comment #249 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36209 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36209&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32392|0 |1 is obsolete| | --- Comment #250 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36210 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36210&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, particularly the OPAC system preference: OpacProtocol. This is used to generate the http or https for the OPACBaseURL. This now checks for proper configuration of the system preference. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #32393|0 |1 is obsolete| | --- Comment #251 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36211 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36211&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36202|0 |1 is obsolete| | --- Comment #252 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36213 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36213&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36203|0 |1 is obsolete| | --- Comment #253 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36214 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36214&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36204|0 |1 is obsolete| | --- Comment #254 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36215 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36215&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36205|0 |1 is obsolete| | --- Comment #255 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36216 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36216&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36206|0 |1 is obsolete| | --- Comment #256 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36217 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36217&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36207|0 |1 is obsolete| | --- Comment #257 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36218 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36218&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36208|0 |1 is obsolete| | --- Comment #258 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36219 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36219&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36209|0 |1 is obsolete| | --- Comment #259 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36220 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36220&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36210|0 |1 is obsolete| | --- Comment #260 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36221 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36221&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, particularly the OPAC system preference: OpacProtocol. This is used to generate the http or https for the OPACBaseURL. This now checks for proper configuration of the system preference. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36211|0 |1 is obsolete| | --- Comment #261 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36222 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36222&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36213|0 |1 is obsolete| | --- Comment #262 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36223 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36223&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36214|0 |1 is obsolete| | --- Comment #263 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36224 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36224&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36215|0 |1 is obsolete| | --- Comment #264 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36225 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36225&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36216|0 |1 is obsolete| | --- Comment #265 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36226 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36226&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36217|0 |1 is obsolete| | --- Comment #266 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36227 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36227&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36218|0 |1 is obsolete| | --- Comment #267 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36228 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36228&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36219|0 |1 is obsolete| | --- Comment #268 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36229 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36229&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36220|0 |1 is obsolete| | --- Comment #269 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36230 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36230&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36221|0 |1 is obsolete| | --- Comment #270 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36231 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36231&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, in that the protocol is assumed in the OpacBaseURL system preference. It also adds improved error handling. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36222|0 |1 is obsolete| | --- Comment #271 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 36232 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36232&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Robin Sheat <robin@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|robin@catalyst.net.nz | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |ASSIGNED --- Comment #272 from M. Tompsett <mtompset@hotmail.com> --- I have moved this to assigned, like I did in comment #208, because I have yet to retest the rebase, not to mention, I had issues rebasing, so some fixing jumped from one patch into another. I wish to retest as a result. The test plan is in comment #175, with later comments perhaps containing some other things to look at. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36223|0 |1 is obsolete| | --- Comment #273 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37681 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37681&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36224|0 |1 is obsolete| | --- Comment #274 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37682 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37682&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36225|0 |1 is obsolete| | --- Comment #275 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37683 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37683&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36226|0 |1 is obsolete| | --- Comment #276 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37684 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37684&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37681|0 |1 is obsolete| | --- Comment #277 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37685 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37685&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37682|0 |1 is obsolete| | --- Comment #278 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37686 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37686&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37683|0 |1 is obsolete| | --- Comment #279 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37687 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37687&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37684|0 |1 is obsolete| | --- Comment #280 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37688 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37688&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36227|0 |1 is obsolete| | --- Comment #281 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37689 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37689&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36228|0 |1 is obsolete| | --- Comment #282 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37690 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37690&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36229|0 |1 is obsolete| | --- Comment #283 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37691 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37691&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36230|0 |1 is obsolete| | --- Comment #284 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37692 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37692&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36231|0 |1 is obsolete| | --- Comment #285 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37693 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37693&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, in that the protocol is assumed in the OpacBaseURL system preference. It also adds improved error handling. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36232|0 |1 is obsolete| | --- Comment #286 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37694 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37694&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37685|0 |1 is obsolete| | --- Comment #287 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37696 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37696&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37686|0 |1 is obsolete| | --- Comment #288 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37697 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37697&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37687|0 |1 is obsolete| | --- Comment #289 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37698 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37698&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37688|0 |1 is obsolete| | --- Comment #290 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37699 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37699&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37689|0 |1 is obsolete| | --- Comment #291 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37700 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37700&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37690|0 |1 is obsolete| | --- Comment #292 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37701 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37701&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37691|0 |1 is obsolete| | --- Comment #293 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37702 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37702&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37692|0 |1 is obsolete| | --- Comment #294 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37703 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37703&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37693|0 |1 is obsolete| | --- Comment #295 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37704 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37704&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, in that the protocol is assumed in the OpacBaseURL system preference. It also adds improved error handling. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37694|0 |1 is obsolete| | --- Comment #296 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37705 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37705&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. -- You are receiving this mail because: You are watching all bug changes.
From a command line:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #297 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 37706 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37706&action=edit Bug 6874: Catch warnings for clean tests. I hate noisy tests, so I cleaned them up. MEGA TEST PLAN -------------- git checkout -b bug_6874 origin/master git bz apply 6874 -- yes, it should all apply smoothly. I intentionally restored an old backup from a couple months ago to force the upgrade. staff client: -- upgrade -- login Koha administration MARC Bibliographic framework MARC structure (for BKS) Search for 856 Subfields Edit (for u) Other options Plugin: upload.pl Save changes Search the catalog tab {choose a word, any word. I used fancy, because I knew we had a cookbook} click first link Edit Edit record 8 (that's the tab name) click the name for 856 scroll down to u and click the plugin icon -- Correctly got a configuration error message. At a command prompt: vi ~/koha-dev/etc/koha-conf.xml /enable_plug -- add in: <upload_path>{appropriate path. I used /home/mtompset/uploads}</upload_path> :wq mkdir {appropriate path used} -- I even added some subdirectories sudo chown -R -v www-data.www-data {appropriate path used} Back in staff client: click the plugin icon again -- this time an upload screen pops up click the 'Upload file' button -- message about no file or destination browse for a file, select one click the 'Upload file' button -- message about no destination click the 'Cancel' button click the plugin icon click a destination radio button click the 'Upload file' button -- message about no file browse for a file, select one click the 'Upload file' button -- message about success click the 'close' button. -- the text box has been filled in with a nice URL click the plugin icon click cancel click the plugin icon click delete -- the test box should be blanked, and a success message given click Close -- reupload a file properly click the plugin icon click delete click upload file browse for a file, select a destination, click upload file click close on success message click 'Clone this subfield' click the second plugin icon click delete click close click the first plugin icon -- Nice error message about a URL which points to nothing. click cancel In the second 856$u type in a URL (eg. www.google.com) click the second plugin icon -- this jumps immediately to the upload screen, but does not give an error message, because the URL does not have opac-retrieve-file in it. click save (we need to save the bibliographic record) In OPAC: search for the same word (I used fancy) find the entry you just updated with links click the two links. The dangling entry should give you a 500 error, and the other link should work just fine. get back to the detail page In staff client: edit edit record 8 change the 856$u to a valid file in the first link. save In OPAC: refresh the detail page, and click the first link again this time it should get downloaded nicely. prove -v t/db_dependent/UploadedFiles.t perldoc C4::Biblio perldoc C4::UploadedFiles One more round of tests tomorrow, and this should be ready. :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |magnus@enger.priv.no --- Comment #298 from Magnus Enger <magnus@enger.priv.no> --- Should the status be "Needs signoff"? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff --- Comment #299 from M. Tompsett <mtompset@hotmail.com> --- (In reply to Magnus Enger from comment #298)
Should the status be "Needs signoff"?
Oops... Yes, but so does bug 5010, on which this dependent. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Frère Sébastien Marie <semarie-koha@latrappe.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|semarie-koha@latrappe.fr | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37696|0 |1 is obsolete| | --- Comment #300 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38911 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38911&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37697|0 |1 is obsolete| | --- Comment #301 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38912 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38912&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37698|0 |1 is obsolete| | --- Comment #302 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38913 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38913&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37699|0 |1 is obsolete| | --- Comment #303 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38914 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38914&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37700|0 |1 is obsolete| | --- Comment #304 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38915 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38915&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37701|0 |1 is obsolete| | --- Comment #305 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38916 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38916&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37702|0 |1 is obsolete| | --- Comment #306 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38917 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38917&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37703|0 |1 is obsolete| | --- Comment #307 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38918 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38918&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37704|0 |1 is obsolete| | --- Comment #308 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38919 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38919&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, in that the protocol is assumed in the OpacBaseURL system preference. It also adds improved error handling. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37705|0 |1 is obsolete| | --- Comment #309 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38920 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38920&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. -- You are receiving this mail because: You are watching all bug changes.
From a command line:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37706|0 |1 is obsolete| | --- Comment #310 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38921 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38921&action=edit Bug 6874: Catch warnings for clean tests. I hate noisy tests, so I cleaned them up. MEGA TEST PLAN -------------- git checkout -b bug_6874 origin/master git bz apply 6874 -- yes, it should all apply smoothly. I intentionally restored an old backup from a couple months ago to force the upgrade. staff client: -- upgrade -- login Koha administration MARC Bibliographic framework MARC structure (for BKS) Search for 856 Subfields Edit (for u) Other options Plugin: upload.pl Save changes Search the catalog tab {choose a word, any word. I used fancy, because I knew we had a cookbook} click first link Edit Edit record 8 (that's the tab name) click the name for 856 scroll down to u and click the plugin icon -- Correctly got a configuration error message. At a command prompt: vi ~/koha-dev/etc/koha-conf.xml /enable_plug -- add in: <upload_path>{appropriate path. I used /home/mtompset/uploads}</upload_path> :wq mkdir {appropriate path used} -- I even added some subdirectories sudo chown -R -v www-data.www-data {appropriate path used} Back in staff client: click the plugin icon again -- this time an upload screen pops up click the 'Upload file' button -- message about no file or destination browse for a file, select one click the 'Upload file' button -- message about no destination click the 'Cancel' button click the plugin icon click a destination radio button click the 'Upload file' button -- message about no file browse for a file, select one click the 'Upload file' button -- message about success click the 'close' button. -- the text box has been filled in with a nice URL click the plugin icon click cancel click the plugin icon click delete -- the test box should be blanked, and a success message given click Close -- reupload a file properly click the plugin icon click delete click upload file browse for a file, select a destination, click upload file click close on success message click 'Clone this subfield' click the second plugin icon click delete click close click the first plugin icon -- Nice error message about a URL which points to nothing. click cancel In the second 856$u type in a URL (eg. www.google.com) click the second plugin icon -- this jumps immediately to the upload screen, but does not give an error message, because the URL does not have opac-retrieve-file in it. click save (we need to save the bibliographic record) In OPAC: search for the same word (I used fancy) find the entry you just updated with links click the two links. The dangling entry should give you a 500 error, and the other link should work just fine. get back to the detail page In staff client: edit edit record 8 change the 856$u to a valid file in the first link. save In OPAC: refresh the detail page, and click the first link again this time it should get downloaded nicely. prove -v t/db_dependent/UploadedFiles.t perldoc C4::Biblio perldoc C4::UploadedFiles One more round of tests tomorrow, and this should be ready. :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38911|0 |1 is obsolete| | --- Comment #311 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38922 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38922&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38912|0 |1 is obsolete| | --- Comment #312 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38923 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38923&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38913|0 |1 is obsolete| | --- Comment #313 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38924 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38924&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38914|0 |1 is obsolete| | --- Comment #314 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38925 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38925&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38922|0 |1 is obsolete| | --- Comment #315 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38926 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38926&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38923|0 |1 is obsolete| | --- Comment #316 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38927 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38927&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38924|0 |1 is obsolete| | --- Comment #317 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38928 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38928&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38925|0 |1 is obsolete| | --- Comment #318 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38929 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38929&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38915|0 |1 is obsolete| | --- Comment #319 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38930 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38930&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38916|0 |1 is obsolete| | --- Comment #320 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38931 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38931&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38917|0 |1 is obsolete| | --- Comment #321 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38932 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38932&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38918|0 |1 is obsolete| | --- Comment #322 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38933 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38933&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38919|0 |1 is obsolete| | --- Comment #323 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38934 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38934&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, in that the protocol is assumed in the OpacBaseURL system preference. It also adds improved error handling. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38920|0 |1 is obsolete| | --- Comment #324 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38935 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38935&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. -- You are receiving this mail because: You are watching all bug changes.
From a command line:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38921|0 |1 is obsolete| | --- Comment #325 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 38936 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38936&action=edit Bug 6874: Catch warnings for clean tests. I hate noisy tests, so I cleaned them up. MEGA TEST PLAN -------------- git checkout -b bug_6874 origin/master git bz apply 6874 -- yes, it should all apply smoothly. I intentionally restored an old backup from a couple months ago to force the upgrade. staff client: -- upgrade -- login Koha administration MARC Bibliographic framework MARC structure (for BKS) Search for 856 Subfields Edit (for u) Other options Plugin: upload.pl Save changes Search the catalog tab {choose a word, any word. I used fancy, because I knew we had a cookbook} click first link Edit Edit record 8 (that's the tab name) click the name for 856 scroll down to u and click the plugin icon -- Correctly got a configuration error message. At a command prompt: vi ~/koha-dev/etc/koha-conf.xml /enable_plug -- add in: <upload_path>{appropriate path. I used /home/mtompset/uploads}</upload_path> :wq mkdir {appropriate path used} -- I even added some subdirectories sudo chown -R -v www-data.www-data {appropriate path used} Back in staff client: click the plugin icon again -- this time an upload screen pops up click the 'Upload file' button -- message about no file or destination browse for a file, select one click the 'Upload file' button -- message about no destination click the 'Cancel' button click the plugin icon click a destination radio button click the 'Upload file' button -- message about no file browse for a file, select one click the 'Upload file' button -- message about success click the 'close' button. -- the text box has been filled in with a nice URL click the plugin icon click cancel click the plugin icon click delete -- the test box should be blanked, and a success message given click Close -- reupload a file properly click the plugin icon click delete click upload file browse for a file, select a destination, click upload file click close on success message click 'Clone this subfield' click the second plugin icon click delete click close click the first plugin icon -- Nice error message about a URL which points to nothing. click cancel In the second 856$u type in a URL (eg. www.google.com) click the second plugin icon -- this jumps immediately to the upload screen, but does not give an error message, because the URL does not have opac-retrieve-file in it. click save (we need to save the bibliographic record) In OPAC: search for the same word (I used fancy) find the entry you just updated with links click the two links. The dangling entry should give you a 500 error, and the other link should work just fine. get back to the detail page In staff client: edit edit record 8 change the 856$u to a valid file in the first link. save In OPAC: refresh the detail page, and click the first link again this time it should get downloaded nicely. prove -v t/db_dependent/UploadedFiles.t perldoc C4::Biblio perldoc C4::UploadedFiles One more round of tests tomorrow, and this should be ready. :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marjorie Barry-Vila <marjorie.barry-vila@ccsr.qc.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marjorie.barry-vila@ccsr.qc | |.ca -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38926|0 |1 is obsolete| | --- Comment #326 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39113 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39113&action=edit [SIGNED-OFF] Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38927|0 |1 is obsolete| | --- Comment #327 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39114 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39114&action=edit [SIGNED-OFF] Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38928|0 |1 is obsolete| | --- Comment #328 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39115 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39115&action=edit [SIGNED-OFF] Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38929|0 |1 is obsolete| | --- Comment #329 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39116 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39116&action=edit [SIGNED-OFF] Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38930|0 |1 is obsolete| | --- Comment #330 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39117 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39117&action=edit [SIGNED-OFF] Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38931|0 |1 is obsolete| | --- Comment #331 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39118 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39118&action=edit [SIGNED-OFF] Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38932|0 |1 is obsolete| | --- Comment #332 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39119 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39119&action=edit [SIGNED-OFF] Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38933|0 |1 is obsolete| | --- Comment #333 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39120 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39120&action=edit [SIGNED-OFF] Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38934|0 |1 is obsolete| | --- Comment #334 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39121 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39121&action=edit [SIGNED-OFF] Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, in that the protocol is assumed in the OpacBaseURL system preference. It also adds improved error handling. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38935|0 |1 is obsolete| | --- Comment #335 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39122 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39122&action=edit [SIGNED-OFF] Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
From a command line:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38936|0 |1 is obsolete| | --- Comment #336 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 39123 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39123&action=edit [SIGNED-OFF] Bug 6874: Catch warnings for clean tests. I hate noisy tests, so I cleaned them up. MEGA TEST PLAN -------------- git checkout -b bug_6874 origin/master git bz apply 6874 -- yes, it should all apply smoothly. I intentionally restored an old backup from a couple months ago to force the upgrade. staff client: -- upgrade -- login Koha administration MARC Bibliographic framework MARC structure (for BKS) Search for 856 Subfields Edit (for u) Other options Plugin: upload.pl Save changes Search the catalog tab {choose a word, any word. I used fancy, because I knew we had a cookbook} click first link Edit Edit record 8 (that's the tab name) click the name for 856 scroll down to u and click the plugin icon -- Correctly got a configuration error message. At a command prompt: vi ~/koha-dev/etc/koha-conf.xml /enable_plug -- add in: <upload_path>{appropriate path. I used /home/mtompset/uploads}</upload_path> :wq mkdir {appropriate path used} -- I even added some subdirectories sudo chown -R -v www-data.www-data {appropriate path used} Back in staff client: click the plugin icon again -- this time an upload screen pops up click the 'Upload file' button -- message about no file or destination browse for a file, select one click the 'Upload file' button -- message about no destination click the 'Cancel' button click the plugin icon click a destination radio button click the 'Upload file' button -- message about no file browse for a file, select one click the 'Upload file' button -- message about success click the 'close' button. -- the text box has been filled in with a nice URL click the plugin icon click cancel click the plugin icon click delete -- the test box should be blanked, and a success message given click Close -- reupload a file properly click the plugin icon click delete click upload file browse for a file, select a destination, click upload file click close on success message click 'Clone this subfield' click the second plugin icon click delete click close click the first plugin icon -- Nice error message about a URL which points to nothing. click cancel In the second 856$u type in a URL (eg. www.google.com) click the second plugin icon -- this jumps immediately to the upload screen, but does not give an error message, because the URL does not have opac-retrieve-file in it. click save (we need to save the bibliographic record) In OPAC: search for the same word (I used fancy) find the entry you just updated with links click the two links. The dangling entry should give you a 500 error, and the other link should work just fine. get back to the detail page In staff client: edit edit record 8 change the 856$u to a valid file in the first link. save In OPAC: refresh the detail page, and click the first link again this time it should get downloaded nicely. prove -v t/db_dependent/UploadedFiles.t perldoc C4::Biblio perldoc C4::UploadedFiles One more round of tests tomorrow, and this should be ready. :) Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Tested on top of 5010 Followed mostly mega test plan, seems to work :) Can upload, delete, modify, etc Test runs Ok No koha-qa errors I view this as valuable addition, dangling since 2011! As with 5010, I consider this can be pushed (for 3.22) and we can fix anything wrong later. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|paul.poulain@biblibre.com |m.de.rooy@rijksmuseum.nl --- Comment #337 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- QA: Like to do this one next :) But if someone else is faster.. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #338 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Please bear with me; still working on this one.. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=14282 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39113|0 |1 is obsolete| | Attachment #39114|0 |1 is obsolete| | Attachment #39115|0 |1 is obsolete| | Attachment #39116|0 |1 is obsolete| | Attachment #39117|0 |1 is obsolete| | Attachment #39118|0 |1 is obsolete| | Attachment #39119|0 |1 is obsolete| | Attachment #39120|0 |1 is obsolete| | Attachment #39121|0 |1 is obsolete| | Attachment #39122|0 |1 is obsolete| | Attachment #39123|0 |1 is obsolete| | --- Comment #339 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39626 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39626&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Slightly amended/simplified the patch during QA: The changes to GetMarcUrls are not really needed, and would have needed some attention. Another link text can be supplied by the plugin too. This also reduces the need for changes in basket.pl, MARCdetail.pl, detail.pl, opac-basket.pl and opac-detail.pl. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #340 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39627 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39627&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #341 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39628 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39628&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #342 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39629 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39629&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #343 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39630 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39630&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #344 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39631 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39631&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #345 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39632 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39632&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #346 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39633 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39633&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #347 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39634 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39634&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, in that the protocol is assumed in the OpacBaseURL system preference. It also adds improved error handling. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #348 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39635 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39635&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
From a command line:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #349 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39636 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39636&action=edit Bug 6874: Catch warnings for clean tests. I hate noisy tests, so I cleaned them up. MEGA TEST PLAN -------------- git checkout -b bug_6874 origin/master git bz apply 6874 -- yes, it should all apply smoothly. I intentionally restored an old backup from a couple months ago to force the upgrade. staff client: -- upgrade -- login Koha administration MARC Bibliographic framework MARC structure (for BKS) Search for 856 Subfields Edit (for u) Other options Plugin: upload.pl Save changes Search the catalog tab {choose a word, any word. I used fancy, because I knew we had a cookbook} click first link Edit Edit record 8 (that's the tab name) click the name for 856 scroll down to u and click the plugin icon -- Correctly got a configuration error message. At a command prompt: vi ~/koha-dev/etc/koha-conf.xml /enable_plug -- add in: <upload_path>{appropriate path. I used /home/mtompset/uploads}</upload_path> :wq mkdir {appropriate path used} -- I even added some subdirectories sudo chown -R -v www-data.www-data {appropriate path used} Back in staff client: click the plugin icon again -- this time an upload screen pops up click the 'Upload file' button -- message about no file or destination browse for a file, select one click the 'Upload file' button -- message about no destination click the 'Cancel' button click the plugin icon click a destination radio button click the 'Upload file' button -- message about no file browse for a file, select one click the 'Upload file' button -- message about success click the 'close' button. -- the text box has been filled in with a nice URL click the plugin icon click cancel click the plugin icon click delete -- the test box should be blanked, and a success message given click Close -- reupload a file properly click the plugin icon click delete click upload file browse for a file, select a destination, click upload file click close on success message click 'Clone this subfield' click the second plugin icon click delete click close click the first plugin icon -- Nice error message about a URL which points to nothing. click cancel In the second 856$u type in a URL (eg. www.google.com) click the second plugin icon -- this jumps immediately to the upload screen, but does not give an error message, because the URL does not have opac-retrieve-file in it. click save (we need to save the bibliographic record) In OPAC: search for the same word (I used fancy) find the entry you just updated with links click the two links. The dangling entry should give you a 500 error, and the other link should work just fine. get back to the detail page In staff client: edit edit record 8 change the 856$u to a valid file in the first link. save In OPAC: refresh the detail page, and click the first link again this time it should get downloaded nicely. prove -v t/db_dependent/UploadedFiles.t perldoc C4::Biblio perldoc C4::UploadedFiles One more round of tests tomorrow, and this should be ready. :) Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Tested on top of 5010 Followed mostly mega test plan, seems to work :) Can upload, delete, modify, etc Test runs Ok No koha-qa errors I view this as valuable addition, dangling since 2011! As with 5010, I consider this can be pushed (for 3.22) and we can fix anything wrong later. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #350 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39637 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39637&action=edit Bug 6874: [QA Follow-up] Adjustments for opac-retrieve Adds httpheaders sub to UploadedFiles; this will be extended on a new report. (Idea is to add configurable headers for file extensions.) Trivial unit test added. Small cosmetic changes to opac-retrieve-file. Test plan: Run test UploadedFiles.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #351 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 39638 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39638&action=edit Bug 6874: [QA Follow-up] File test, plugin style, finddirs With reference to comment19 about using -e or -f, I adjusted a POD line and a warning. Note that the two -f occurrences in the module now are correct (if it is not a plain file, something is wrong..) The plugin contains an obsolete plugin_parameters and empty Blur, Focus code. Converted it to new style rightaway. Moved finddirs to module. Slightly adjusted since uploadpath is passed in as base already. Added unit test. Test plan: Run t/db../UploadedFiles.t. Run t/db../FrameworkPlugins.t -incl catalouging/value_builder/upload.pl. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #352 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- QA Comment Bug 6874: First, thanks for your work, Julian and Marc (and others testing it). This really had a long time.. And it is a nice feature. But what should QA be without some comments :) No blockers for me, especially taking into consideration the long history. [1] The new dependency Test/CGI/Multipart.pm is marked as not required. But you do unconditionally use it in the unit test. Should it be required? [2] Pass a nonexistent id to opac-retrieve-file; this results in Premature end of script headers: opac-retrieve-file.pl (Error 500) We should do some more here (instead of just an exit). I would prefer at least a 404 error here instead of a 500. [3] The changes to GetMarcUrls are not really needed. They are only done at UNIMARC side; so we create some inconsistency. And imo the change is questionable. Using tagslib and an additional framework parameter seems overkill. You also do not use $text in your code. An easier and more consistent implementation would be: let the plugin provide a link text in the corresponding subfield. I slightly amended the first patch in this respect. [4] With reference to Jareds comment (dating from 2012): [Quote] This patch adds C4::UploadedFiles (notice the 's') with no indication of how it relates to C4::UploadedFile (notice the lack of the 's'). It's possible there is a legitimate reason for this, but there is absolutely no documentation of the new class. [End of quote] I would not want to block this development for this reason now, since we are three years later and much effort went into it already. But it is far from ideal to now have UploadedFile.pm and UploadedFiles.pm. (Too bad that this comment seems to be ignored later on.) The new modules does have far better test coverage and actually implements a TODO from the old module. The overlap between both modules should be worked on. [5] The plugin still contains old stuff like plugin_parameters. (While still working on converting plugins, I decided to do this one rightaway.) See last follow-up. [6] The design of the form is rather poor. This c/should be improved on a new followup report. (Additionally, if I uploaded a file successfully, there is no need to say that it was fine and give me a Close button. Just close the form and put the URL in my field. An error is something else.) [7] The directory structure on the upload form shows a *tree* of all writable folders and subfolders within the upload dir. It works now, but I have my doubts if we really want it like that. It could be a huge tree. It may have security implications too. I would rather opt for a combo box with some categories and leave the exact location to the upload manager. (Perhaps start a new subdir after 1000 uploads or whatever. Note that we leave the filename to the upload script too.) I will open a new report for it. [8] Some interesting extensions (imo) would be: Move upload to Tools (adjust the plugin to provide an additional interface). Provide a Manage upload too with some additional settings like quota, maximum size, etc. Add upload permissions. Add configurable headers for opac-retrieve (to view files inline etc.) I will start a few reports :-) [9] Personally, I would have renamed the column dir into subdir or relpath or something to indicate that it is no full path. Also for the root dir I would leave it empty instead of putting / into it. [10] Translation issues: I see several alerts in the template that cannot be translated. Please adjust (new report). Note to RM: I would ask for some additional consideration/clemency when deciding on this patch set. As you can see, the number of points listed could have justified a Failed QA too, but there is a lot of work in here. If you push it, we could also mark the new feature as experimental while some improvements are on the way. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Indranil Das Gupta <indradg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |indradg@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #353 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Opened umbrella report (bug 14294) for follow-up reports. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=14294 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also|http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=14282 | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |14295 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Fridolin SOMERS <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=13663 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com Severity|enhancement |new feature Summary|Attach a file to a MARC |Attach files to |record (Was: File upload in |bibliographic records |MARC) | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |BLOCKED --- Comment #354 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Coming back here in a minute.. Hold on. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39626|0 |1 is obsolete| | --- Comment #355 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41275 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41275&action=edit Bug 6874: File upload in MARC New cataloging plugin upload.pl and new system preference 'uploadPath'. upload.pl provide a way to upload files on the server and store a link (url) to it in MARC uploadPath is the absolute path on the server where the files will be stored. It's possible to have a hierarchy of directories under this path and the plugin will allow to choose in which directory to store the file. Stored value in MARC subfield looks like this: <OPACBaseURL>/cgi-bin/koha/opac-retrieve-file.pl?id=<SHA-1 of the file> So both 'uploadPath' and 'OPACBaseURL' sysprefs have to be set for this plugin to work correctly Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Slightly amended/simplified the patch during QA: The changes to GetMarcUrls are not really needed, and would have needed some attention. Another link text can be supplied by the plugin too. This also reduces the need for changes in basket.pl, MARCdetail.pl, detail.pl, opac-basket.pl and opac-detail.pl. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39627|0 |1 is obsolete| | --- Comment #356 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41276 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41276&action=edit Bug 6874: QA follow-up Squash of the following commits: return with explicit undef removed Follow-up for PBP fixes follow-up fix POD syntax follow-up jquery has moved Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Amended: removed POD changes in Biblio.pm while rebasing. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39628|0 |1 is obsolete| | --- Comment #357 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41277 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41277&action=edit Bug 6874: Add unit tests for C4::UploadedFiles Add unit tests for C4::UploadedFiles and move a variable declaration at subroutine level instead of file level. Add dependency to Test::CGI::Multipart Still works, and the newly-provided unit tests have good test coverage: C4/UploadedFiles.pm 90.7 65.0 66.7 100.0 100.0 0.2 86.4 Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39629|0 |1 is obsolete| | --- Comment #358 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41278 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41278&action=edit Bug 6874: Move uploadPath syspref to koha-conf.xml Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39630|0 |1 is obsolete| | --- Comment #359 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41279 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41279&action=edit Bug 6874 - File upload in MARC - QA Followup * Renames uploadPath to upload_path to follow the standard naming conventions in koha-conf which use underscores rather than camel case * Remove reference to intranet-tmpl and replace with [% interface %] required to pass qa Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39631|0 |1 is obsolete| | --- Comment #360 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41280 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41280&action=edit Bug 6874: Force user to select a directory This patch adds a javascript and a server-side checks Test plan: 1/ Choose a file, leave the radios not selected and submit 2/ You have a javascript alert which prevents form to be submitted 3/ Disable javascript and repeat step 1 4/ Form is submitted but form is redisplayed with an error message telling you to choose a directory. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39632|0 |1 is obsolete| | --- Comment #361 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41281 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41281&action=edit Bug 6874 - kohastructure.sql, jquery.js, refocus, and more Two problems were discovered while doing a fresh install of Koha. These problems in the kohastructure.sql file are addressed with this patch. Clicking the plug-in icon should cause the popup window to refocus. This adds the refocus code to the upload.pl file. The path to the jquery.js script was wrong in the upload_delete_file.tt file. Changed [% themelang %] to [% interface %]. If a user clones 856$u after uploading a file, deletes the file, and then clicks the plugin icon on the first 856$u, this will go immediately to the upload screen with an informative error message. After some validation was added, it was extended to include other cases. This serves to patch 6874 to a state where sign off should be possible. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39633|0 |1 is obsolete| | --- Comment #362 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41282 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41282&action=edit Bug 6874 - License Text Update This updates the license text for - C4/UploadedFiles.pm - cataloguing/value_builder/upload.pl - opac/opac-retrieve-file.pl to GPL v3 as per the http://wiki.koha-community.org/wiki/Coding_Guidelines#Licence text. TEST PLAN --------- 1) Don't apply this patch as part of 6874. 2) Run the koha qa test tool. -- It will FAIL for those three file. 3) Apply this patch 4) Run the koha qa test tool. -- License problem is corrected, no FAILs. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39634|0 |1 is obsolete| | --- Comment #363 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41283 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41283&action=edit Bug 6874 - Clean up file URL generation This adds a dependency on bug 5010, in that the protocol is assumed in the OpacBaseURL system preference. It also adds improved error handling. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39635|0 |1 is obsolete| | --- Comment #364 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41284 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41284&action=edit Bug 6874 - id based on contents, filename, and directory. This patch corrects the inability to upload the same file to a different directory, or even a renamed file to the same directory. By including the filename and directory as part of the $id SHA generation, only identical files in the same directory with the same file name will generate the same $id. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
From a command line:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39636|0 |1 is obsolete| | --- Comment #365 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41285 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41285&action=edit Bug 6874: Catch warnings for clean tests. I hate noisy tests, so I cleaned them up. MEGA TEST PLAN -------------- git checkout -b bug_6874 origin/master git bz apply 6874 -- yes, it should all apply smoothly. I intentionally restored an old backup from a couple months ago to force the upgrade. staff client: -- upgrade -- login Koha administration MARC Bibliographic framework MARC structure (for BKS) Search for 856 Subfields Edit (for u) Other options Plugin: upload.pl Save changes Search the catalog tab {choose a word, any word. I used fancy, because I knew we had a cookbook} click first link Edit Edit record 8 (that's the tab name) click the name for 856 scroll down to u and click the plugin icon -- Correctly got a configuration error message. At a command prompt: vi ~/koha-dev/etc/koha-conf.xml /enable_plug -- add in: <upload_path>{appropriate path. I used /home/mtompset/uploads}</upload_path> :wq mkdir {appropriate path used} -- I even added some subdirectories sudo chown -R -v www-data.www-data {appropriate path used} Back in staff client: click the plugin icon again -- this time an upload screen pops up click the 'Upload file' button -- message about no file or destination browse for a file, select one click the 'Upload file' button -- message about no destination click the 'Cancel' button click the plugin icon click a destination radio button click the 'Upload file' button -- message about no file browse for a file, select one click the 'Upload file' button -- message about success click the 'close' button. -- the text box has been filled in with a nice URL click the plugin icon click cancel click the plugin icon click delete -- the test box should be blanked, and a success message given click Close -- reupload a file properly click the plugin icon click delete click upload file browse for a file, select a destination, click upload file click close on success message click 'Clone this subfield' click the second plugin icon click delete click close click the first plugin icon -- Nice error message about a URL which points to nothing. click cancel In the second 856$u type in a URL (eg. www.google.com) click the second plugin icon -- this jumps immediately to the upload screen, but does not give an error message, because the URL does not have opac-retrieve-file in it. click save (we need to save the bibliographic record) In OPAC: search for the same word (I used fancy) find the entry you just updated with links click the two links. The dangling entry should give you a 500 error, and the other link should work just fine. get back to the detail page In staff client: edit edit record 8 change the 856$u to a valid file in the first link. save In OPAC: refresh the detail page, and click the first link again this time it should get downloaded nicely. prove -v t/db_dependent/UploadedFiles.t perldoc C4::Biblio perldoc C4::UploadedFiles One more round of tests tomorrow, and this should be ready. :) Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Tested on top of 5010 Followed mostly mega test plan, seems to work :) Can upload, delete, modify, etc Test runs Ok No koha-qa errors I view this as valuable addition, dangling since 2011! As with 5010, I consider this can be pushed (for 3.22) and we can fix anything wrong later. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39637|0 |1 is obsolete| | --- Comment #366 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41286 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41286&action=edit Bug 6874: [QA Follow-up] Adjustments for opac-retrieve Adds httpheaders sub to UploadedFiles; this will be extended on a new report. (Idea is to add configurable headers for file extensions.) Trivial unit test added. Small cosmetic changes to opac-retrieve-file. Test plan: Run test UploadedFiles.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #367 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41287 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41287&action=edit Bug 6874: [QA Follow-up] Last adjustments for future developments This patch does: [1] Some trivial template changes. Modified some comments (POD lines). [2] Converted plugin to new style. [3] Table updates: renames id to hashvalue, adds a autoincrement id, adds filesize, timestamp, owner and category. RM: This db rev is in a separate sql file in atomicupdate. [4] Code references to computed hash renamed to hashvalue instead of id. [5] Removed some code pertaining to exposing upload dir structure. The user now may choose a category; the uploader takes care of storage. The list of upload categories is now taken from authorised values; this might become a separate table in the future. (If there are none, the upload process creates one default fallback.) We can add e.g. permissions later, subdir structure, etc. (So dir will not necessarily be category anymore.) Test plan: [1] Upload new file. Check the record in the table. Delete it again; check. [2] Run t/db../UploadedFiles.t. [3] Run t/db../FrameworkPlugins.t -incl cataloguing/value_builder/upload.pl Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39638|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #41287|0 |1 is obsolete| | --- Comment #368 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 41288 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41288&action=edit Bug 6874: [QA Follow-up] Last adjustments for future developments This patch does: [1] Some trivial template changes. Modified some comments (POD lines). [2] Converted plugin to new style. [3] Table updates: renames id to hashvalue, adds a autoincrement id, adds filesize, timestamp, owner and category. RM: This db rev is in a separate sql file in atomicupdate. [4] Code references to computed hash renamed to hashvalue instead of id. [5] Removed some code pertaining to exposing upload dir structure. The user now may choose a category; the uploader takes care of storage. The list of upload categories is now taken from authorised values; this might become a separate table in the future. (If there are none, the upload process creates one default fallback.) We can add e.g. permissions later, subdir structure, etc. (So dir will not necessarily be category anymore.) Test plan: [1] Run the db revision. [2] Upload new file. Check the record in the table. Delete it again; check. [3] Run t/db../UploadedFiles.t. [4] Run t/db../FrameworkPlugins.t -incl cataloguing/value_builder/upload.pl Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|BLOCKED |Passed QA --- Comment #369 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- To get this moving again, I rebased and made some additional changes with reference to the last QA comment: For point 7 I at last removed the dir structure and provide a category. We can build further improvement on that. See the last commit message. (This QA followup got out of hand :) but I leave that to the RM) I still favor pushing it (with some special consideration..) Note that bugs 14588 and 14589 are slightly related and can follow this one. For point 4 (one candidate blocker), bug 14321 (WIP) will merge the two modules into Koha::Upload. I already have a prototype in test. This will also include stripping the progress from the server side to client side ajax (improved progress bar). This logic can be used in several uploading scripts like this plugin but also stage-marc-import etc. Hope to submit that in one or two weeks. Back to PQA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #370 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 41448 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41448&action=edit Bug 6874: (QA followup) Warnings in about page This patch introduces checks on the about.pl page so the user is warned for a deficient configuration. Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #371 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 41449 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41449&action=edit Bug 6874: (QA followup) upload_path missing in koha-conf.xml.in Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #372 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 41450 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41450&action=edit Bug 6874: (RM followup) DBIx updates Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master --- Comment #373 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Feature pushed to master. Congratulations to everyone involved! Note: this is an early push of a working feature. It needs testing and followup bugs will be filled (at least by me) that will be blockers for the release. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |14674 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14674 [Bug 14674] koha-create should set upload_path in koha-conf.xml -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #374 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Tomás Cohen Arazi from comment #373)
Feature pushed to master.
Congratulations to everyone involved!
Note: this is an early push of a working feature. It needs testing and followup bugs will be filled (at least by me) that will be blockers for the release.
Patches for bug 14321 forthcoming ! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 --- Comment #375 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 41783 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41783&action=edit Bug 6874: (QA followup) fix templates Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |14321 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14321 [Bug 14321] Merge UploadedFile and UploadedFiles into Koha::Upload -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|14295 | Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14295 [Bug 14295] Add creation time, size and owner for uploaded files -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |14944 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14944 [Bug 14944] show error in frameworks/cataloging if upload path not set -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|14674 | Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14674 [Bug 14674] koha-create should set upload_path in koha-conf.xml -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=14674 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org