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

Intermittent test failure: managed encryption > end-to-end > should reject with a reasonable message given incorrect passphrase #499

Open
alxndrsn opened this issue Jun 24, 2022 · 3 comments · Fixed by #558
Labels
testing Integration tests, unit tests

Comments

@alxndrsn
Copy link
Contributor

I've seen this test fail once, as the only failure in the whole suite:

  1) managed encryption
       end-to-end
         should reject with a reasonable message given incorrect passphrase:
     Error: expected 400 "Bad Request", got 500 "Internal Server Error"
      at Test._assertStatus (node_modules/supertest/lib/test.js:266:12)
      at Test._assertFunction (node_modules/supertest/lib/test.js:281:11)
      at Test.assert (node_modules/supertest/lib/test.js:171:18)
      at Server.assert (node_modules/supertest/lib/test.js:131:12)
      at Server.emit (domain.js:475:12)
      at emitCloseNT (net.js:1677:8)
      at processTicksAndRejections (internal/process/task_queues.js:81:21)

Scrolling back up the logs:

::ffff:127.0.0.1 - - [23/Jun/2022:08:39:04 +0000] "POST /v1/sessions HTTP/1.1" 200 228
::ffff:127.0.0.1 - - [23/Jun/2022:08:39:04 +0000] "POST /v1/projects/1/key HTTP/1.1" 200 16
::ffff:127.0.0.1 - - [23/Jun/2022:08:39:04 +0000] "GET /v1/projects/1/forms/simple.xml HTTP/1.1" 200 1285
::ffff:127.0.0.1 - - [23/Jun/2022:08:39:04 +0000] "POST /v1/projects/1/forms/simple/submissions HTTP/1.1" 200 127
::ffff:127.0.0.1 - - [23/Jun/2022:08:39:04 +0000] "POST /v1/projects/1/forms/simple/submissions/one/attachments/submission.xml.enc HTTP/1.1" 200 16
::ffff:127.0.0.1 - - [23/Jun/2022:08:39:04 +0000] "GET /v1/projects/1/forms/simple/submissions/keys HTTP/1.1" 200 492
Error: error:0909006C:PEM routines:get_name:no start line
    at createPrivateKey (internal/crypto/keys.js:351:10)
    at /x/central-backend/lib/util/crypto.js:151:14
    at async Promise.all (index 0) {
  library: 'PEM routines',
  function: 'get_name',
  reason: 'no start line',
  code: 'ERR_OSSL_PEM_NO_START_LINE'
}Error: error:0909006C:PEM routines:get_name:no start line
    at createPrivateKey (internal/crypto/keys.js:351:10)
    at /x/central-backend/lib/util/crypto.js:151:14
    at async Promise.all (index 0) {
  library: 'PEM routines',
  function: 'get_name',
  reason: 'no start line',
  code: 'ERR_OSSL_PEM_NO_START_LINE'
}::ffff:127.0.0.1 - - [23/Jun/2022:08:39:04 +0000] "GET /v1/projects/1/forms/simple/submissions.csv.zip?4=wrong HTTP/1.1" 500 339
      1) should reject with a reasonable message given incorrect passphrase
@matthew-white
Copy link
Member

Thanks for filing this! That message rings a bell for me: I think I've seen this intermittent test failure as well.

@alxndrsn
Copy link
Contributor Author

This is still happening for me 🙁

@alxndrsn alxndrsn reopened this Aug 19, 2022
@matthew-white matthew-white added the testing Integration tests, unit tests label Aug 29, 2022
@matthew-white
Copy link
Member

This is also happening for me on occasion locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Integration tests, unit tests
Projects
None yet
2 participants