Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display error in top menu #307

Open
punkyard opened this issue Jul 30, 2022 · 7 comments
Open

display error in top menu #307

punkyard opened this issue Jul 30, 2022 · 7 comments

Comments

@punkyard
Copy link

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) ...
@nickvergessen
Copy link
Member

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?

@punkyard
Copy link
Author

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
Copy link
Author

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

@nickvergessen
Copy link
Member

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.

@punkyard
Copy link
Author

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

@nickvergessen
Copy link
Member

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

@punkyard
Copy link
Author

punkyard commented Nov 8, 2022

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 ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants