Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST /api/v2/nodes/{node}/clone?conflict=1 ends with error 500 if node name has no dot #433

Closed
raffis opened this issue Jan 7, 2020 · 0 comments

Comments

@raffis
Copy link
Contributor

raffis commented Jan 7, 2020

Describe the bug

method: POST
uri: /api/v2/nodes/5e1468f6c8d67b24b0769b70/clone?conflict=1
headers: 
    Accept: application/json; charset=utf-8
    User-Agent: Dredd/12.2.0 (Linux 4.15.0-20-generic; x64)
    Authorization:  Basic YWRtaW46YWRtaW4=

statusCode: 500
headers: 
    content-length: 87
    content-type: application/json; charset=utf-8
    date: Tue, 07 Jan 2020 11:18:15 GMT
    server: nginx/1.17.6
    x-powered-by: PHP/7.3.12
    connection: close

body: 
{
  "error": "TypeError",
  "message": "substr() expects parameter 1 to be string, bool given"
}

To Reproduce

  1. Create file called foobar
  2. Clone node with rename conflict action (1) to the same parent

Expected behavior

No such error, duplicate name should be foobar (xxxx)

Environment

  • balloon server version: 2.7.0-beta2 (older versions are affected as well)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant