Skip to content

Favorite handling fails for folders not in the filelist #19789

Closed

Description

@nickvergessen

Steps to reproduce

  1. Create a folder
  2. Navigate into the folder
  3. Open the sidebar via the share icon in the breadcrumb
  4. Click on the favorite icon

Expected behaviour

Works ⭐

Actual behaviour

Works in the background, but the UI shows an error: Unable to change the favourite state of the file

The problem is OCA.Files.App.fileList.getModelForFile can not find the file and therefor continues with null, causing the following error in the console:

Unable to change favourite state TypeError: "fileInfoModel is null"

cc @skjnldsv

Activity

  1. added this to the Nextcloud 19 milestone on Mar 5, 2020
  2. skjnldsv commented on Mar 5, 2020

    @skjnldsv
    Member

    Stupid legacy code :p

  3. nickvergessen commented on Mar 5, 2020

    @nickvergessen
    MemberAuthor

    It could also be fixed by reducing the scope of the catch to the actual axios execution

  4. removed this from the Nextcloud 19 milestone on May 7, 2020
  5. szaimen commented on Jan 9, 2023

    @szaimen
    Contributor

    Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!

  6. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    and removed
    1. to developAccepted and waiting to be taken care of
    on Jan 9, 2023
  7. nickvergessen commented on Jan 10, 2023

    @nickvergessen
    MemberAuthor

    Also on master

  8. added
    1. to developAccepted and waiting to be taken care of
    and removed
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Jan 10, 2023
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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions