intermittent test failure: should NOT allow a new form that creates a dataset without user having dataset.create verb
- Dominant language
- JavaScript
- Stars
- 226
- Forks
- 235
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 19
Description
https://github.com/getodk/central-backend/actions/runs/13009675555/job/36284344394
```
1) datasets and entities
parsing datasets on form upload
parsing datasets at /projects/:id/forms POST
dataset-specific verbs
dataset.create
should NOT allow a new form that creates a dataset without user having dataset.create verb:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/central-backend/central-backend/test/integration/api/datasets.js)
at listOnTimeout (node:internal/timers:594:17)
at process.processTimers (node:internal/timers:529:7)
```
```
2025-01-28T11:46:28.4331107Z ✔ should not reject for existing duplicate properties (62ms)
2025-01-28T11:46:28.4333997Z updating datasets through new form drafts
2025-01-28T11:46:28.4359073Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "GET /v1/oidc/login HTTP/1.1" 307 384
2025-01-28T11:46:28.4539772Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "GET /v1/oidc/callback?code=uglA_FQrOKqLPlNL086K05F57dr6icOcO9VPMmR7RHQ&state=Q1ujBJXF_octiMXBexzvTnbiIf8YGK5HfPuiX_-IBBI%3A&iss=http%3A%2F%2Flocalhost%3A9898 HTTP/1.1" 200 2268
2025-01-28T11:46:28.4720565Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "POST /v1/projects/1/forms?publish=true HTTP/1.1" 200 434
2025-01-28T11:46:28.4858259Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "POST /v1/projects/1/forms/simpleEntity/draft HTTP/1.1" 200 16
2025-01-28T11:46:28.4972498Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "POST /v1/projects/1/forms/simpleEntity/draft HTTP/1.1" 200 16
2025-01-28T11:46:28.5017725Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "GET /v1/projects/1/forms/simpleEntity/draft HTTP/1.1" 200 770
2025-01-28T11:46:28.5047276Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "GET /v1/projects/1/datasets HTTP/1.1" 200 97
2025-01-28T11:46:28.5092775Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "GET /v1/projects/1/datasets/people HTTP/1.1" 200 478
2025-01-28T11:46:28.5099359Z ✔ should update a dataset with a new draft and be able to upload multiple drafts (76ms)
2025-01-28T11:46:28.5130609Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "GET /v1/oidc/login HTTP/1.1" 307 384
2025-01-28T11:46:28.5254007Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "GET /v1/oidc/callback?code=roBwEVWT8oIoCb2JddB5TXgHPiMed9Y_pcoxmjAP8ti&state=_sMmBkSO0o_lcAUMMIEWhlEv4XGN_pIEIoo2dMjoH0Y%3A&iss=http%3A%2F%2Flocalhost%3A9898 HTTP/1.1" 200 2268
2025-01-28T11:46:28.5423339Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "POST /v1/projects/1/forms?publish=true HTTP/1.1" 200 434
2025-01-28T11:46:28.5493503Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:28 +0000] "POST /v1/projects/1/forms/simpleEntity/draft HTTP/1.1" 400 160
2025-01-28T11:46:28.5500156Z ✔ should return a Problem if updated form has invalid dataset properties (39ms)
2025-01-28T11:46:28.5502255Z dataset-specific verbs
2025-01-28T11:46:28.5503048Z dataset.create
2025-01-28T11:46:30.5533510Z 1) should NOT allow a new form that creates a dataset without user having dataset.create verb
2025-01-28T11:46:40.3122360Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:40 +0000] "GET /v1/oidc/login HTTP/1.1" 307 384
2025-01-28T11:46:40.3491883Z }error: relation "users" does not exist
2025-01-28T11:46:40.3499136Z at Parser.parseErrorMessage (/home/runner/work/central-backend/central-backend/node_modules/pg-protocol/dist/parser.js:287:98)
2025-01-28T11:46:40.3501379Z at Parser.handlePacket (/home/runner/work/central-backend/central-backend/node_modules/pg-protocol/dist/parser.js:126:29)
2025-01-28T11:46:40.3503881Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:40 +0000] "GET /v1/oidc/callback?code=0PYuPBWxheqC0iw1n-Tl3JzQs9DWgnSNty7VP6ZIa4_&state=fKiuwmVJEUwylz0BvooZLXME_SQcp8fNN4GfWA8jxBU%3A&iss=http%3A%2F%2Flocalhost%3A9898 HTTP/1.1" 303 87
2025-01-28T11:46:40.3507619Z at Parser.parse (/home/runner/work/central-backend/central-backend/node_modules/pg-protocol/dist/parser.js:39:38)
2025-01-28T11:46:40.3509434Z at Socket. (/home/runner/work/central-backend/central-backend/node_modules/pg-protocol/dist/index.js:11:42)
2025-01-28T11:46:40.3511123Z at Socket.emit (node:events:524:28)
2025-01-28T11:46:40.3512152Z at Socket.emit (node:domain:489:12)
2025-01-28T11:46:40.3512783Z at addChunk (node:internal/streams/readable:561:12)
2025-01-28T11:46:40.3513561Z at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
2025-01-28T11:46:40.3514381Z at Readable.push (node:internal/streams/readable:392:5)
2025-01-28T11:46:40.3515141Z at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {
2025-01-28T11:46:40.3515952Z length: 105,
2025-01-28T11:46:40.3516278Z severity: 'ERROR',
2025-01-28T11:46:40.3516587Z code: '42P01',
2025-01-28T11:46:40.3516884Z detail: undefined,
2025-01-28T11:46:40.3517189Z hint: undefined,
2025-01-28T11:46:40.3517469Z position: '433',
2025-01-28T11:46:40.3517802Z internalPosition: undefined,
2025-01-28T11:46:40.3518159Z internalQuery: undefined,
2025-01-28T11:46:40.3518483Z where: undefined,
2025-01-28T11:46:40.3519130Z schema: undefined,
2025-01-28T11:46:40.3519466Z table: undefined,
2025-01-28T11:46:40.3519803Z column: undefined,
2025-01-28T11:46:40.3520111Z dataType: undefined,
2025-01-28T11:46:40.3520439Z constraint: undefined,
2025-01-28T11:46:40.3520793Z file: 'parse_relation.c',
2025-01-28T11:46:40.3521112Z line: '1381',
2025-01-28T11:46:40.3521402Z routine: 'parserOpenTable',
2025-01-28T11:46:40.3521769Z notices: []
2025-01-28T11:46:40.3522329Z }attempted to log Sentry exception in development:
2025-01-28T11:46:40.3522908Z error: relation "users" does not exist
2025-01-28T11:46:40.3523962Z at Parser.parseErrorMessage (/home/runner/work/central-backend/central-backend/node_modules/pg-protocol/dist/parser.js:287:98)
2025-01-28T11:46:40.3525600Z at Parser.handlePacket (/home/runner/work/central-backend/central-backend/node_modules/pg-protocol/dist/parser.js:126:29)
2025-01-28T11:46:40.3526525Z at Parser.parse (/home/runner/work/central-backend/central-backend/node_modules/pg-protocol/dist/parser.js:39:38)
2025-01-28T11:46:40.3527354Z at Socket. (/home/runner/work/central-backend/central-backend/node_modules/pg-protocol/dist/index.js:11:42)
2025-01-28T11:46:40.3528106Z at Socket.emit (node:events:524:28)
2025-01-28T11:46:40.3528391Z at Socket.emit (node:domain:489:12)
2025-01-28T11:46:40.3528731Z at addChunk (node:internal/streams/readable:561:12)
2025-01-28T11:46:40.3529159Z at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
2025-01-28T11:46:40.3529598Z at Readable.push (node:internal/streams/readable:392:5)
2025-01-28T11:46:40.3530003Z at TCP.onStreamRead (node:internal/stream_base_commons:189:23) {
2025-01-28T11:46:40.3530309Z length: 105,
2025-01-28T11:46:40.3530492Z severity: 'ERROR',
2025-01-28T11:46:40.3530679Z code: '42P01',
2025-01-28T11:46:40.3530873Z detail: undefined,
2025-01-28T11:46:40.3531057Z hint: undefined,
2025-01-28T11:46:40.3531246Z position: '433',
2025-01-28T11:46:40.3542591Z internalPosition: undefined,
2025-01-28T11:46:40.3542999Z internalQuery: undefined,
2025-01-28T11:46:40.3543247Z where: undefined,
2025-01-28T11:46:40.3543442Z schema: undefined,
2025-01-28T11:46:40.3543649Z table: undefined,
2025-01-28T11:46:40.3543839Z column: undefined,
2025-01-28T11:46:40.3544032Z dataType: undefined,
2025-01-28T11:46:40.3544239Z constraint: undefined,
2025-01-28T11:46:40.3544464Z file: 'parse_relation.c',
2025-01-28T11:46:40.3544672Z line: '1381',
2025-01-28T11:46:40.3544867Z routine: 'parserOpenTable',
2025-01-28T11:46:40.3545095Z notices: []
2025-01-28T11:46:40.3545476Z }
2025-01-28T11:46:41.1999165Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:41 +0000] "GET /v1/oidc/login HTTP/1.1" 307 384
2025-01-28T11:46:41.2395002Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:41 +0000] "GET /v1/oidc/callback?code=T7F426Jtt9GjtK_lKiKp16g6dub_kdXdacTQ9EWhlHB&state=S4jsmtIyvICTae-_vPaoUrn2nbLRZnOEIHRkDf7Mmzo%3A&iss=http%3A%2F%2Flocalhost%3A9898 HTTP/1.1" 200 2268
2025-01-28T11:46:41.2412449Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:41 +0000] "GET /v1/oidc/login HTTP/1.1" 307 384
2025-01-28T11:46:41.2581879Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:41 +0000] "GET /v1/oidc/callback?code=ZOEem-RA3Q4pXZGiFsHzuA4RtyOz0bFtzYieJNUSzQZ&state=U6lDRk4Ugj3F8jjyrW9yRsKaSR3595HhE6AdIux960I%3A&iss=http%3A%2F%2Flocalhost%3A9898 HTTP/1.1" 200 2268
2025-01-28T11:46:41.2759663Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:41 +0000] "POST /v1/projects/1/forms HTTP/1.1" 200 464
2025-01-28T11:46:41.2879754Z ::ffff:127.0.0.1 - - [28/Jan/2025:11:46:41 +0000] "POST /v1/projects/1/forms HTTP/1.1" 403 103
2025-01-28T11:46:41.2886845Z ✔ should NOT allow "creating" of a dataset when the dataset exists but unpublished (97ms)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.