Skip to content

Share with group, rename as recipient, then share with user directly => double folder #25564

@PVince81

Description

@PVince81

The fix for #24575 on master is not enough 😦

Steps

  1. Admin shares "test" with "group1" and "group2" (user1 is member of both)
  2. "user1" renames "test" to "test_renamed"
  3. admin now shares "test" directly with "user1"

Expected

Received share is still called "test_renamed" (8.2 behavior)

+----+------------+------------+-----------+--------+-----------+-------------+-------------+-------------+---------------+-------------+------------+----------+------------+-------+-----------+---------------+
| id | share_type | share_with | uid_owner | parent | item_type | item_source | item_target | file_source | file_target   | permissions | stime      | accepted | expiration | token | mail_send | uid_initiator |
+----+------------+------------+-----------+--------+-----------+-------------+-------------+-------------+---------------+-------------+------------+----------+------------+-------+-----------+---------------+
|  6 |          1 | group1     | admin     |   NULL | folder    | 9           | NULL        |           9 | /test         |          31 | 1469167795 |        0 | NULL       | NULL  |         0 | admin         |
|  7 |          1 | group2     | admin     |   NULL | folder    | 9           | NULL        |           9 | /test         |          31 | 1469167798 |        0 | NULL       | NULL  |         0 | admin         |
|  8 |          2 | user1      | admin     |      6 | folder    | 9           | NULL        |           9 | /test_renamed |          31 | 1469167795 |        0 | NULL       | NULL  |         0 | NULL          |
|  9 |          2 | user1      | admin     |      7 | folder    | 9           | NULL        |           9 | /test_renamed |          31 | 1469167798 |        0 | NULL       | NULL  |         0 | NULL          |
| 10 |          0 | user1      | admin     |   NULL | folder    | 9           | NULL        |           9 | /test_renamed |          31 | 1469167819 |        0 | NULL       | NULL  |         0 | admin         |
+----+------------+------------+-----------+--------+-----------+-------------+-------------+-------------+---------------+-------------+------------+----------+------------+-------+-----------+---------------+

Actual

Two folders, "test" and "test_renamed"

+----+------------+------------+-----------+--------+-----------+-------------+-------------+-------------+---------------+-------------+------------+----------+------------+-------+-----------+---------------+
| id | share_type | share_with | uid_owner | parent | item_type | item_source | item_target | file_source | file_target   | permissions | stime      | accepted | expiration | token | mail_send | uid_initiator |
+----+------------+------------+-----------+--------+-----------+-------------+-------------+-------------+---------------+-------------+------------+----------+------------+-------+-----------+---------------+
|  6 |          1 | group1     | admin     |   NULL | folder    | 9           | NULL        |           9 | /test         |          31 | 1469167795 |        0 | NULL       | NULL  |         0 | admin         |
|  7 |          1 | group2     | admin     |   NULL | folder    | 9           | NULL        |           9 | /test         |          31 | 1469167798 |        0 | NULL       | NULL  |         0 | admin         |
|  8 |          2 | user1      | admin     |      6 | folder    | 9           | NULL        |           9 | /test_renamed |          31 | 1469167795 |        0 | NULL       | NULL  |         0 | NULL          |
|  9 |          2 | user1      | admin     |      7 | folder    | 9           | NULL        |           9 | /test_renamed |          31 | 1469167798 |        0 | NULL       | NULL  |         0 | NULL          |
| 10 |          0 | user1      | admin     |   NULL | folder    | 9           | NULL        |           9 | /test         |          31 | 1469167819 |        0 | NULL       | NULL  |         0 | admin         |
+----+------------+------------+-----------+--------+-----------+-------------+-------------+-------------+---------------+-------------+------------+----------+------------+-------+-----------+---------------+

On master and stable9.1-group_shares

@owncloud/sharing

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions