Skip to content

External Sites App: New user(s) cannot access a defined external app. #113

@kneiser

Description

@kneiser

Steps to reproduce

  1. External Sites application installed and related to a security group:

Site Name: Scanner
URL: https://site_IP_address/sites
Language: English (US)
Groups: scanGrp
Devices: Only in the browser
Icon: scanner.svg
Position: Header
Redirect: not checked

  1. Administrator created new user and assigned "scanGrp" membership.
  2. New user logs in with no problem.

Expected behaviour

After a user logs in (scanGrp assigned) the Scanner icon should be visible in the NC application bar.

Actual behaviour

  1. New user logs in no Scanner icon is visible in NC application bar.
  2. Existing users, prior to new user creation, have scanner icon and can access the external site as defined.
  3. When creating a "test user" on same problem occurs.

Suspect no problem with the External Sites setup, must be a data problem in MariaDB table(s)?

Server configuration detail

Operating system: Linux 4.9.0-7-686-pae #1 SMP Debian 4.9.110-1 (2018-07-05) i686

Webserver: Apache/2.4.25 (Debian) (apache2handler)

Database: mysql 10.1.26 (MariaDB)

PHP version: 7.0.30-0+deb9u1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, imagick, mysqlnd, PDO, xml, apcu, apc, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, intl, json, exif, mcrypt, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 13.0.5 - 13.0.5.2

Updated from an older Nextcloud/ownCloud or fresh install: Nextcloud

Where did you install Nextcloud from: Via NC updater.

Signing status

Array

List of activated apps
Enabled:
 - apporder: 0.4.1
 - audioplayer: 2.3.1
 - bookmarks: 0.11.0
 - bruteforcesettings: 1.1.0
 - calendar: 1.6.1
 - caniupdate: 0.1.3
 - comments: 1.3.0
 - contacts: 2.1.5
 - dav: 1.4.7
 - deck: 0.4.1
 - drawio: 0.9.0
 - external: 3.0.3
 - federatedfilesharing: 1.3.1
 - federation: 1.3.0
 - files: 1.8.0
 - files_external: 1.4.1
 - files_markdown: 2.0.4
 - files_pdfviewer: 1.2.1
 - files_reader: 1.2.3
 - files_sharing: 1.5.0
 - files_texteditor: 2.5.1
 - files_trashbin: 1.3.0
 - files_videoplayer: 1.2.0
 - flowupload: 0.0.7
 - gallery: 18.0.0
 - groupfolders: 1.2.2
 - issuetemplate: 0.3.0
 - logreader: 2.0.0
 - lookup_server_connector: 1.1.0
 - metadata: 0.6.0
 - nextcloud_announcements: 1.2.0
 - notifications: 2.1.2
 - oauth2: 1.1.1
 - password_policy: 1.3.0
 - provisioning_api: 1.3.0
 - serverinfo: 1.3.0
 - sharebymail: 1.3.0
 - survey_client: 1.1.0
 - systemtags: 1.3.0
 - theming: 1.4.5
 - twofactor_backupcodes: 1.2.3
 - updatenotification: 1.3.0
 - weather: 1.5.1
 - workflowengine: 1.3.0
Disabled:
 - activity
 - admin_audit
 - encryption
 - files_versions
 - firstrunwizard
 - user_external
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "REMOVED SENSITIVE VALUE"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "http:\/\/REMOVED SENSITIVE VALUE\/cloud",
    "overwriteprotocol": "https",
    "dbtype": "mysql",
    "version": "13.0.5.2",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "log_rotate_size": "100 MiB",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "trashbin_retention_obligation": "auto, 7",
    "defaultapp": "apporder",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "maintenance": false,
    "theme": "",
    "loglevel": 2,
    "updater.secret": "***REMOVED SENSITIVE VALUE***"
}

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

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

LDAP configuration (delete this part if not used)
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Operating system: Debian 9.5

Logs

Browser log
{"reqId":"OpTRYlQ7kBMKcQG4FL1C","level":2,"time":"2018-08-01T03:42:55+00:00","remoteAddr":"192.168.0.151","user":"--","app":"OC\\Log\\Rotate","method":"GET","url":"\/cloud\/cron.php","message":"Log file \"\/var\/files\/cloud\/data\/nextcloud.log\" was over 100 MiB bytes, moved to \"\/var\/files\/cloud\/data\/nextcloud.log.1\"","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
{"reqId":"MO8S0f0GtaOB9twlf9JO","level":2,"time":"2018-08-01T03:43:09+00:00","remoteAddr":"192.168.0.151","user":"new_user","app":"l10n","method":"GET","url":"\/cloud\/index.php\/apps\/drawio\/ajax\/settings","message":"Failed to load \/var\/www\/cloud\/apps\/drawio\/l10n\/en_GB.json - json error code: 4","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
{"reqId":"2pRpcNdb7kRatBIZPXcO","level":3,"time":"2018-08-01T03:43:30+00:00","remoteAddr":"192.168.0.151","user":"--","app":"PHP","method":"GET","url":"\/cloud\/index.php\/logout?requesttoken=fupqRfQytYq87s4NhdegpN1A\/avLsMVk6vHmRwhytgw%3D%3AOoUZJ6B2%2BMKIrLdX5pPM1JwHt%2BGd\/agIv7agbFIZ3ks%3D","message":"Module 'imagick' already loaded at Unknown#0","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
Nextcloud log
{"reqId":"OpTRYlQ7kBMKcQG4FL1C","level":2,"time":"2018-08-01T03:42:55+00:00","remoteAddr":"192.168.0.151","user":"--","app":"OC\\Log\\Rotate","method":"GET","url":"\/cloud\/cron.php","message":"Log file \"\/var\/files\/cloud\/data\/nextcloud.log\" was over 100 MiB bytes, moved to \"\/var\/files\/cloud\/data\/nextcloud.log.1\"","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
{"reqId":"MO8S0f0GtaOB9twlf9JO","level":2,"time":"2018-08-01T03:43:09+00:00","remoteAddr":"192.168.0.151","user":"new_user","app":"l10n","method":"GET","url":"\/cloud\/index.php\/apps\/drawio\/ajax\/settings","message":"Failed to load \/var\/www\/cloud\/apps\/drawio\/l10n\/en_GB.json - json error code: 4","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
{"reqId":"2pRpcNdb7kRatBIZPXcO","level":3,"time":"2018-08-01T03:43:30+00:00","remoteAddr":"192.168.0.151","user":"--","app":"PHP","method":"GET","url":"\/cloud\/index.php\/logout?requesttoken=fupqRfQytYq87s4NhdegpN1A\/avLsMVk6vHmRwhytgw%3D%3AOoUZJ6B2%2BMKIrLdX5pPM1JwHt%2BGd\/agIv7agbFIZ3ks%3D","message":"Module 'imagick' already loaded at Unknown#0","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
{"reqId":"5i5TzDSlUxV2ZgwQPgwD","level":3,"time":"2018-08-01T03:45:50+00:00","remoteAddr":"192.168.0.151","user":"admin","app":"no app in context","method":"GET","url":"\/cloud\/index.php\/settings\/user","message":"issuetemplate","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
{"reqId":"J8T4RntahKFaFgUtG68D","level":3,"time":"2018-08-01T03:45:54+00:00","remoteAddr":"192.168.0.151","user":"admin","app":"no app in context","method":"GET","url":"\/cloud\/index.php\/settings\/user\/additional","message":"issuetemplate","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
{"reqId":"8yqwpY4bzLUl6IQACkxm","level":3,"time":"2018-08-01T03:46:02+00:00","remoteAddr":"192.168.0.151","user":"admin","app":"no app in context","method":"GET","url":"\/cloud\/index.php\/settings\/admin\/logging","message":"issuetemplate","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
{"reqId":"RIx0GygroOjnUwWgz3LB","level":3,"time":"2018-08-01T03:46:05+00:00","remoteAddr":"192.168.0.151","user":"admin","app":"PHP","method":"GET","url":"\/cloud\/index.php\/apps\/apporder\/getOrder","message":"Module 'imagick' already loaded at Unknown#0","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
{"reqId":"7AYSmTXhWj9tKEg4u5DQ","level":3,"time":"2018-08-01T03:46:05+00:00","remoteAddr":"192.168.0.151","user":"admin","app":"PHP","method":"GET","url":"\/cloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Module 'imagick' already loaded at Unknown#0","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions