Skip to content

Proper error message on remote share with the same user twice #14799

Closed

Description

@MorrisJobke
  1. Add a remote share via the share dropdown "[email protected]/owncloud"
  2. Add for the same file another share to the same user but with the protocol "user@https://remote.server.org/owncloud"

Expected

This is already shared to this user

Actual

Freigabe von welcome.txt fehlgeschlagen, da [email protected]/owncloud nicht gefunden wurde. Möglicherweise ist der Server nicht erreichbar.

{"reqId":"fcd95516be9c54d620c93b977bcd7dab","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\\\/master\\\/\", \"Ez51SMBUJebE3bb\", \"\", \"\\\/welcome (2).txt\", \"mjob\", \"muha\", \"\\\/welcome (2).txt\", \"3c5955c737575cfed3b0534eca80f0ba\", 0, 3]:\n\nSQLSTATE[23000]: Integrity constraint violation: 19 UNIQUE constraint failed: oc_share_external.user, oc_share_external.mountpoint_hash","level":3,"time":"2015-03-11T13:34:38+00:00","method":"POST","url":"\/master\/ocs\/v1.php\/cloud\/shares?format=json"}

noticed while testing #13839

Activity

  1. MorrisJobke commented on Mar 11, 2015

    @MorrisJobke
    ContributorAuthor

    cc @schiesbn @PVince81

  2. MorrisJobke commented on Mar 11, 2015

    @MorrisJobke
    ContributorAuthor
  3. nickvergessen commented on Mar 11, 2015

    @nickvergessen
    Contributor

    Duplicate of #13765

  4. nickvergessen commented on Mar 11, 2015

    @nickvergessen
    Contributor

    Related to #14580

  5. locked as resolved and limited conversation to collaborators on Aug 13, 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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions