[GH-ISSUE #604] Create Storage Pool does not allow permitted characters #458

Open
opened 2026-02-27 16:39:21 +03:00 by kerem · 1 comment
Owner

Originally created by @mjolnirgs on GitHub (Mar 7, 2016).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/604

I am trying to add a local directory as a storage pool that contains a "-" in the path name.

example:

/nfs/dev_vmfs-nfs

This is a valid path and should be allowed by webvirtmgr.

when adding this location, there is an error "The target must not contain any special characters"

Originally created by @mjolnirgs on GitHub (Mar 7, 2016). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/604 I am trying to add a local directory as a storage pool that contains a "-" in the path name. example: /nfs/dev_vmfs-nfs This is a valid path and should be allowed by webvirtmgr. when adding this location, there is an error "The target must not contain any special characters"
Author
Owner

@mjolnirgs commented on GitHub (Mar 7, 2016):

adding the dash to all of the have_symbol = re.match('^[a-zA-Z0-9/_-]+$' lines after the underscore in storages/forms.py fixes the problem.

<!-- gh-comment-id:193419155 --> @mjolnirgs commented on GitHub (Mar 7, 2016): adding the dash to all of the have_symbol = re.match('^[a-zA-Z0-9/_-]+$' lines after the underscore in storages/forms.py fixes the problem.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#458
No description provided.