Skip to content

Having 2 apps paths, market does not uninstall properly the app #35742

Open
@davitol

Description

@davitol

Note

Having this config.php file configuration for apps path:

$CONFIG = array (
  'datadirectory' => '/mnt/data/files',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/owncloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/owncloud/custom',
      'url' => '/custom',
      'writable' => true,
    ),

Steps to reproduce

1 - As admin install a newer version of an app via occ market:install -l app.tar.gz
2 - Check the app is installed in owncloud/custom/and it contains the newer version
3 - Check the app owncloud/app/ keeps the old version version
4 - Uninstall the app via occ market:uninstall app

Expected behaviour

The app should be disabled and uninstalled

Actual behaviour

The app is not disabled and it keeps in the DB. The code of the newer version was deleted.

| app      | enabled                   | yes                                |
| app       | installed_version         | newest version |

Command occ app:list shows the app is enabled and installed (i guess it takes the info from the DB)

Server configuration

Operating system:
Ubuntu 16.04

Web server:
Apache

Database:
MySQL

PHP version:
7.1

ownCloud version:

ownCloud 10.2.1 RC3
Updated from an older ownCloud or fresh install:
Fresh

Are you using external storage, if yes which one:
No

Are you using encryption:
No

Logs

No logs in owncloud.log

Client configuration

browser

Firefox

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions