[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Bug when uploading files

Hi there,


I remember getting frustrated at this once, so I hacked perl_lib/EPrints/System.pm in sub sanitise:


$filepath =~ s!.*/(?=.)!!;


It?s running in production, but I?ve never looked into it since doing that half a year ago.  It was a bit radical.




 <http://staff.qut.edu.au/details?id=kerwinm> Matthew Kerwin | Team Leader | ITS-EIS |  <https://map.what3words.com/cards.reader.steer> KG-SYN-2.32 | QUT


? Please consider the Moyai before deleting this email.


From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Robin Sylvestre
Sent: Friday, 12 January 2018 06:41
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Bug when uploading files


Hello !


We have found a bug in Eprints 3.3.13 when uploading files from Internet Explorer.


IE has an option that allows the full path of files to be sent along the filename when uploading files. With this option enabled, and when uploading files from a network share (i.e. \\server\share\file.ext <file://server/share/file.ext> ) the full path of the file is appended to the filename, with underscores replacing backslashes (i.e. __server_share_file.ext). When uploading from a local drive, everything works fine. This is set in custom security settings. Maybe other browsers have this option too ?


I tried to find where the filename gets set when uploading the file, but I only managed to hide the path from the upload progress bar (in 88_uploadmethod_file.js). I figure the filename must be set by a server script. Maybe in perl_lib/EPrints/DataObj/File.pm ? 


Can someone help us correct this bug ?


Thanks !!




Robin Sylvestre

Services techniques et syst?mes informatis?s

Biblioth?que de l??cole Polytechnique de Montr?al

514-340-4711 poste 3743


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20180112/2ad36352/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5526 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20180112/2ad36352/attachment-0001.bin