-
Notifications
You must be signed in to change notification settings - Fork 187
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
Searching sharee with displayname #547
Comments
I added the EOS storage tag but most likely is related with the Reva userprovider. |
re tested: Created User Username: hans We can find:
We cannot find:
Expectationat least Should work. |
This is caused by a bug in idm. Fix is on its way.
This is currently not working "on purpose". At some point we agreed on limiting search to prefix searches. As doing full substring searches will get pretty expensive easily. We can of course change that (just need to adjust the filter https://github.com/cs3org/reva/blob/75f2c2f836578f8280749569f7f01a3e7d2b5939/pkg/utils/ldap/identity.go#L480). @micbar If you still want it. Should we maybe make that configurable? |
This part should be fixed with libregraph/idm#75 |
That would be awesome, same for the character length. |
@micbar The API does not enforce any limit on the minimum (or maximum) length of the search phrase. Can you elaborate on what you are referring to? |
Currently the system starts searching for users after you enter 3 characters. This is fine as a default. Some use cases and the test suite would like to use at least 2 chars to start the user enumeration. I would like to have that configurable. Is that possible? |
For example, oC10 has:
So the default on oC10 is to start searching for matches after 2 characters are typed in. For test scenarios, it will be easier if we can get oCIS to start with this set to 2 characters (either change the oCIS default from 3 to 2, or have a way that we can configure that when we start oCIS in CI - I don't really care) There are some scenarios that change the setting on-the-fly and check that different values work. Tht is out-of-scope for oCIS at the moment - we don't have a general way to modify system-wide settings on-the-fly in oCIS, so those sort of test scenarios will have to be re-engineered anyway if there comes a time when we actually want to test such things. |
Configurable would be great, default like oC10 ( |
This includes a fix for case-insensitive substring filtering Partial-Fix: owncloud#547
This introduces new settings for the users and groups services. "group_substring_filter_type" for the group services and "user_substring_filter_type" for the users service. They allow to set the type of LDAP filter that is used for substring user searches. Possible values are: "initial", "final" and "any" to do either prefix, suffix or full substring searches. Fixes owncloud#547
This adds the "search_min_length" setting to the frontend service which allows to set the search_min_length capabilty which is e.g. used by web. Partial: owncloud#547
This includes a fix for case-insensitive substring filtering Partial-Fix: owncloud#547
This introduces new settings for the users and groups services. "group_substring_filter_type" for the group services and "user_substring_filter_type" for the users service. They allow to set the type of LDAP filter that is used for substring user searches. Possible values are: "initial", "final" and "any" to do either prefix, suffix or full substring searches. Fixes owncloud#547
This introduces new settings for the users and groups services. "group_substring_filter_type" for the group services and "user_substring_filter_type" for the users service. They allow to set the type of LDAP filter that is used for substring user searches. Possible values are: "initial", "final" and "any" to do either prefix, suffix or full substring searches. Fixes owncloud#547
This adds the "search_min_length" setting to the frontend service which allows to set the search_min_length capabilty which is e.g. used by web. Partial: owncloud#547
This includes a fix for case-insensitive substring filtering Partial-Fix: #547
This introduces new settings for the users and groups services. "group_substring_filter_type" for the group services and "user_substring_filter_type" for the users service. They allow to set the type of LDAP filter that is used for substring user searches. Possible values are: "initial", "final" and "any" to do either prefix, suffix or full substring searches. Fixes #547
This adds the "search_min_length" setting to the frontend service which allows to set the search_min_length capabilty which is e.g. used by web. Partial: #547
This PR got merged #4229 fixing this issue and needs a follow-up for the expected to fail. ocis/tests/acceptance/expected-failures-API-on-OCIS-storage.md Lines 409 to 421 in 176dd32
TODO QA-team
|
The tests are failing because they search for the
For instance if I create a multiple variations of user curl -vk -uadmin:admin http://localhost/core/ocs/v1.php/apps/files_sharing/api/v1/sharees\?search\=einstein\&itemType\=file -H"OCS-APIREQUEST:1" | xmllint --format - It responds with <?xml version="1.0"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message>OK</message>
<totalitems/>
<itemsperpage/>
</meta>
<data>
<exact>
<users>
<element>
<label>einstein</label>
<value>
<shareType>0</shareType>
<shareWith>einstein</shareWith>
<userType>0</userType>
</value>
</element>
</users>
<groups/>
<remotes/>
</exact>
<users>
<element>
<label>Albert Einstein</label>
<value>
<shareType>0</shareType>
<shareWith>Albert Einstein</shareWith>
<userType>0</userType>
</value>
</element>
<element>
<label>einstein-einstein</label>
<value>
<shareType>0</shareType>
<shareWith>einstein-einstein</shareWith>
<userType>0</userType>
</value>
</element>
<element>
<label>einstein1</label>
<value>
<shareType>0</shareType>
<shareWith>einstein1</shareWith>
<userType>0</userType>
</value>
</element>
</users>
<groups/>
<remotes/>
</data>
</ocs>
Inside But in the case of
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message>OK</message>
</meta>
<data>
<exact>
<users/>
<groups/>
<remotes/>
</exact>
<users>
<element>
<label>Albert Einstein</label>
<value>
<shareType>0</shareType>
<shareWith>einstein</shareWith>
<shareWithAdditionalInfo>[email protected]</shareWithAdditionalInfo>
</value>
</element>
<element>
<label>Einstein Albert</label>
<value>
<shareType>0</shareType>
<shareWith>einstein-einstein</shareWith>
<shareWithAdditionalInfo>[email protected]</shareWithAdditionalInfo>
</value>
</element>
<element>
<label>Einstein</label>
<value>
<shareType>0</shareType>
<shareWith>einstein1</shareWith>
<shareWithAdditionalInfo>[email protected]</shareWithAdditionalInfo>
</value>
</element>
</users>
<groups/>
<remotes/>
</data>
</ocs> The
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message>OK</message>
</meta>
<data>
<exact>
<users/>
<groups/>
<remotes/>
</exact>
<users>
<element>
<label>Einstein Albert</label>
<value>
<shareType>0</shareType>
<shareWith>einstein-einstein</shareWith>
<shareWithAdditionalInfo>[email protected]</shareWithAdditionalInfo>
</value>
</element>
</users>
<groups/>
<remotes/>
</data>
</ocs> The tests are looking inside Is this expected behaviour? |
@SwikritiT thanks for looking into that. I think this deserves a separate issue though, would you mind creating a new one for this? I think the original bug reported here (which was about broken substring and case-sensitiveness) was solved. It seems the new issue is basically caused by an incomplete implementation of the ocs sharing api in ocis/reva. It always returns an empty |
Okay I'll create a separate issue and close this one |
Closing this issue. I'll make a PR changing the issue link in expected to fail file |
This includes a fix for case-insensitive substring filtering Partial-Fix: #547
This introduces new settings for the users and groups services. "group_substring_filter_type" for the group services and "user_substring_filter_type" for the users service. They allow to set the type of LDAP filter that is used for substring user searches. Possible values are: "initial", "final" and "any" to do either prefix, suffix or full substring searches. Fixes #547
This adds the "search_min_length" setting to the frontend service which allows to set the search_min_length capabilty which is e.g. used by web. Partial: #547
Only posible to get sharees by using the username:
Username:
einstein
Display Name:
Albert Einstein
results are fetched only matching
einstein
Albert
,Einstein
,Ein
,Albe
do not match and response is empty (always forgetting the case sensitiveness)oC10: matches with both.
Backend: EOS storage via via https://github.com/owncloud-docker/compose-playground/blob/master/examples/hetzner-deploy/make_ocis_eos_compose_test.sh
Version: v1.0.0-rc1
Client: iOS App v11.4 over iOS13
CC @pmaier1
The text was updated successfully, but these errors were encountered: