cannot use relative paths or ~-expansion when specifying tarball path

Bug #546184 reported by ntucker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Sandbox
Incomplete
Low
Giuseppe Maxia

Bug Description

this is a minor one but it's pretty annoying: you can't specify a relative path to the tarball when making a sandbox, and you also can't use shell expansions like '~' for specifying the path.

This is more annoying than it otherwise would be because when the creation fails, the reason given is not anything clear like "Can't find that tarball", so you do not realize that the way you specified the path isn't working.

Revision history for this message
Giuseppe Maxia (giuseppe-maxia) wrote :

The unavailability of relative path is by design. There are too many issues if I allow relative paths.
However, the "~" sign is recognized and expanded into $HOME. Which command were you using?

Changed in mysql-sandbox:
assignee: nobody → Giuseppe Maxia (giuseppe-maxia)
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
ntucker (ntucker-launchpad) wrote :

Sorry, I just re-tested the '~' expansion and it worked, so perhaps I went crazy for a minute.

With regard to the relative paths, please reconsider or at least please consider improving the error message. It's highly unusual for a unix program to not accept relative paths, and combining this with an unhelpful error message means that on several occasions, I've spent a decent amount of time trying to figure out why it wasn't working when the problem was simply that I had forgotten about this strange quirk in the file handling.

By the way, I suspect that one reason the path handling is complicated is that you're overloading the meaning of the argument and using the leading '/' to indicate that it's a path. My suggestion for this is to simply break this functionality out into two or three seperate arguments (e.g. --from-tarball <x> | --from-installed <dir> etc). The overloaded parameter is kind of confusing and not very well explained in the documentation anyway, in my opinion.

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.