Skip to content

oc_filecache not cleared after user deletion #11545

Closed

Description

@PVince81

Steps to reproduce

  1. Create a user "user1"
  2. Login as "user1" and create a file "user1.txt"
  3. Login as admin
  4. Delete the user and navigate away
  5. Check the tables oc_storages and oc_filecache

Expected result

User's storage entry is gone.
Filecache entries are gone.

Actual result

User's storage entry is gone.
Filecache still contains "user1.txt"

This is a programming error: the file cache is cleared too late when the numeric id isn't available any more.

PR is on the way.

Activity

  1. PVince81 commented on Oct 13, 2014

    @PVince81
    ContributorAuthor

    Versions

    Observed on OC git master 4b9465b by reading the code

  2. locked as resolved and limited conversation to collaborators on Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions