Protofy icon indicating copy to clipboard operation
Protofy copied to clipboard

spaces on [object | pages | other] name, give error 500

Open palaueb opened this issue 10 months ago • 0 comments

Expected Behavior

Expected the creation of the object.

Current Behavior

does not do anything, then checking the logs it says:

16:58:02 0|admin-api-dev  | [16:58:02.629] ERROR (admin-api/2995): Error processing api call
16:58:02 0|admin-api-dev  |     error: "File already exists"
16:58:03 0|admin-api-dev  | API retry:  500 http://localhost:8080/adminapi/v1/templates/file?token=validtoken
16:58:03 0|admin-api-dev  | [16:58:03.644] INFO (admin-api/2995): Executing template: file
16:58:03 0|admin-api-dev  |     template: {
16:58:03 0|admin-api-dev  |       "name": "file",
16:58:03 0|admin-api-dev  |       "path": "../../packages/app/bundles/custom/objects/nomambespai.ts",
16:58:03 0|admin-api-dev  |       "vars": {
16:58:03 0|admin-api-dev  |         "name": "nom amb espai.ts",
16:58:03 0|admin-api-dev  |         "data": {
16:58:03 0|admin-api-dev  |           "options": {
16:58:03 0|admin-api-dev  |             "template": "/packages/protolib/bundles/objects/templateSchema.tpl",
16:58:03 0|admin-api-dev  |             "variables": {
16:58:03 0|admin-api-dev  |               "name": "Nom amb espai",
16:58:03 0|admin-api-dev  |               "pluralName": "nom amb espais"
16:58:03 0|admin-api-dev  |             }
16:58:03 0|admin-api-dev  |           },
16:58:03 0|admin-api-dev  |           "path": "/packages/app/bundles/custom/objects"
16:58:03 0|admin-api-dev  |         }
16:58:03 0|admin-api-dev  |       }
16:58:03 0|admin-api-dev  |     }

Steps to Reproduce

Create an object with spaces on the names. Try with pages, same problem.

Context (Environment)

  • Default setup
  • OS: MacOS
  • Browser: Firefox
  • Environment: dev

Issue demo

no video needed

palaueb avatar Apr 13 '24 15:04 palaueb