Skip to content

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

Closed

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

Activity

  1. added this to the 9.1.1 milestone on Jul 22, 2016
  2. NacreData commented on Jul 26, 2016

    @NacreData

    Research related issues and the many, many baffled user posts on many forums leads me to conclude that the way ownCloud allows users to rename files and folders is clearly a mis-feature with more unintended consequences than benefits. Rather than endless patching this unintended consequences the design flaw should be rectified. The correct way to do this would seem to be to allow users to set a second name, which could be used as the primary display and organization name if they so choose, but keep the owner-set "real" name present and visible at all times.

  3. PVince81 commented on Aug 8, 2016

    @PVince81
    ContributorAuthor

    @NacreData how would that "second name" work ? Would the recipient see the folder twice, once with the original name and once with the renamed name ?

  4. PVince81 commented on Aug 8, 2016

    @PVince81
    ContributorAuthor

    If you'd like to discuss changing the design, feel free to post on http://central.owncloud.org/ so other people can also chime in and discuss whether this should be changed in the future.

  5. modified the milestones: 9.1.2, 9.1.1 on Sep 21, 2016
  6. modified the milestones: 9.1.3, 9.1.2 on Oct 20, 2016
  7. PVince81 commented on Dec 6, 2016

    @PVince81
    ContributorAuthor

    @davitol can you provide an integration test for this case ? Thanks

  8. added this to the 9.1.4 milestone on Dec 22, 2016
  9. 19 remaining items

  10. stale commented on Sep 21, 2021

    @stale

    This issue has been automatically closed.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions