m-ld / timeld

Live shared timesheets
MIT License
1 stars 1 forks source link

Internal server error if timesheet name contains uppercase #59

Closed gsvarovsky closed 2 years ago

gsvarovsky commented 2 years ago
HttpError [InternalServerError]
    at toHttpError (file:///workspace/rest/errors.mjs:5:9)
    at file:///workspace/rest/index.mjs:107:16 {
  jse_shortmsg: '',
  jse_cause: Error: Domain not specified or not valid
      at new DomainContext (/workspace/node_modules/@m-ld/m-ld/dist/engine/MeldEncoding.js:29:19)
      at /workspace/node_modules/@m-ld/m-ld/dist/index.js:57:25
      at Generator.next (<anonymous>)
      at /workspace/node_modules/@m-ld/m-ld/dist/index.js:18:71
      at new Promise (<anonymous>)
      at __awaiter (/workspace/node_modules/@m-ld/m-ld/dist/index.js:14:12)
      at clone (/workspace/node_modules/@m-ld/m-ld/dist/index.js:51:12)
      at Gateway.clone (file:///workspace/node_modules/timeld-common/lib/clone.mjs:30:10)
      at async Gateway.cloneTimesheet (file:///workspace/lib/Gateway.mjs:80:7)
      at async Gateway.initTimesheet (file:///workspace/lib/Gateway.mjs:221:16),
  jse_info: {},
  body: { code: 'InternalServer', message: '' },
  cause: [Function: we_cause]

It's because the domain name check in m-ld requires lowercase.

A timesheet name must also be lowercase (plus digits and dashes).