EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09651
< 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: Liam Green-Hughes <L.E.Green-Hughes@kent.ac.uk>
- Date: Fri, 1 Mar 2024 09:41:16 +0000
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>
Sent: 01 March 2024 01:32 To: Liam Green-Hughes <L.E.Green-Hughes@kent.ac.uk>; eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk> Subject: Re: [EP-tech] 0 byte file uploads
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>
Sent: Wednesday, February 28, 2024 6:54 AM To: Liam Green-Hughes <L.E.Green-Hughes@kent.ac.uk>; eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk> Subject: Re: [EP-tech] 0 byte file uploads 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: John Salter <J.Salter@leeds.ac.uk>
- 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>
- [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):