No way to identify a contract reliably

Bug #1054912 reported by Sergey "Shnatsel" Davidoff
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Contractor
Fix Released
Medium
Unassigned
0.2
Triaged
Undecided
Unassigned
0.3
Fix Released
Medium
Unassigned

Bug Description

There's no way to reliably identify a contract. Current contract matching depends on contract's display name, which may be the same for several contracts and can be localized.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: contractor 0.2-0~r26+pkg4~precise1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
Uname: Linux 3.2.0-30-generic x86_64
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
CrashDB: contractor
Date: Sun Sep 23 13:38:08 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120303)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
 SHELL=/usr/bin/fish
SourcePackage: contractor
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

We can either use file name for identifying the contracts (without the .contract), or add a separate identifier field. Using file name is preferred because the latter still allows collisions and makes honoring $XDG_USER_DIRS really complicated.

Changed in contractor:
status: New → Confirmed
importance: Undecided → Medium
Changed in contractor:
status: Confirmed → Triaged
Revision history for this message
Cassidy James Blaede (cassidyjames) wrote :

Discussion from the Google Doc (http://goo.gl/A2lHJ):

Сергей Давыдов
11:49 AM Sep 4
I'd use file name as identifier - otherwise honoring $XDG_USER_DIRS and user-specific contracts in $HOME gets really complicated.

Fabian Thoma
4:35 PM Oct 26
Jup, this is the easiest way to go here, and makes the most sense as well

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Targeting to luna-beta2 because this blocks honoring $XDG_DATA_DIRS which is pretty much essential.

Changed in contractor:
milestone: none → luna-beta2
Changed in contractor:
milestone: luna-beta2 → luna-beta3
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

This is fixed in 0.3, I've personally made sure of that.

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.