[Bug 20208] New: Development - Peddie School - Custom file upload paths
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Bug ID: 20208 Summary: Development - Peddie School - Custom file upload paths Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: jesse@bywatersolutions.com Reporter: kyle@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org Work to be done: 1) Add option on file upload page to not add file checksum to the uploaded filename, modify Koha::Upload 2) Modify Koha::Upload to support this option 3) Create new Authorised Value UPLOAD_PATH to define a set of upload paths 4) Add new 'upload path' option to file upload form as a pulldown of defined upload paths 5) Add new column 'file_path' to uploaded_files table 6) Modify Koha::Upload to support the automatic creation and use of custom file upload paths 7) Write unit tests for new functionality -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Kyle, can you explain a bit about the use case? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Devinim <kohadevinim@devinim.com.tr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kohadevinim@devinim.com.tr -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Change sponsored?|--- |Sponsored --- Comment #2 from Kyle M Hall <kyle@bywatersolutions.com> --- This is a quote directly from the sponsor (Peddie School): The goal of this development would be to create a file folder structure that could be uploaded to from Tools>Upload and then have a way to easily view the folder structure so that you can see what files have been uploaded and which folder they belong to. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 --- Comment #3 from Devinim <kohadevinim@devinim.com.tr> --- Created attachment 84524 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=84524&action=edit Bug 20208: Unit tests for checksum and dir Test plan: kshell prove t/db_dependent/Upload.t must return green -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Devinim <kohadevinim@devinim.com.tr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 --- Comment #4 from Devinim <kohadevinim@devinim.com.tr> --- Created attachment 84525 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=84525&action=edit Bug 20208: Development - Peddie School - Custom file upload paths Test plan: 1) Upload two files with and without checksum 2) UPLOAD add new options to authorized values 3) Upload two files with and without checksum by selecting from the pulldown category options 4) UPLOAD_PATH add new options to authorized values 5) Try uploads by selecting from the pulldown upload path options and other options 6) Check the files in the /var/lib/koha/kohadev/uploads -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Devinim <kohadevinim@devinim.com.tr> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|jesse@bywatersolutions.com |kohadevinim@devinim.com.tr -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 --- Comment #5 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Kyle/Devinim, can you please make the bug title more general? (Think release notes :) ) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 --- Comment #6 from Kyle M Hall <kyle@bywatersolutions.com> --- *** Bug 19318 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wizzyrea@gmail.com Summary|Development - Peddie School |Custom file upload paths |- Custom file upload paths | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion --- Comment #7 from Liz Rea <wizzyrea@gmail.com> --- I was unable to get this to work, I think I need some additional information regarding setup parameters. Namely: Where do the paths to be input into the authorised velue start from, / or /var/lib/koha/<instance>/uploads or somewhere else? This needs documentation at least. I was expecting to be able to get to the hashless files by going to them at http://host/uploads/custom/path/file.jpg type of URL, but this didn't work that I could see. It could be related to the above question. The files did seem to get uploaded to the directory, but I was unable to retrieve them with a reasonable URL. I believe that's what the requester is probably looking for. The interface for finding uploaded files needs a LOT of work, though technically that is independent of this development (but actually, it's kinda not!). Users will have to be very disciplined with file names and potentially have external documentation to have a hope of finding files using a search only. I think this interface needs rework urgently to have either a gallery style or directory hierarchy style display. Even a link to "list all files" with their web URL and/or file system path (as security allows) would be a huge improvement. Cheers, Liz -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=19318 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Devinim <kohadevinim@devinim.com.tr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Devinim <kohadevinim@devinim.com.tr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #84524|0 |1 is obsolete| | Attachment #84525|0 |1 is obsolete| | --- Comment #8 from Devinim <kohadevinim@devinim.com.tr> --- Created attachment 89954 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89954&action=edit Bug 20208: Custom file upload paths Test plan: 1) Apply the patch, run updatedatabase and update_dbix_class_files 2) Run prove t/db_dependent/Upload.t 3) Go to tools/update any file menu. 4) Upload two files with and without checksum using tools/upload 5) Add a new option to UPLOAD authorized value area. 6) Upload two files with and without checksum by selecting the option you created in step 5. 7) Add a new option to UPLOAD_PATH authorized value area. 8) Try to upload new files by selecting pulldown menus or other options in the upload page. 9) Test new feature nameley file tree whether files were uploaded. 10) Check the files in the /var/lib/koha/kohadev/uploads 11) By adding or changing a biblio, use 856u field and test also selecting file from new file tree option. (upload should be choosen for 856u field. ) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org, | |m.de.rooy@rijksmuseum.nl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #9 from Liz Rea <wizzyrea@gmail.com> --- Failed QA for now, as some discussion of the spec needs to take place. The problem we are trying to solve for the librarians here is the one of having a user moderated web space that is manageable from within Koha, with friendly URL's such as http://model.akohasite.org/uploads/a/b/c/file.pdf. This dev gets about halfway to this goal, as it includes a nice interface for the staff client and staff can upload files into a specific upload path. The problem comes when we go to try and access those files from the OPAC - it can't currently be done, and even if it worked we still don't display the URL the library would use to access the file anywhere. These features are a core part of this development. There are a few ways we might go about getting this to work, happy to chat about those at anytime (Tomas and Kyle both have ideas about how this could go - please feel free to ask them). Please do ask if you have any questions at all. Cheers, Liz -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=22508 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Matthew Shellenbarger <mshellenbarger@mercyhurst.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mshellenbarger@mercyhurst.e | |du -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20208 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|Failed QA |RESOLVED CC| |nick@bywatersolutions.com --- Comment #10 from Nick Clemens <nick@bywatersolutions.com> --- *** This bug has been marked as a duplicate of bug 19318 *** -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org