Search for snapshots / filter not working

Bug #156856 reported by appaquet
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TimeVault
Fix Committed
High
Unassigned

Bug Description

It looks like there is no way to search for snapshots except if you specify the root of the file system (/) or you specify the exact path of a file.

Ex: If you are backing up file in your "/etc/", it's impossible to search for these files unless if you specify "/" in the snapshot filter.

I had a look at the code and it looks for exact path when the path is valid and not equal to "/" (server.py, GenerateStats method). So there is no way to search for a "prefix" in snapshots. To fix it, I've changed "path=?" to "path LIKE ?" and concatenated % to the end of the path and it works now.

Revision history for this message
SourceContact (sourcecontact) wrote :

Very informative bug report - thanks.

Changed in timevault:
importance: Undecided → High
status: New → Fix Committed
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.