Skip to content

Trying to share with a remote user twice gives wrong error #13765

Closed

Description

@nickvergessen

Instead of saying the item is already shared with the user,
you get: Sharing Folder failed, could not find test@localhost/ownCloud/Master, maybe the server is currently unreachable.

@schiesbn

Activity

  1. nickvergessen commented on Jan 29, 2015

    @nickvergessen
    ContributorAuthor

    But that's something we can fix later.

  2. added this to the milestone on Jan 29, 2015
  3. PVince81 commented on Feb 26, 2015

    @PVince81
    Contributor

    Just tried it, I expected an easy way to detect this but just saw that:

    {"reqId":"tkfDU\/AxLOIVUI8Hj8sk","remoteAddr":"127.0.0.1","app":"files_sharing","message":"server can not add remote share, An exception occurred while executing '\n\t\t\t\tINSERT INTO `oc_share_external`\n\t\t\t\t\t(`remote`, `share_token`, `password`, `name`, `owner`, `user`, `mountpoint`, `mountpoint_hash`, `accepted`, `remote_id`)\n\t\t\t\tVALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\n\t\t\t' with params [\"http:\\\/\\\/localhost\\\/owncloud\\\/\", \"sjxqraA1MY3bUk1\", \"\", \"\\\/coucou\", \"root\", \"user1\", \"\\\/coucou\", \"666fdc489f6a7159a9033219e75a3af4\", 0, 5]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'user1-666fdc489f6a7159a9033219e75a3af4' for key 'sh_external_mp'","level":3,"time":"2015-02-26T15:48:08+00:00","method":"POST","url":"\/owncloud\/ocs\/v1.php\/cloud\/shares?format=json"}
    

    So this means the remote server must detect it and return something like 409 Conflict.

  4. modified the milestones: , on Feb 27, 2015
  5. nickvergessen commented on Feb 27, 2015

    @nickvergessen
    ContributorAuthor

    Could also move it to 8.1,
    I thought we just need to display a different language string, didn't know it also requires a new endpoint logic.

  6. modified the milestones: , on Mar 30, 2015
  7. nickvergessen commented on May 18, 2015

    @nickvergessen
    ContributorAuthor

    Fixed with #14580 on master
    stable8 is still open: #15959

  8. ghost added this to the milestone on May 27, 2015
  9. ghost removed this from the milestone on May 27, 2015
  10. DeepDiver1975 commented on Jun 17, 2015

    @DeepDiver1975
    Contributor

    closed with #15959

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions