Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Favorite] Favorite file moved into a shared folder as recipient is no longer favorite #13274

Closed
SergioBertolinSG opened this issue Jan 12, 2015 · 9 comments

Comments

@SergioBertolinSG
Copy link
Contributor

Steps to reproduce

  1. Make a file or folder favorite
  2. Move it inside a shared folder by another user.

Expected behaviour

File is still favorite.

Actual behaviour

File loses its status as favorite file.

Server configuration

Operating system:
Ubuntu 14.04 LTS

Web server:
Apache

Database:
MySQL

PHP version:
5.5.9

ownCloud version: (see ownCloud admin page)
{"installed":true,"maintenance":false,"version":"8.0.0.1","versionstring":"8.0 alpha 1","edition":""}

Updated from an older ownCloud or fresh install:
fresh

List of activated apps:
none

The content of config/config.php:

Insert your config.php content here
(Without the database password and passwordsalt)

Are you using external storage, if yes which one: local/smb/sftp/...
no

Are you using encryption: yes

Client configuration

Browser:
Chrome

@nickvergessen
Copy link
Contributor

Also happens when moving a shared favorited file out of the share.
I guess this is due to the fact that the file id changes?

@PVince81

@DeepDiver1975 DeepDiver1975 added this to the 8.0-current milestone Jan 13, 2015
@DeepDiver1975
Copy link
Member

@PVince81 can you please have a look? THX

@nickvergessen
Copy link
Contributor

Also happens with external storages

@PVince81
Copy link
Contributor

I'll have a look. It is likely due to file id change.
I suspect we'll need to spend some time in the future to make file ids stable...

@PVince81 PVince81 self-assigned this Jan 13, 2015
@PVince81
Copy link
Contributor

Just checked the database and indeed the file id changes.
It's not only causing the favorite info to be lost, but also the share info!
If you share the file with link, then move it into a shared folder. Boom. Share lost. I'll make a separate ticket.

@PVince81
Copy link
Contributor

Raised the share breakage here: #13307

One possible solution is to add additional hooks that checks for such situations and then automatically update the share/favorite mapping by updating the file id. But honestly I'd prefer if we had stable file ids instead. There's more and more stuff relying on file ids.

@PVince81
Copy link
Contributor

Raised #13310 to make the file id stable in general.

@PVince81 PVince81 modified the milestones: 8.1-next, 8.0-current Jan 16, 2015
@PVince81
Copy link
Contributor

File id stability #13310 is not fixable in 8.0. Deferring to 8.1 as per the blocking ticket.

@MorrisJobke
Copy link
Contributor

Fixed with #15360

@MorrisJobke MorrisJobke modified the milestones: 8.1-current, 8.2-next Apr 13, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants