Creating file/attachment stores full path in __name__

Bug #341127 reported by Paul Everitt
2
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
High
Balazs Ree

Bug Description

Files and attachments have a special rule that their "id" (__name__, the thing that showes up in the the URL) comes from the filename of the uploaded file.

However, at least on Windows under IE, this is resulting in the full path, e.g.:

  /communities/test1/files/c:\Documents and Settings\admin\Desktop\somefile.doc

We need to use Python path splitting to just get the last part. This also applies to attachments.

Changed in karl3:
assignee: nobody → ree
importance: Undecided → Medium
milestone: none → m5
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Let's make this the High priority. It's breaking some of the browsing and downloading.

Changed in karl3:
importance: Medium → High
Balazs Ree (ree)
Changed in karl3:
status: New → Fix Committed
Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.