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

fix: search terms for binary fields will be converted if possible #815

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jvillafanez
Copy link
Member

@jvillafanez jvillafanez commented Nov 21, 2023

Related to https://github.com/owncloud/enterprise/issues/6032

The app will take care of converting binary attributes when searching for them.

For example, if the user_ldap app has been configured the "user search attributes" with "objectguid" (among other attributes), searching by "36E271F3" might return results, assuming the converted value we have from binary contains those characters.
Note that the converted value will also be stored as search term for the account in the "oc_account_terms" table.

@jvillafanez
Copy link
Member Author

Failing tests are known: #814

@jvillafanez
Copy link
Member Author

I don't think I can add tests for the changes in the Access class easily. Need to change attributes in the connection class, which are accessed using magic methods. It doesn't seem possible to mock those.

Copy link

sonarcloud bot commented Dec 15, 2023

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

2 New issues
0 Security Hotspots
17.4% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@pako81
Copy link
Contributor

pako81 commented Jun 17, 2024

merge this?

Copy link

sonarcloud bot commented Jun 17, 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.

2 participants