empty strings as option values are badly quoted

Bug #906897 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Vincent Ladeuil

Bug Description

While migrating the branch location options I came across a weird edge case where an empty value is seen as '""' instead of ''.

The root cause is rather involved (related to configobj making quoting depends on automagic list values *and* option expansion).

Tags: config

Related branches

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
tags: added: config
Revision history for this message
Vincent Ladeuil (vila) wrote :

Some tests in blackbox/test_config.py also mention that list options are not correctly quoted if not explicitly registered which is another aspect of the same issue.

Namely: configobj provides a list_values option at build time that is used to decide whether or not :
- values are quoted
- values are transformed into list values if they contain a coma (handwave)

Vincent Ladeuil (vila)
Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
status: Confirmed → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.5b5
status: In Progress → 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.