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

api:additional check for token inside error #1385

Merged
merged 2 commits into from
Jun 7, 2023

Conversation

egdmrsy
Copy link
Contributor

@egdmrsy egdmrsy commented May 26, 2023

Checklist

  • I have followed (at least) the PR section of the contributing guide.
  • I fixed all necessary PR warnings
  • The commit history is clean
  • The E2E tests are passing
  • If possible, the issue has been divided into more subtasks
  • I did a self review before requesting a review from another team member

Description

Closes #1367
Closes #1389

Added additional check for the token inside error. If it is undefined, userId is not printed in the log.

@openkfwCI
Copy link

openkfwCI commented May 26, 2023

NotesTime
Note for Reviewer: E2E tests on remote server failedWed, 07 Jun 2023 15:49:30 +0000

Generated by E2E-Test

@egdmrsy egdmrsy force-pushed the 1367-missing-token-crashes-server branch from d5ad199 to 87a084c Compare May 26, 2023 12:54
@egdmrsy egdmrsy requested a review from SamuelPull May 26, 2023 14:43
api/src/httpd/router.ts Outdated Show resolved Hide resolved
@egdmrsy egdmrsy force-pushed the 1367-missing-token-crashes-server branch from 7e6cdcf to fdca698 Compare June 5, 2023 07:02
@egdmrsy egdmrsy requested review from SamuelPull and georgimld and removed request for SamuelPull June 5, 2023 07:51
CHANGELOG.md Outdated
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Fixed

- Fixed a bug where missing token would crash the api. [#1367](https://github.com/openkfw/TruBudget/issues/1367)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for changelog entry, as the bug is not relevant for Trubudget users or operators

@github-actions
Copy link

github-actions bot commented Jun 7, 2023

Warnings
⚠️ No CHANGELOG added.

Generated by 🚫 dangerJS against 58cf113

@egdmrsy egdmrsy force-pushed the 1367-missing-token-crashes-server branch from f9106f0 to d8bf018 Compare June 7, 2023 14:56
@georgimld georgimld merged commit e1ab644 into main Jun 7, 2023
@georgimld georgimld deleted the 1367-missing-token-crashes-server branch June 7, 2023 15:13
@georgimld georgimld mentioned this pull request Jun 7, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix npm audit in storage service API: Missing token crashes the server
4 participants