EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09652
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
RE: [EP-tech] 0 byte file uploads
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: RE: [EP-tech] 0 byte file uploads
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Fri, 1 Mar 2024 11:00:38 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Hi, My check (in document_validate.pl) looks at the filesize stored in the DB, which from my experience has been accurate: foreach my $file (@{($document->get_value( "files" ))}) { if( $file->get_value( 'filesize' ) == 0 ){ push @problems, $repository->html_phrase( "validate:document:zero_length_file", filename=> $file->render_value( "filename" ), fieldname => $xml->create_element( "span", class=>"ep_problem_field:documents" ), ); } } Cheers, John From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk>
On Behalf Of Liam Green-Hughes
CAUTION: This e-mail originated outside the
University of Southampton. CAUTION: This e-mail originated outside the
University of Southampton. Hi everyone, Currently we have this check in document_validate.pl: my %files = $document->files; foreach my $file (keys %files) { my $source = $document->local_path."/".$file; # If file is not on the filesystem it could be a potential zero length file if ( ! -e $source ) { push @problems, $session->html_phrase("validate:possible_zero_length_file", filename=>$session->make_text($file)); next; } } .. and this is the phrase: <epp:phrase id="validate:possible_zero_length_file">Please check the file: <epc:pin name="filename"/>. Files that have a size of zero cannot be uploaded to KAR.</epp:phrase> Not perfect but catches zero length uploads at least. Thanks Liam From:
eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk>
on behalf of Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
CAUTION: This email originated from outside of the organisation. Do not click links or open attachments
unless you recognise the sender and know the content is safe. CAUTION: This e-mail originated outside the
University of Southampton. CAUTION: This e-mail originated outside the
University of Southampton. Hi everyone, We discovered a few of these as well when we were processing everything we had for digital preservation with Archivematica. On my to-do list for the Archivematica
plugin is to add an error about this, on export, because Archivematica isn't necessarily dealing well with these 0 size files either. Ideally, though, the error would be flagged immediately to the uploader/depositor. In summary, I am following this thread
with much interest. Tomasz From:
eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk>
on behalf of Martin Brändle <martin.braendle@uzh.ch> Attention This email originates from outside the concordia.ca domain. // Ce courriel provient de l'extérieur du domaine de concordia.ca CAUTION: This e-mail originated outside the
University of Southampton. CAUTION: This e-mail originated outside the
University of Southampton. Dear all, thanks for your pointers (the hypothesis by John on cloud storage being interesting) . I’ll follow them up and implement those. Another hypothesis that came up during our Scrum meeting was that the upload problems occur more frequently since our university switched to another VPN software.
We have EPrints 3.3.16 . We had disabled upload by URL years ago because of known problems. Kind regards, Martin -- Dr. Martin Brändle |
- Follow-Ups:
- Re: [EP-tech] 0 byte file uploads
- From: Martin Brändle <martin.braendle@uzh.ch>
- Re: [EP-tech] 0 byte file uploads
- References:
- [EP-tech] 0 byte file uploads
- From: Martin Brändle <martin.braendle@uzh.ch>
- Re: [EP-tech] 0 byte file uploads
- From: David R Newman <drn@ecs.soton.ac.uk>
- RE: [EP-tech] 0 byte file uploads
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] 0 byte file uploads
- From: Liam Green-Hughes <L.E.Green-Hughes@kent.ac.uk>
- Re: [EP-tech] 0 byte file uploads
- From: Martin Brändle <martin.braendle@uzh.ch>
- Re: [EP-tech] 0 byte file uploads
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Re: [EP-tech] 0 byte file uploads
- From: Liam Green-Hughes <L.E.Green-Hughes@kent.ac.uk>
- [EP-tech] 0 byte file uploads
- Prev by Date: Re: [EP-tech] 0 byte file uploads
- Next by Date: Re: [EP-tech] 0 byte file uploads
- Previous by thread: Re: [EP-tech] 0 byte file uploads
- Next by thread: Re: [EP-tech] 0 byte file uploads
- Index(es):