API directory listing should filter out files with size=None (MakeFile but no Upload)

Bug #989506 reported by Roman Yepishev
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Servers
Triaged
High
Unassigned

Bug Description

At the moment when a PUT is issued to create a file, a temporary node is returned with content_path for uploading the file.

The problem is these temporary nodes are also returned when doing a query on a directory with include_children=true.
These files have size: None and in case the implementation does not know about this quirk, that can cause the code to fail on an invalid size value. Moreover directly querying the temporary node results in 404 response.

These temporary files should not be listed when querying for the directory listing.

Tags: ops+
Roman Yepishev (rye)
visibility: private → public
Changed in ubuntuone-servers:
assignee: nobody → Ubuntu One Ops+ team (ubuntuone-ops+)
status: New → Confirmed
importance: Undecided → High
Leo Arias (elopio)
tags: added: ops+
Changed in ubuntuone-servers:
status: Confirmed → Triaged
Revision history for this message
Roman Yepishev (rye) wrote :

Alternatively we might want to specify this case in the docs since I see that we are using make_file() only during the tests and rely on current implementation.

Curtis Hovey (sinzui)
Changed in ubuntuone-servers:
assignee: Registry Administrators (registry) → nobody
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.