webvirtcloud icon indicating copy to clipboard operation
webvirtcloud copied to clipboard

[Bug and fix] can't add dir that contain "."

Open MFWT opened this issue 1 year ago • 0 comments

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:

[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.

MFWT avatar Aug 17 '24 15:08 MFWT