lp:~cmiller/ubuntuone-android-music/null-parent-directory
- Get this branch:
- bzr branch lp:~cmiller/ubuntuone-android-music/null-parent-directory
Branch merges
- Martin Albisetti (community): Approve
-
Diff: 25 lines (+8/-5)1 file modifiedsrc/net/sourceforge/subsonic/androidapp/util/FileUtil.java (+8/-5)
Related bugs
Related blueprints
Branch information
Recent revisions
- 458. By Chad Miller
-
The String.lastIndexOf sep was too clever and too dumb. "//foo" would fail.
Instead, push the decision about whether there's a parent directory into the File class, and don't poorly LBYL.
- 457. By Chad Miller
-
Avoid unsafe object addition to make Strings. (LP: 652542)
Ubuntu One servers gave out bad "path" attributes on directory+child XML
documents, so it exposed a bug where the MusicDirectory.Entry path could
have no slashes and cause the parent directory of all stored files to be the
word "null".Now, Test if any non-first character of the song path is the directory
separator, and only if it is, then trust that path to be splitable into some
filename and a parent path. Else, constuct the path as if the song path is
null. - 455. By Chad Miller
-
Never try to parse a document for which we didn't get an affirmative HTTP response code.
- 454. By Chad Miller
-
Merge several miscellaneous fixes:
Do not poll a server while there are no credentials to send in the URL.
Turn on all lint warnings.
Remove bad=old dumps of serialized data. No need to try parsing them again.
Exponential backoff of REST API attempts.
Remove duplicate artist parsing. - 451. By Chad Miller
-
Comparators require an int to be returned, but we're subtracting longs, and the result of subtraction may not fit in an int, and then the sky falls down. Reverting my dumb idea for saving function calls and comparisons of relatively small lists.
- 450. By Chad Miller
-
Try to handle undefined value better. Since we now care whether a defined cache-size can fit on disk, we also now care whether the cache size is defined.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:ubuntuone-android-music