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

ls command has changed behaviour on trailing slashes #1446

Closed
zignig opened this issue Jul 5, 2015 · 2 comments
Closed

ls command has changed behaviour on trailing slashes #1446

zignig opened this issue Jul 5, 2015 · 2 comments
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@zignig
Copy link

zignig commented Jul 5, 2015

used to work

 ipfs ls Qmdj5VVRUvhenQLYh4gDFSm5GYK88D6vJxhEUZNM8ehLwb/boot
Error: invalid ipfs ref path

however it works with the /ipfs/ at the front..

ipfs ls /ipfs/Qmdj5VVRUvhenQLYh4gDFSm5GYK88D6vJxhEUZNM8ehLwb/boot
QmU5NG6Dnxkk6TwraH7VwVvzwjGWXsoTMvLjUsrsLk8zkL 175356987 coreos/
QmYvY2sg4SCSLKC3fc9Q2vN4cUEB4LzBux5eHfRYvk4KPx 906       debian/

if you add another level it does work...

ipfs ls Qmdj5VVRUvhenQLYh4gDFSm5GYK88D6vJxhEUZNM8ehLwb/boot/coreos
QmbET1h7y5TknExQ7wmkwbuhizfhT4ke84jHNoHPJN8dib 27        README.md
QmPStJFoDFTgHaH5qKTMWeEotwLQ8WvFUfMVS7GkKgFzFG 36        classes.toml
QmfT2vEjiG6PGhdNV5TMxUB9zBCAmQWysE3L41BL11tY8r 175353480 images/
QmeVZB6crEHKTgYd5VpTpnikrrJfvdmo5mHhRqdpqjqvk5 3233      template/

There seems to be a change in counting the slashes in a ipfs path.

@jbenet
Copy link
Member

jbenet commented Jul 5, 2015

@zignig that's definitely a bug. thanks for filing.

cc @wking as he touched resolve last.

@whyrusleeping
Copy link
Member

should be addressed by #1475

@em-ly em-ly added the kind/bug A bug in existing code (including security flaws) label Aug 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

4 participants