[GH-ISSUE #655] [Bug and fix] can't add dir that contain "." #378

Closed
opened 2026-02-27 15:58:26 +03:00 by kerem · 0 comments
Owner

Originally created by @MFWT on GitHub (Aug 17, 2024).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/655

what I met

In "computes - - storage", I tried to add a dir called /mnt/HDD.ori/KVM but it failed

what I did to fix that

open /srv/webvirtcloud/storages/templates/create_stg_block.html
modity the regex of the input box (near Line 66)
from:

[a-zA-Z0-9\/\-_]+

to:

[a-zA-Z0-9\/\-_\.]+
# -------------↑ Add a dot here

and it works, I could use it normally.

Hope it may help someone else.

Originally created by @MFWT on GitHub (Aug 17, 2024). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/655 ## what I met In "computes - <ID> - storage", I tried to add a dir called `/mnt/HDD.ori/KVM` but it failed ## what I did to fix that open `/srv/webvirtcloud/storages/templates/create_stg_block.html` modity the regex of the input box (near Line 66) from: ```regex [a-zA-Z0-9\/\-_]+ ``` to: ```regex [a-zA-Z0-9\/\-_\.]+ # -------------↑ Add a dot here ``` and it works, I could use it normally. Hope it may help someone else.
kerem closed this issue 2026-02-27 15:58:27 +03:00
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/webvirtcloud#378
No description provided.