external icon indicating copy to clipboard operation
external copied to clipboard

display error in top menu

Open punkyard opened this issue 3 years ago • 7 comments

Steps to reproduce

  1. install app
  2. limit to group 'example'
  3. assigning users to group 'example'

Expected behaviour

users outside this group shouldn't see the external links in the top menu

Actual behaviour

a broken icon remains in the top menu for users not member of 'example' the icon is not clickable and doesn't appear in the settings of AppOrder

Server configuration

Operating system: ubuntu

Web server: apache2

Database: maria

PHP version: 8,1 (but is does it too in 7.4)

Nextcloud version: 24.0.3

Where did you install Nextcloud from: stable origine trhough hestia panel (but it does it with manual install too)

List of activated apps: .. lots

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

"system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "2": "kolab.koraland.net"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "24.0.3.2",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "documentserver_community"

Client configuration

Browser: brave safari

Operating system: mac os mojave

Logs

Nextcloud log (data/owncloud.log)

Insert your Nextcloud log here

Browser log

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

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

punkyard avatar Jul 30 '22 18:07 punkyard

I can not reproduce this. Can you please share your config (Screenshot of the broken entry and the Icon list below) as well as a screenshot of the "not a group member" with the broken icon in the topbar?

nickvergessen avatar Aug 01 '22 09:08 nickvergessen

hi here the screenshots:

menu of the External sites app, Limit to group:

Capture d’écran 2022-08-19 à 15 55 45

top menu of the admin user, part of the admin group, allowed to use the app:

Capture d’écran 2022-08-19 à 15 54 57

top menu of a user which is not in an allowed group: (icon shows a question mark instead of the world icon)

Capture d’écran 2022-08-19 à 15 57 42

punkyard avatar Aug 19 '22 14:08 punkyard

clicking the question mark will bring message: "Could not fetch data"

punkyard avatar Aug 19 '22 14:08 punkyard

Without the json array from the config report we can not help you further. It works fine here. Entries feom other groups are not registered at all, so the can also not show a broken icon.

nickvergessen avatar Aug 19 '22 14:08 nickvergessen

what is the json array? would u like me to look further somewhere?

punkyard avatar Aug 30 '22 08:08 punkyard

I would need the result of this database query:

SELECT `configvalue` FROM `oc_appconfig` WHERE `appid` = 'external' AND `configkey` = 'sites';

If you don't have access to the database, you should also be able to get it from the command line:

sudo -u www-data php occ config:app:get external sites

nickvergessen avatar Aug 30 '22 08:08 nickvergessen

hi sorry, i had lost track of this thread

is this the answer you would like?

{"1":{"id":1,"name":"aide","url":"https://kolab.koraland.net/apps/collectives/p/AWt7zweNDsrNPq7/aide","lang":"","type":"link","device":"","icon":"external.svg","groups":["everyone"],"redirect":false}}

occ command did not work ..

punkyard avatar Nov 08 '22 18:11 punkyard