--publish-file doesn't end correctly for non-ascii paths

Bug #998079 reported by Facundo Batista
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
High
Diego Sarmentero

Bug Description

facundo@blackfx:~/Ubuntu One/temp$ u1sdtool --publish-file=moño
/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/platform/tools/__init__.py:489: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  return info['path'] == path

And it just hangs there.

For the record, it's trying to compare the orginal path (bytes, '/home/facundo/Ubuntu One/temp/mo\xc3\xb1o') to the path received by dbus (unicode, u'/home/facundo/Ubuntu One/temp/mo\xf1o').

Setting to high because as it doesn't finish, it doesn't give you the published url, and there's no other easy way to get it.

Related branches

Changed in ubuntuone-client:
assignee: nobody → Diego Sarmentero (diegosarmentero)
Changed in ubuntuone-client:
status: Confirmed → Fix Committed
dobey (dobey)
Changed in ubuntuone-client:
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.