-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Bug: Erroneous error if there is a database configuration for a custom session middleware storage provider. #8457
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
Bug: Erroneous error if there is a database configuration for a custom session middleware storage provider. #8457
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8457 +/- ##
==========================================
- Coverage 35.07% 26.65% -8.43%
==========================================
Files 1308 1175 -133
Lines 14465 10149 -4316
Branches 1439 563 -876
==========================================
- Hits 5074 2705 -2369
+ Misses 8481 6950 -1531
+ Partials 910 494 -416
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Signed-off-by: Taylor Zajicek <tzajicek@flexion.us>
f0d04c6 to
02c8068
Compare
Signed-off-by: Taylor Zajicek <tzajicek@flexion.us>
f363fed to
8ac31ba
Compare
|
Hi @taylor-work your PR has some linting issues :) can you fix those ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
|
This pull request has been mentioned on Strapi Community Forum. There might be relevant details there: |
What does it do?
This allows for custom session providers to allow configuration of their database connection. Currently if you configure the database you will receive an error. The
!was lost in this commit ed61633#diff-1998c9159f58f279c68ead712f31e89ec0056b400cb139c3b8f6afd71da9355d Looking at the commit comments that change seems unintentional.Describe the technical changes you did.
Why is it needed?
This allows custom database settings to be set for the session middleware.
Describe the issue you are solving.
If you set
will create this error
'(middleware:session) please provide a valid connection for the session store'after this fix you will not receive this error and you will use the custom database connection for the session middleware.Related issue(s)/PR(s)
Let us know if this is related to any issue/pull request