Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/panic on empty path #1282

Merged
merged 4 commits into from
May 22, 2015
Merged

Conversation

travisperson
Copy link
Member

If no path after /ipfs/ or /ipns/ is given, then the daemon will panic with a slice bounds out of range error. This checks to see if we have anything after ipfs or ipns.

Update the previous invalid path error to match the error returned from SplitAbsPath.

If no path after `/ipfs/` or `/ipns/` is given, then the daemon will
panic with a slice bounds out of range error. This checks to see if we
have anything after `ipfs` or `ipns`.
Added the original logic to check for a invalid path and a simple test.
Cleaned the tests, and actually test for the error.
Update the previous `invalid path` error to match the error returned
from `SplitAbsPath`.
@jbenet jbenet added the backlog label May 22, 2015
@whyrusleeping
Copy link
Member

is that.... all the tests passing?? i dont remember the last time i saw a clean test run

@jbenet
Copy link
Member

jbenet commented May 22, 2015

@travisperson any idea what the problem was? why it failed on nodes?

@jbenet
Copy link
Member

jbenet commented May 22, 2015

LGTM, i'll merge after comment

@whyrusleeping
Copy link
Member

@jbenet it was failing because i broke it. I pushed to fix a resolution bug that inadvertently broke travises test.

jbenet added a commit that referenced this pull request May 22, 2015
@jbenet jbenet merged commit 10c3628 into ipfs:master May 22, 2015
@jbenet jbenet removed the backlog label May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants