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] volume name should be validated before Create #2416

Closed
mathspanda opened this issue Nov 2, 2018 · 3 comments
Closed

[bug] volume name should be validated before Create #2416

mathspanda opened this issue Nov 2, 2018 · 3 comments
Labels
areas/storage kind/bug This is bug report for project

Comments

@mathspanda
Copy link
Contributor

Ⅰ. Issue Description

As the title desc, volume name should be validated before Create.

Ⅱ. Describe what happened

root@lin-vm1:~# pouch volume create --name "abc def"
Name:         abc def
Scope:
Status:       map[size:]
CreatedAt:    2018-11-2 17:54:38
Driver:       local
Labels:       map[]
Mountpoint:   /var/lib/pouch/volume/abc def

Ⅲ. Describe what you expected to happen

The volume name should be "^[a-zA-Z0-9][a-zA-Z0-9_.-]$".

IⅤ. Anything else we need to know?

None

V. Environment:

  • pouch version (use pouch version):
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@pouchrobot pouchrobot added areas/storage kind/bug This is bug report for project labels Nov 2, 2018
@mathspanda
Copy link
Contributor Author

If need, i will fix it.

@zhuangqh
Copy link
Contributor

zhuangqh commented Nov 2, 2018

If need, i will fix it.

already fix in #2394

@mathspanda
Copy link
Contributor Author

OK, got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/storage kind/bug This is bug report for project
Projects
None yet
Development

No branches or pull requests

3 participants