Ticket #1114 (closed defect: fixed)

Opened 10 years ago

Last modified 7 years ago

Incorrect use of full filename in ZIP upload.

Reported by: cjg@… Owned by: cjg
Priority: Would be nice Milestone: EPrints 3.1.0
Component: Submission Version: 2.3.12
Severity: normal Keywords:

Description (last modified by cjg) (diff)

Subject: [EP-tech] upload of a zip file From: Zeno Tajoli

In the error_log of apache I read: Executing command: /usr/bin/unzip 1>/dev/null 2>&1 -qq -o -d /<my path>/disk0/00/00/00/27/01 /<my path>/disk0/00/00/00/27/01/C:\Documents and Settings\Vlentina\Desktop\E-ms\Lacomunicazione\Lacomunicazione.zip

The file Lacomunicazione.zip IS PRESENT in the dir /<my path>/disk0/00/00/00/27/01/

What do you know of this bug ?

Change History

Changed 10 years ago by cjg@…

An easy solution might be to edit Document.pm sub upload_archive

just before:

my $file = $self->local_path.'/'.$filename;

add $filename=~m#([/\\]+)$#; $filename = $1;

Changed 10 years ago by cjg@…

  • blocked set to 1092

Changed 10 years ago by cjg@…

  • blocked changed from 1092 to 1368

Changed 10 years ago by cjg

  • owner changed from cjg@… to cjg
  • priority changed from high to low
  • description modified (diff)

Changed 8 years ago by cjg

  • milestone changed from EPrints 3.x (new features go here) to EPrints 3.1

Does this apply to the code in 3.1?

Changed 7 years ago by tdb01r

  • status changed from new to closed
  • resolution set to fixed

Fixed by r3760 (uses anonymous temp file instead of uploaded filename).

Note: See TracTickets for help on using tickets.