Skip to content

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

@MFWT

Description

@MFWT

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions