Skip to content

[DoctrineBridge] fix: DoctrineTokenProvider not oracle compatible #58523

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

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

jjjb03
Copy link
Contributor

@jjjb03 jjjb03 commented Oct 10, 2024

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues see below
License MIT

Problem:
Oracle DB returns all not quoted names in uppercase
(vs. SQLite for example returns non quoted column names as lowercase)

On systems with oracle DB this leads to the Warning/Exception attached below.

see also: PHP Documentation - function.oci-fetch-array- Return Values

Screenshot Warning Access to undefined array key

Oracle converts all not quoted names to uppercase
@jjjb03 jjjb03 requested a review from chalasr as a code owner October 10, 2024 09:01
@carsonbot carsonbot added this to the 5.4 milestone Oct 10, 2024
@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

It would be nice to have an integration test for postgres, it was missing in #27314. Not a blocker for this PR.

@@ -55,15 +55,17 @@ public function __construct(Connection $conn)
*/
public function loadTokenBySeries(string $series)
{
// the alias for lastUsed works around case insensitivity in PostgreSQL
Copy link
Member

Choose a reason for hiding this comment

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

This was introduced by #27314. The proposed patch also seems to handle postgres issue too.

@carsonbot carsonbot changed the title fix: DoctrineTokenProvider not oracle compatible [DoctrineBridge] fix: DoctrineTokenProvider not oracle compatible Oct 10, 2024
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

This change passes the test added by #58528

@fabpot
Copy link
Member

fabpot commented Oct 18, 2024

Thank you @jjjb03.

@fabpot fabpot merged commit 44fa121 into symfony:5.4 Oct 18, 2024
10 of 12 checks passed
fabpot added a commit that referenced this pull request Oct 18, 2024
…h postgres connection (GromNaN)

This PR was merged into the 5.4 branch.

Discussion
----------

[DoctrineBridge] Add integration test for RememberMe with postgres connection

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

Related to
- #27314
- #58523

Commits
-------

ca417c0 Add integration test for RememberMe with pg connection
This was referenced Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants