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

First sharing to a Guest does not work / Guest app does not work #163

Closed
szaimen opened this issue Aug 28, 2019 · 4 comments
Closed

First sharing to a Guest does not work / Guest app does not work #163

szaimen opened this issue Aug 28, 2019 · 4 comments

Comments

@szaimen
Copy link

szaimen commented Aug 28, 2019

Steps to reproduce

  1. install the guest app from the appstore
  2. Try to share to a new user and enter a name of a not already existing user

Expected behaviour

  1. I should then see the "create guest account"-popup

Actual behaviour

  1. A text-bubble appears with the text "no users and groups found with that name" and the loading-wheel spins until the end of time. (also nothing happens, if I click on the spinning wheel or click enter on the keyboard. (klicking enter just results in greying out the field)

Server configuration detail

Operating system: Linux 5.0.0-25-generic #26~18.04.1-Ubuntu SMP Thu Aug 1 13:51:02 UTC 2019 x86_64

Webserver: Apache (fpm-fcgi)

Database: mysql 5.7.27

PHP version:

7.2.20
Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, bz2, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, pcntl, PDO, session, pdo_sqlite, posix, Reflection, standard, SimpleXML, mysqlnd, exif, tokenizer, xml, xmlreader, xmlwriter, zip, pdo_mysql, cgi-fcgi, redis, Zend OPcache

Nextcloud version: 16.0.3 - 16.0.3.0

Updated from an older Nextcloud/ownCloud or fresh install: updated over the time starting at 15.0.8

Where did you install Nextcloud from: snap-store

Signing status

Array
(
)

List of activated apps
Enabled:
 - activity: 2.9.1
 - admin_audit: 1.6.0
 - announcementcenter: 3.5.1
 - apporder: 0.7.1
 - bookmarks: 1.1.1
 - calendar: 1.7.0
 - circles: 0.17.7
 - cloud_federation_api: 0.2.0
 - contacts: 3.1.3
 - cospend: 0.1.0
 - dav: 1.9.2
 - deck: 0.6.6
 - drawio: 0.9.3
 - event_update_notification: 0.3.4
 - external: 3.3.0
 - extract: 1.2.0
 - federatedfilesharing: 1.6.0
 - files: 1.11.0
 - files_3d: 0.1.0
 - files_downloadactivity: 1.5.0
 - files_ebookreader: 0.0.1
 - files_external: 1.7.0
 - files_linkeditor: 1.0.10
 - files_mindmap: 0.0.15
 - files_pdfviewer: 1.5.0
 - files_rightclick: 0.15.1
 - files_sharing: 1.8.0
 - files_trashbin: 1.6.0
 - files_versions: 1.9.0
 - files_videoplayer: 1.5.0
 - firstrunwizard: 2.5.0
 - forms: 1.0.3
 - gallery: 18.3.0
 - guests: 1.1.1
 - impersonate: 1.3.0
 - issuetemplate: 0.5.0
 - keeweb: 0.5.1
 - logreader: 2.1.0
 - lookup_server_connector: 1.4.0
 - metadata: 0.9.0
 - music: 0.10.0
 - nextcloud_announcements: 1.5.0
 - notes: 3.0.1
 - notifications: 2.4.1
 - oauth2: 1.4.2
 - password_policy: 1.6.0
 - passwords: 2019.8.1
 - polls: 0.10.2
 - previewgenerator: 2.1.0
 - privacy: 1.0.0
 - provisioning_api: 1.6.0
 - quickaccesssorting: 1.0.1
 - radio: 0.6.5
 - rainloop: 6.0.3
 - ransomware_detection: 0.5.2
 - ransomware_protection: 1.4.0
 - recommendations: 0.4.0
 - serverinfo: 1.6.0
 - spreed: 6.0.4
 - suspicious_login: 1.0.0
 - tasks: 0.11.1
 - telephoneprovider: 1.0.2
 - text: 1.0.2
 - theming: 1.7.0
 - twofactor_admin: 0.4.0
 - twofactor_backupcodes: 1.5.0
 - twofactor_nextcloud_notification: 1.1.2
 - twofactor_totp: 3.0.1
 - video_converter: 0.1.0
 - viewer: 1.0.0
 - workflowengine: 1.6.0
Disabled:
 - accessibility
 - comments
 - encryption
 - federation
 - files_texteditor
 - sharebymail
 - sharerenamer
 - support
 - survey_client
 - systemtags
 - user_ldap

Configuration (config/config.php)
{
    "apps_paths": [
        {
            "path": "\/snap\/nextcloud\/current\/htdocs\/apps",
            "url": "\/apps",
            "writable": false
        },
        {
            "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
            "url": "\/extra-apps",
            "writable": true
        }
    ],
    "supportedDatabases": [
        "mysql"
    ],
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0
    },
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "***REMOVED SENSITIVE VALUE***"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "16.0.3.0",
    "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "maintenance": false,
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "ssl",
    "mail_sendmailmode": "smtp",
    "mail_smtpport": "465",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "trashbin_retention_obligation": "disabled",
    "loglevel": 2,
    "share_folder": "\/Shared",
    "preview_max_x": 1536,
    "preview_max_y": 1536,
    "preview_max_scale_factor": 1,
    "enabledPreviewProviders": [
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\HEIC",
        "OC\\Preview\\BMP",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\TIFF",
        "OC\\Preview\\Illustrator",
        "OC\\Preview\\Movie",
        "OC\\Preview\\Photoshop",
        "OC\\Preview\\SVG"
    ],
    "app_install_overwrite": [
        "occweb"
    ],
    "theme": ""
}

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

Are you using encryption:

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

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36

Operating system: Windows 10

Logs

Web server error log
Insert your web server log here 
Nextcloud 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) ...
@wiswedel wiswedel transferred this issue from nextcloud/server Aug 29, 2019
@kesselb
Copy link
Contributor

kesselb commented Sep 1, 2019

Thank you for reporting this issue 👍

I will need your browser console log to investigate this issue. Open your console, reload your page and/or do the action leading to this issue and copy/paste the log in this thread.

How to access your browser console (Click to expand)

Chrome

  • Press either CTRL + SHIFT + J to open the “console” tab of the Developer Tools.
  • Alternative method:
    1. Press either CTRL + SHIFT + I or F12 to open the Developer Tools.
    2. Click the “console” tab.

Safari

  • Press CMD + ALT + I to open the Web Inspector.
  • See Chrome’s step 2. (Chrome and Safari have pretty much identical dev tools.)

IE9

  1. Press F12 to open the developer tools.
  2. Click the “console” tab.

Firefox

  • Press CTRL + SHIFT + K to open the Web console (COMMAND + SHIFT + K on Macs).
  • or, if Firebug is installed (recommended):
    1. Press F12 to open Firebug.
    2. Click on the “console” tab.

Opera

  1. Press CTRL + SHIFT + I to open Dragonfly.
  2. Click on the “console” tab.

@szaimen
Copy link
Author

szaimen commented Sep 1, 2019

Here are the console logs:
content.js:10 [Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: nextHopProtocol in Navigation Timing 2. https://www.chromestatus.com/features/5637885046816768.
(anonymous) @ content.js:10
content.js:11 [Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: nextHopProtocol in Navigation Timing 2. https://www.chromestatus.com/features/5637885046816768.
(anonymous) @ content.js:11
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
sorting.js?v=f9d66d57-321:90 customorder
Viewer.vue:347 The following handler is already registered Object
registerHandler @ Viewer.vue:347
2globals.js:30 The escapeHTML library is deprecated! It will be removed in nextcloud 19.
i @ globals.js:30
8globals.js:30 The humanFileSize library is deprecated! It will be removed in nextcloud 19.
i @ globals.js:30
domain.com/:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at Object.success (sorting.js?v=f9d66d57-321:223)
at u (jquery.js:3099)
at Object.fireWith [as resolveWith] (jquery.js:3211)
at k (jquery.js:8264)
at XMLHttpRequest. (jquery.js:8605)
7globals.js:30 The escapeHTML library is deprecated! It will be removed in nextcloud 19.
i @ globals.js:30
globals.js:30 The humanFileSize library is deprecated! It will be removed in nextcloud 19.
i @ globals.js:30
sharedialogview.js:683 empty search term -> using recommendations
sharedialogview.js:664 recommendations Array(0)
sharedialogview.js:671 no sharing recommendations found
ShareDialogPlugin.js:16 Uncaught TypeError: Cannot read property 'some' of undefined
at ShareDialogPlugin.js:16
at Object. (sharedialogview.js:672)
at u (jquery.js:3099)
at Object.fireWith [as resolveWith] (jquery.js:3211)
at Object.r. [as resolve] (jquery.js:3301)
at Object.success (sharedialogview.js:641)
at u (jquery.js:3099)
at Object.fireWith [as resolveWith] (jquery.js:3211)
at k (jquery.js:8264)
at XMLHttpRequest. (jquery.js:8605)
globals.js:30 The escapeHTML library is deprecated! It will be removed in nextcloud 19.
i @ globals.js:30
tooltip.js:32 Deprecated call $.tooltip('fixTitle') has been deprecated and should be removed
e.tooltip @ tooltip.js:32
ShareDialogPlugin.js:16 Uncaught TypeError: Cannot read property 'some' of undefined
at ShareDialogPlugin.js:16
at Object. (sharedialogview.js:763)
at u (jquery.js:3099)
at Object.fireWith [as resolveWith] (jquery.js:3211)
at Object.r. [as resolve] (jquery.js:3301)
at Object.success (sharedialogview.js:387)
at u (jquery.js:3099)
at Object.fireWith [as resolveWith] (jquery.js:3211)
at k (jquery.js:8264)
at XMLHttpRequest. (jquery.js:8605)

and here a screenshot:
image

Thank you for your help!

@szaimen
Copy link
Author

szaimen commented Sep 28, 2019

So I found my configuration-error:
I had the sharebymail-app disabled so that couldn't have worked.
I think it is just logical to habe this enabled to get it to work correctly but I think there should be a hint that sharebymail must be enabled.

Also I wonder why I am just able to create guest accounts for users, for which I have a mail-address inside my conatcs-app. So if I enter a random name, I am not able to create a guest account. So i always have to enter a name, which I have an emai-address for, and change the name and emailaddress afterwards, when the popup opens.

here is a new screenshot of the errors if I enter a name, that has no mailaddress in my contacts-app:
image

@PVince81
Copy link
Member

PVince81 commented Aug 6, 2021

@szaimen closing as obsolete as the ticket is from 2019.

now, I won't ask you to test with latest master as that one is also broken, am working on it: #699

@PVince81 PVince81 closed this as completed Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants