Can't browse through albums which name begins and ends by a " in the collection sidebar

Bug #395910 reported by Steve Dodier-Lazaro
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Critical
reacocard
Nominated for 0.3.x by Steve Dodier-Lazaro

Bug Description

If the title of an album (probably happens with artists too) is for instance "Foo" instead of just Foo, then clicking on it won't expand it to show the current tracks, the arrow will disappear and the user won't be able to see the songs in the album.

In the attached screenshot, you can see on the top left that the albums with an " in the beginning of their names have lost their arrow after I've clicked on it.

Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :
reacocard (reacocard)
Changed in exaile:
importance: Undecided → High
milestone: none → 0.3.0
status: New → Confirmed
Revision history for this message
reacocard (reacocard) wrote :

should be fixed now.

Changed in exaile:
status: Confirmed → Fix Committed
assignee: nobody → Aren Olson (reacocard)
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :

I didn't notice any improvement. There is no debug output at all, even with --debug, but I still cant browse through albums beginning with " in the collection panel.

Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :
Changed in exaile:
status: Fix Committed → Confirmed
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :

I actually noticed that it happens only if the name begins but also ends with ". If it only begins with " it seems to work normally.

summary: - Can't browse through albums which name begins by a " in the collection
- sidebar
+ Can't browse through albums which name begins and ends by a " in the
+ collection sidebar
Revision history for this message
reacocard (reacocard) wrote :

fixed in r2353

Changed in exaile:
status: Confirmed → Fix Committed
reacocard (reacocard)
Changed in exaile:
status: Fix Committed → Fix Released
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :

Broken again. And funnily, the fix is still in place. Was a similar issue introduced in another code path ?

Changed in exaile:
status: Fix Released → New
reacocard (reacocard)
Changed in exaile:
milestone: 0.3.0 → 0.3.0.1
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :

The bug also occurs with albums containing '\'.

Revision history for this message
reacocard (reacocard) wrote :

retargeting to 0.3.0.2

Changed in exaile:
milestone: 0.3.0.1 → 0.3.0.2
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :

Tracks containing two " in their name also can't be added into libraries. I'm feeling about putting this bug critical :]

Revision history for this message
Gabriel Speckhahn (gabspeck) wrote :

In fact, songs with quotes covering part of their title cannot be added to playlists.

Examples:

The Jam - "A" Bomb in Wardour Street - BAD
Sly & The Family Stone - Africa Talks to You "The Asphalt Jungle" - BAD
David Bowie - "Heroes" - GOOD
Blondie - One Way or Another - GOOD

Changed in exaile:
importance: High → Critical
Revision history for this message
Bburst (bbaiyfb) wrote :

What seems to make exaile bug is the combination of quotes and spaces.
For instance, <<Belleville>>, <<Belle ville>> and <<"Belleville">> work but <<"Belle ville">> fails.

I *think* the problem lies in xl/trackdb.py, in TrackSearch.tokenize_query.
At some point, it does <<tokens = search.split(" ")>>. But if the space appears inside the quotes, it should not split.

I provide a patch but I'm quite unsure that it is correct. However, it does solve my <<"Belle ville">> problem.

Changed in exaile:
status: New → Confirmed
Revision history for this message
reacocard (reacocard) wrote :

Attached is a patch that I hope will resolve these issues. It also makes the search code a lot shorter, and hopefully easier to understand. Please test and report results.

Revision history for this message
Steve Dodier-Lazaro (sidi) wrote : Re: [Bug 395910] Re: Can't browse through albums which name begins and ends by a " in the collection sidebar

The patch doesn't apply in the 0.3.0.x branch.

Revision history for this message
reacocard (reacocard) wrote :

Sorry, should have mentioned the patch is for trunk only. The same logic placed into 0.3.0.x doesn't quite work, probably due to some sort of subtle difference in the search system.

Revision history for this message
reacocard (reacocard) wrote :

Figured it out, here's one for 0.3.0.x.

Revision history for this message
reacocard (reacocard) wrote :

got confirmation from Steve that the patch works, committed 0.3.0.x/2449, trunk/2572.

Changed in exaile:
status: Confirmed → Fix Committed
reacocard (reacocard)
Changed in exaile:
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.