Skip to content

Can not rename folder twice in Favorites #12944

Closed

Description

@dttpy

Steps to reproduce

  1. create a folder "test"
  2. tag "test" as favorite
  3. go into "test" and create a subfolder "aaa"
  4. mark "aaa" as favorite
  5. click "Favorites" button on the sidebar
  6. rename "aaa" into "bbb" in the favorites list
  7. rename "bbb" into "ccc" in the favorites list

Expected behaviour

by step 6: the folder is renamed and star icon is still yellow
by step 7: the folder can be renamed

Actual behaviour

by step 6: the folder is renamed but star icon tunes to grey
by step 7: the folder can not be renamed, because "bbb could not be renamed as it has been deleted"

Server configuration

Operating system: Ubuntu 13.10

Web server: apache 2.4.6 (Ubuntu)

Database: SQLite

PHP version: 5.5.3-1ubuntu2.3

ownCloud version: owncloud 8 git master, commit 5c6e082

Updated from an older ownCloud or fresh install:

List of activated apps: standard apps of owncloud

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: no
Are you using encryption: yes

Client configuration

Browser: firefox 34.0.5

Operating system: ubuntu 13.10

Logs

Web server error log

ownCloud log (data/owncloud.log)

{"reqId":"5c00793d3b44a659285ec93879585395","remoteAddr":"192.168.1.34","app":"core","message":"unable to rename, file does not exists : files_encryption\/keys\/isittrue\/aaa\/","level":3,"time":"2014-11-27T00:25:25+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/rename.php?dir=%2Fisittrue&newname=bbb&file=aaa"}


Browser log

Activity

  1. dttpy commented on Dec 18, 2014

    @dttpy
    Author
  2. PVince81 commented on Dec 18, 2014

    @PVince81
    Contributor

    The problem is that no "path" attribute is returned in the JSON object returned by rename.php.
    Also it doesn't contain the tags so that disables the star.

    A workaround would be to merge the current object with the new one.
    Or change the backend to return the proper info.

  3. self-assigned this
    on Jan 9, 2015
  4. PVince81 commented on Jan 12, 2015

    @PVince81
    Contributor

    Fix is here: #13272

  5. added this to the milestone on Jan 12, 2015
  6. locked as resolved and limited conversation to collaborators on Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions