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

Oracle add duplicate slashes for ClassType of ObjectIdentity in ACL provider #11

Closed
soyuka opened this issue Nov 3, 2015 · 13 comments
Closed

Comments

@soyuka
Copy link

soyuka commented Nov 3, 2015

symfony/symfony#15723 follow up

Indeed, when $this->connection->quote is used on the classType, Oracle adds two back-slashes.

I've found a simple fix that is to stripcslashes($classType) on hydrateObjectIdentities. But this should only apply when the $classType contains more than one \.

Thoughts?

@derrabus
Copy link
Member

derrabus commented Sep 3, 2021

@soyuka If you're still around (2015, wow), can you have a look at #96?

@soyuka
Copy link
Author

soyuka commented Sep 3, 2021

Hi @derrabus, yes around but not using Oracle anymore the fix looks alright though :)

@FaritSlv
Copy link
Contributor

FaritSlv commented Sep 6, 2021

Hi @derrabus, will you accept the PR? :)

@derrabus
Copy link
Member

derrabus commented Sep 6, 2021

It looks good, but I don't have a setup to verify it. 🤔

@FaritSlv
Copy link
Contributor

FaritSlv commented Sep 6, 2021

@derrabus
Here is the docker image of OracleDB that I am using
container-registry.oracle.com/database/express:latest

The rest is standard.

@FaritSlv
Copy link
Contributor

FaritSlv commented Sep 8, 2021

@derrabus
Hi, is there anything required of me to accept a PR?

@derrabus
Copy link
Member

derrabus commented Sep 8, 2021

My main issue is that we don't have a maintainer with Oracle knowledge or a CI that runs tests against Oracle on this repo. I don't feel like I'm the right person to merge this.

@FaritSlv
Copy link
Contributor

Hi @derrabus
If I write tests and CI for Oracle DB it will somehow help?

@wouterj
Copy link
Member

wouterj commented Sep 15, 2021

It would be great if we can refactor https://github.com/symfony/security-acl/blob/main/Tests/Dbal/AclProviderTest.php to test on Oracle, MySQL and sqlite (current) on GitHub actions (and skip the particular database if any of them is not supported locally).

That would give us much more confidence that the fix works and we're not breaking it in the future.

@soyuka
Copy link
Author

soyuka commented Sep 15, 2021

testing on oracle is really hard as you need EULA to be accepted before running their dev tools ask @greg0ire I think he managed to but not sure he took much more time

in the meantime @FaritSlv just override the class locally.

@greg0ire
Copy link

I tried to do so on the ORM, since we already do have Oracle test on the DBAL. My attempt can be seen at doctrine/orm#8958

@wouterj
Copy link
Member

wouterj commented Sep 19, 2021

Hmm, that's a bit of a bummer...

In that case, we rely on the community. Currently, #96 is open without any reviewers. If anyone that has Oracle locally can verify this indeed fixes this annoying bug, I would be much more confident when merging the PR.

@soyuka
Copy link
Author

soyuka commented Oct 22, 2021

Not using Oracle anymore but the bug in 2015 was there and the fix I proposed was the same as the one in #96 I'd be 👍 to merge it.

derrabus added a commit that referenced this issue Jan 20, 2022
This PR was merged into the 3.x-dev branch.

Discussion
----------

Fix for OracleDB

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  |no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets | [issues 11](#11)
| License       | MIT
| Doc PR        |

Commits
-------

3f541a8 Fix for OracleDB
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

No branches or pull requests

5 participants