Share Offer names in Web UI for UDFs contain full path by default, causing InvalidFilename exception.

Bug #663732 reported by Roman Yepishev
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Servers
Fix Released
High
Zachery Bir

Bug Description

STR:

1. Create a folder locally - "~/folder/subfolder"
2. Go to folder, enable "subfolder" for Ubuntu One sync.
3. Go to https://one.ubuntu.com/files/ and see that a new UDF is created
4. Click on "~/folder/subfolder" UDF "More" link and select "Share folder"
5. The window appears with "Share name: ~/folder/subfolder"

Expected results:
Share name is "subfolder"

Actual results:
Share name is a full path to UDF. In case user confirms this default, the server will silently reject the share (causing OOPS like OOPS-1754appserverZcecaFIaFDAFBEceCaabdAGfCAdAcGcJI13562) and the user will not be able to find the reason of this failure.

Tags: webui
Roman Yepishev (rye)
visibility: private → public
Martin Albisetti (beuno)
Changed in ubuntuone-servers:
assignee: Ubuntu One web team (ubuntuone-web) → Martin Albisetti (beuno)
Martin Albisetti (beuno)
Changed in ubuntuone-servers:
milestone: none → post-m-cleanup
Revision history for this message
jpfle (jpfle) wrote :

Is the report https://bugs.launchpad.net/ubuntuone-client/+bug/533030 a duplicate of the current report?

Revision history for this message
Zachery Bir (urbanape) wrote :

".", "..", "\0" (as in null byte) and "/" are the restricted characters (via rye)

Revision history for this message
Lucio Torre (lucio.torre) wrote :

ubuntuone.storageprotocol.dircontent.validate_filename defines what is a valid (file)name.

Roman Yepishev (rye)
Changed in ubuntuone-servers:
assignee: Martin Albisetti (beuno) → Zachery Bir (urbanape)
status: Triaged → Fix Committed
Revision history for this message
Roman Yepishev (rye) wrote :

https://one.ubuntu.com/ is running r3608 and this was fixed in r3586. Horaaay! No more InvalidFilename oopses while attempting to share things!

Changed in ubuntuone-servers:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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