You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a BUG REPORT or FEATURE REQUEST?:
Special characters in file share name is not supported in backend but db entry is creating and getting 202 for creating request
Uncomment only one, leave it on its own line:
/kind bug
/kind feature
What happened:
Integration test case ran
It("TC_FS_IT_04: Create file share name having special characters ", func() {
var jsonStr2 = map[string]interface{}{"name": "#FileShare Code!$!test", "description": "This is just for testxxx", "size": 2, "profileId": "df40af1a-17b5-48e5-899f-fa098b0bd5da"}
url := "http://127.0.0.1:50040/v1beta/e93b4c0934da416eb9c8d120c5d04d96/file/shares"
methodName := "POST"
resp, _ := utils.ConnectToHTTP(methodName, url, jsonStr2)
Expect(resp.StatusCode).Should(Equal(202))
})
output is creating db entry
{"id":"d0623fea-c365-4156-a680-696ce8eae262","createdAt":"2019-09-04T11:44:02","updatedAt":"2019-09-04T11:44:02","tenantId":"e93b4c0934da416eb9c8d120c5d04d96","name":"#FileShare Code!$!test","description":"This is just for testxxx","size":2,"availabilityZone":"default","status":"creating","profileId":"df40af1a-17b5-48e5-899f-fa098b0bd5da"}•Resp is ... :&{202 Accepted 202 HTTP/1.1 1 1 map[Content-Length:[326] Content-Type:[application/json; charset=utf-8] Date:[Wed, 04 Sep 2019 06:14:02 GMT]] 0xc0002141c0 326 [] false false map[] 0xc0001c6f00 <nil>}response Status: 202 Accepted
But backend is not supporting - osdsdock.log
E0904 10:41:19.754496 26001 dock.go:537] when create file share in dock module:exit status 1
E0904 10:41:19.777910 26001 exec.go:41] Execute command failed
info:
Logical volume name "#FileShare Code!$! test" is invalid.
Run `lvcreate --help' for more information.
error: exit status 3
What you expected to happen:
It is should throw error as special characters file share name is not allowed
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
Hotpot(release/branch) version:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:
The text was updated successfully, but these errors were encountered:
Is this a BUG REPORT or FEATURE REQUEST?:
Special characters in file share name is not supported in backend but db entry is creating and getting 202 for creating request
What happened:
Integration test case ran
output is creating db entry
But backend is not supporting - osdsdock.log
What you expected to happen:
It is should throw error as special characters file share name is not allowed
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
uname -a
):The text was updated successfully, but these errors were encountered: