Skip to content

Link share dialog email must not list local users #30670

Closed

Description

@PVince81

Steps

  1. Create a new user "user1" and set the email address to "[email protected]"
  2. Enable contacts app
  3. Create a new contact with email address "[email protected]"
  4. In the sharing settings, allow users to send email for link shares
  5. Create a folder "test"
  6. Share "test" with link
  7. In the email field in the dialog, type "user" and wait

Expected

Only "[email protected]" appears

Actual

Both users including the local user "[email protected]" appear.

Version

ownCloud 10.0.7
(note: broken completely on stable10, don't try there: #30669)

The code in question users the ContactsManager and has no knowledge where the users come from.
Not sure if there is an easy way to prevent it to search through local users.

I suspect that it might also look through the system address book or federated address book so could also find other users.

@pmaier1 maybe to be discussed what to do with this feature. Maybe we should just limit this to contacts from the contacts app ?

Activity

  1. added
    p2-high
    on Mar 2, 2018
  2. added this to the development milestone on Mar 2, 2018
  3. DeepDiver1975 commented on Mar 2, 2018

    @DeepDiver1975
    Contributor

    I suspect that it might also look through the system address book or federated address book so could also find other users.

    yes and this was added back then on purpose

  4. DeepDiver1975 commented on Mar 2, 2018

    @DeepDiver1975
    Contributor

    Maybe we should just limit this to contacts from the contacts app ?

    no - searching federated addressbooks was an explicit requirement

  5. PVince81 commented on Mar 2, 2018

    @PVince81
    ContributorAuthor

    ok, so just remove the local users part ?

  6. PVince81 commented on Mar 2, 2018

    @PVince81
    ContributorAuthor

    searching federated addressbooks was an explicit requirement

    I do wonder why... People are supposed to share using direct federated shares, no link shares. Maybe this was added before we had the "direct federated share" feature ?

  7. PVince81 commented on Mar 2, 2018

    @PVince81
    ContributorAuthor

    @DeepDiver1975 do you remember where the requirement was specified ? Maybe it is obsolete now, need to see the details to find out.

  8. PVince81 commented on Mar 2, 2018

    @PVince81
    ContributorAuthor

    I see there's a key in the result isLocalSystemBook which is set to true for local users but is not set for contacts.

    Do you know if federated users also have false ? If yes we could use that value to filter out local users from the results.

  9. DeepDiver1975 commented on Mar 2, 2018

    @DeepDiver1975
    Contributor

    @DeepDiver1975 do you remember where the requirement was specified ?

    not really - this was 2+ years back ....

  10. DeepDiver1975 commented on Mar 2, 2018

    @DeepDiver1975
    Contributor

    I see there's a key in the result isLocalSystemBook which is set to true for local users but is not set for contacts.

    Do you know if federated users also have false ? If yes we could use that value to filter out local users from the results.

    I'd need to debug this ....

  11. PVince81 commented on Mar 2, 2018

    @PVince81
    ContributorAuthor

    I managed to also have federated users included after federated server pairing. If a remote user has an email address configured, it will be able to be completed here.

  12. PVince81 commented on Mar 2, 2018

    @PVince81
    ContributorAuthor

    Observation: the remote user doesn't have isLocalSystemBook set.

    So to identify users to exclude:

    • exclude if isLocalSystemBook is set
    • exclude if "CLOUD" is set ??
  13. pmaier1 commented on Mar 13, 2018

    @pmaier1
    Contributor

    Can someone find a scenario where this is actually helpful? If not, I would

    a) Remove it completely and make the autocomplete configurable in the context of Contacts app (applying to all locations where Contacts autocomplete can be used).

    or

    b) Make it configurable (autocomplete on/off) and only display suggestions coming from the Contacts app

  14. 1 remaining item

  15. PVince81 commented on Mar 15, 2018

    @PVince81
    ContributorAuthor

    @DeepDiver1975 any objection to removing the email autocomplete completely ? The loss of feature would be for contacts search mostly.

  16. PVince81 commented on Mar 16, 2018

    @PVince81
    ContributorAuthor

    ok so after #30645 is merged and backported, I'll remove the autocomplete endpoint and also the frontend code that calls it. Let's not do this directly in #30645 as I want this to be a separate PR for historic purposes.

  17. self-assigned this
    on Mar 16, 2018
  18. added
    p1-urgent
    and removed
    p2-high
    on Mar 16, 2018
  19. PVince81 commented on Mar 28, 2018

    @PVince81
    ContributorAuthor

    @DeepDiver1975 can you take care of this ? this is mostly about backend code removal

  20. cdamken commented on Mar 29, 2018

    @cdamken
    Contributor

    1220563019346_f

  21. DeepDiver1975 commented on Apr 3, 2018

    @DeepDiver1975
    Contributor

    @DeepDiver1975 any objection to removing the email autocomplete completely ? The loss of feature would be for contacts search mostly.

    YES - for sure a lot of objections!

    We can fix the search to limit this to real addressbooks only - but killing this feature is a no go.

    @felixheidecke please gimme back the autocomplete - I take care of the backend search capabilities

  22. PVince81 commented on Apr 3, 2018

    @PVince81
    ContributorAuthor

    this PR #30987 brings back autocomplete but removes local and federated users. so it's limited to user address book which is populated by the contacts app

  23. PVince81 commented on Apr 4, 2018

    @PVince81
    ContributorAuthor

    will be in 10.0.8

  24. lock commented on Jul 30, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  25. locked as resolved and limited conversation to collaborators on Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type:Bugblue-ticketp1-urgent

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions