Skip to content

Quota missing in "get user" API request before the user logged in first #7212

Closed

Description

@dachinat

When having user created from Nextcloud web interface a response from API request

curl --http1.1 -u myuser:mypass -X GET 'https://myhost.com/ocs/v1.php/cloud/users/myuser' -H "OCS-APIRequest: true"

contains

<quota>
   <free>53687091200</free>
   <used>0</used>
   <total>53687091200</total>
   <relative>0</relative>
   <quota>53687091200</quota>
</quota>

However, if I create an user with CLI

curl --http1.1 -u myuser:mypass -X POST 'https://myhost.com/ocs/v1.php/cloud/users' -d 'userid=myuser1&password=somePwd!1' -H "OCS-APIRequest: true"

and update quota

curl --http1.1 -u myuser:mypass -X PUT 'https://myhost.com/ocs/v1.php/cloud/users/myuser1' -d 'key=quota&value=10GB' -H "OCS-APIRequest: true"

Then quota in the response when retrieving user is

<quota/>

It is being changed if viewed with web interface, though.

I have tried this with v2.php API as well.

Activity

  1. dachinat commented on Nov 17, 2017

    @dachinat
    Author

    So, I found out that an user is required to sign-in for <quota/> in response to become data having values. Is there any way to populate data in quota without waiting for an user to login?

  2. MorrisJobke commented on Nov 23, 2017

    @MorrisJobke
    Member

    So, I found out that an user is required to sign-in for in response to become data having values. Is there any way to populate data in quota without waiting for an user to login?

    What user backend do you use?

  3. dachinat commented on Nov 23, 2017

    @dachinat
    Author

    I'm using MariaDB 10.2 Database backend

  4. MorrisJobke commented on Nov 23, 2017

    @MorrisJobke
    Member

    I'm using MariaDB 10.2 Database backend

    I meant for user management. Do you use user_saml or user_ldap? Best would be if you fill out the issue template: https://raw.githubusercontent.com/nextcloud/server/master/issue_template.md

  5. dachinat commented on Nov 23, 2017

    @dachinat
    Author

    I'm using LDAP user and group backend. Thanks I'll fill it out.

  6. dachinat commented on Nov 23, 2017

    @dachinat
    Author

    Steps to reproduce

    1. Create an user with OCS API
    curl --http1.1 -u myuser:mypass -X POST 'https://myhost.com/ocs/v1.php/cloud/users' -d 'userid=myuser1&password=somePwd!1' -H "OCS-APIRequest: true"
    
    1. Query user information with OCS API
    curl --http1.1 -u myuser:mypass -X GET 'https://myhost.com/ocs/v1.php/cloud/users/myuser' -H "OCS-APIRequest: true"
    

    Expected behavior

    Quota in API response (GET /users/myuser) should not be empty

    Actual behavior

    Quota in API response (GET /users/myuser) is <quota/>

    Server configuration

    CentOS Linux release 7.4.1708 (Core)

    nginx/1.12.2

    10.2.10-MariaDB

    PHP 7.1.11

    Nextcloud 12.0.3

    Updated from older Nextcloud version

    Installed 12.0.2 from tar.bz2 https://download.nextcloud.com/server/releases

    Signing status:

    Signing status
    No errors have been found.
    

    List of activated apps:

    App list
    Enabled:
      - activity: 2.5.2
      - admin_notifications: 1.0.0
      - comments: 1.2.0
      - dav: 1.3.0
      - encryption: 1.6.0
      - external: 2.0.3
      - federatedfilesharing: 1.2.0
      - federation: 1.2.0
      - files: 1.7.2
      - files_pdfviewer: 1.1.1
      - files_sharing: 1.4.0
      - files_texteditor: 2.4.1
      - files_trashbin: 1.2.0
      - files_versions: 1.5.0
      - files_videoplayer: 1.1.0
      - firstrunwizard: 2.1
      - gallery: 17.0.0
      - logreader: 2.0.0
      - lookup_server_connector: 1.0.0
      - nextcloud_announcements: 1.1
      - notifications: 2.0.0
      - oauth2: 1.0.5
      - password_policy: 1.2.2
      - provisioning_api: 1.2.0
      - quota_warning: 1.1.1
      - serverinfo: 1.2.0
      - sharebymail: 1.2.0
      - survey_client: 1.0.0
      - systemtags: 1.2.0
      - theming: 1.3.0
      - twofactor_backupcodes: 1.1.1
      - unsplash: 1.0.5
      - updatenotification: 1.2.0
      - user_ldap: true
      - workflowengine: 1.2.0
    Disabled:
      - admin_audit
      - files_external
      - user_external
    

    Nextcloud configuration:

    Config report
    {
        "system": {
            "passwordsalt": "***REMOVED SENSITIVE VALUE***",
            "secret": "***REMOVED SENSITIVE VALUE***",
            "trusted_domains": [
                "***REMOVED SENSITIVE VALUE***"
            ],
            "datadirectory": "\/data\/nextcloud",
            "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
            "dbtype": "mysql",
            "version": "12.0.3.3",
            "dbname": "***REMOVED SENSITIVE VALUE***",
            "dbhost": "localhost",
            "dbport": "",
            "dbtableprefix": "oc_",
            "mysql.utf8mb4": true,
            "dbuser": "***REMOVED SENSITIVE VALUE***",
            "dbpassword": "***REMOVED SENSITIVE VALUE***",
            "installed": true,
            "instanceid": "ocny5rihhfu4",
            "memcache.local": "\\OC\\Memcache\\APCu",
            "memcache.locking": "\\OC\\Memcache\\Redis",
            "redis": {
                "host": "localhost",
                "port": "6379"
            },
            "asset-pipeline.enabled": "true",
            "skeletondirectory": "",
            "mail_smtpmode": "smtp",
            "mail_smtpauthtype": "LOGIN",
            "mail_from_address": "cloud",
            "mail_domain": "***REMOVED SENSITIVE VALUE***",
            "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
            "mail_smtpport": "465",
            "mail_smtpauth": "1",
            "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
            "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
            "mail_smtpsecure": "ssl",
            "maintenance": false,
            "theme": "",
            "loglevel": 2,
            "enable_previews": false,
            "updater.release.channel": "stable"
        }
    }
    

    Are you using external storage, if yes which one: local/smb/sftp/...

    Not yet

    Are you using encryption:

    Yes

    Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

    No

    Client configuration

    Browser:

    Version 62.0.3202.94

    Operating system:

    macOs High Sierra 10.13.2 Beta

    Logs

    Web server error log

    Web server error log
    *removed ip*- - [23/Nov/2017:19:23:48 +0400] "GET /apps/encryption/ajax/getStatus HTTP/2.0" 200 77 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:23:48 +0400] "GET /settings/apps/categories HTTP/2.0" 200 320 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:23:48 +0400] "GET /settings/apps/list?category=installed HTTP/2.0" 200 8839 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:24:18 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:24:48 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:25:18 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:25:48 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:26:18 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:26:48 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:27:18 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:27:48 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:28:18 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:28:48 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:29:18 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:29:48 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:30:19 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:30:48 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:31:18 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:31:48 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:32:05 +0400] "GET /settings/admin HTTP/2.0" 200 6046 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:32:06 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:32:06 +0400] "PROPFIND /remote.php/webdav HTTP/2.0" 207 563 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:32:06 +0400] "GET /apps/encryption/ajax/getStatus HTTP/2.0" 200 77 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:32:06 +0400] "GET /heartbeat HTTP/2.0" 200 20 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:32:14 +0400] "GET /settings/ajax/checksetup HTTP/2.0" 200 356 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:32:36 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:33:06 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:33:45 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:34:06 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:34:36 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:35:06 +0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:35:36 +0400] "GET /ocs/v2*removed ip*.php/apps/notifications/api/v2/notifications HTTP/2.0" 200 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:35:36 +0400] "GET /index.php/settings/integrity/failed HTTP/2.0" 200 26 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:35:36 +0400] "GET /favicon.ico HTTP/2.0" 302 0 "https://*removed host*/index.php/settings/integrity/failed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip*- - [23/Nov/2017:19:35:36 +0400] "GET /apps/files/ HTTP/2.0" 200 6399 "https://*removed host*/index.php/settings/integrity/failed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" "-"
    *removed ip* - - [23/Nov/2017:19:42:43 +0400] "GET / HTTP/1.1" 301 178 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36" "-"
    *removed ip* - - [23/Nov/2017:19:42:45 +0400] "GET / HTTP/2.0" 302 0 "http://*removed ip*/" "Go-http-client/2.0" "-"
    *removed ip* - - [23/Nov/2017:19:42:46 +0400] "GET /login HTTP/2.0" 200 7695 "*removed ip* "Go-http-client/2.0" "-"
    

    This was last part from access.log. error.log was empty

    Nextcloud log (data/nextcloud.log)

    Nextcloud log
    {"reqId":"S9F1o0Cqsgg5NUpiD3Pz","level":3,"time":"2017-11-21T02:45:06+00:00","remoteAddr":"*removed ip*","user":"support","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/cloud\/apps\/external","message":"XMLWriter::writeAttribute() expects parameter 2 to be string, array given at \/var\/www\/nextcloud\/lib\/private\/legacy\/api.php#395","userAgent":"Ruby","version":"12.0.3.3"}
    {"reqId":"S9F1o0Cqsgg5NUpiD3Pz","level":3,"time":"2017-11-21T02:45:06+00:00","remoteAddr":"*removed ip*","user":"support","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/cloud\/apps\/external","message":"XMLWriter::writeAttribute() expects parameter 2 to be string, array given at \/var\/www\/nextcloud\/lib\/private\/legacy\/api.php#395","userAgent":"Ruby","version":"12.0.3.3"}
    {"reqId":"CP1xMlf1RROjxpm2kp44","level":3,"time":"2017-11-21T02:45:37+00:00","remoteAddr":"*removed ip*","user":"support","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/cloud\/apps\/external","message":"XMLWriter::writeAttribute() expects parameter 2 to be string, array given at \/var\/www\/nextcloud\/lib\/private\/legacy\/api.php#395","userAgent":"Ruby","version":"12.0.3.3"}
    {"reqId":"CP1xMlf1RROjxpm2kp44","level":3,"time":"2017-11-21T02:45:37+00:00","remoteAddr":"*removed ip*","user":"support","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/cloud\/apps\/external","message":"XMLWriter::writeAttribute() expects parameter 2 to be string, array given at \/var\/www\/nextcloud\/lib\/private\/legacy\/api.php#395","userAgent":"Ruby","version":"12.0.3.3"}
    {"reqId":"aq0lw0rj8axbqW31672e","level":3,"time":"2017-11-21T03:04:39+00:00","remoteAddr":"*removed ip*","user":"test2","app":"PHP","method":"MOVE","url":"\/remote.php\/webdav\/","message":"rename(\/data\/nextcloud\/test2\/files,\/data\/nextcloud\/test2\/files\/asd): Invalid argument at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#265","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/62.0.3202.94 Safari\/537.36","version":"12.0.3.3"}
    {"reqId":"TeirSdosI3NA86PD9Epz","level":2,"time":"2017-11-21T03:10:32+00:00","remoteAddr":"*removed ip*","user":"--","app":"no app in context","method":"POST","url":"\/ocs\/v2.php\/apps\/activity\/api\/v2\/remote\/FschXJEWEfJn2qL","message":"[\"FschXJEWEfJn2qL\",{\"type\":\"Person\",\"name\":\"test1\"},{\"type\":\"Person\",\"name\":\"[email protected]\"},\"Delete\",\"2017-11-21T02:56:26+00:00\",{\"type\":\"Document\",\"name\":\"\"},[],[]]","userAgent":"Nextcloud Server Crawler","version":"12.0.3.3"}
    {"reqId":"C0pgDcEBbi4yRlVZaCLH","level":2,"time":"2017-11-21T03:47:14+00:00","remoteAddr":"*removed ip*","user":"--","app":"core","method":"GET","url":"\/admin\/config.php","message":"Trusted domain error. \"*removed ip*\" tried to access using \"*removed ip*\" as host.","userAgent":"curl\/7.15.5 (x86_64-redhat-linux-gnu) libcurl\/7.15.5 OpenSSL\/0.9.8b zlib\/1.2.3 libidn\/0.6.5","version":"12.0.3.3"}
    {"reqId":"eysy2krwaRQw3hlt6PJX","level":3,"time":"2017-11-21T04:18:41+00:00","remoteAddr":"*removed ip*","user":"test2","app":"PHP","method":"MOVE","url":"\/remote.php\/webdav\/test","message":"Undefined offset: 3 at \/var\/www\/nextcloud\/apps\/activity\/lib\/FilesHooks.php#620","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/62.0.3202.94 Safari\/537.36","version":"12.0.3.3"}
    {"reqId":"xhAbQA1x6kbna7sEiPJ4","level":2,"time":"2017-11-21T04:18:55+00:00","remoteAddr":"*removed ip*","user":"dachi","app":"core","method":"POST","url":"\/login\/confirm","message":"Login failed: 'dachi' (Remote IP: '*removed ip*')","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/604.4.6 (KHTML, like Gecko) Version\/11.0.2 Safari\/604.4.6","version":"12.0.3.3"}
    {"reqId":"6pFTWnhskDn7SDUlZ5EH","level":2,"time":"2017-11-21T07:26:45+00:00","remoteAddr":"*removed ip*","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"*removed ip*\" tried to access using \"*removed ip*\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/45.0.2454.101 Safari\/537.36","version":"12.0.3.3"}
    {"reqId":"OtBufIa2I1yk2MUaLau4","level":2,"time":"2017-11-21T09:46:25+00:00","remoteAddr":"*removed ip*","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"*removed ip*\" tried to access using \"*removed ip*\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/50.0.2661.102 Safari\/537.36","version":"12.0.3.3"}
    {"reqId":"odW1R5UFJ3cX48u2LYAE","level":2,"time":"2017-11-21T13:24:52+00:00","remoteAddr":"*removed ip*","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"*removed ip*\" tried to access using \"*removed ip*\" as host.","userAgent":"--","version":"12.0.3.3"}
    {"reqId":"BsVH5KPxE8vZjpv3S0M8","level":3,"time":"2017-11-21T19:10:01+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"test2 doesn't exist, can't verify user data.","userAgent":"--","version":"12.0.3.3"}
    {"reqId":"d57pNvfTTGAf9qDfMm45","level":2,"time":"2017-11-21T20:12:59+00:00","remoteAddr":"*removed ip*","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"*removed ip*\" tried to access using \"*removed ip*\" as host.","userAgent":"--","version":"12.0.3.3"}
    {"reqId":"XV90zFmr4FTyiZlEgJvC","level":2,"time":"2017-11-21T20:12:59+00:00","remoteAddr":"*removed ip*","user":"--","app":"core","method":"HEAD","url":"\/","message":"Trusted domain error. \"*removed ip*\" tried to access using \"*removed ip*\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 6.1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/36.0.1985.125 Safari\/537.36","version":"12.0.3.3"}
    {"reqId":"8ufROxm1gFdhVfFESsCT","level":2,"time":"2017-11-21T20:13:00+00:00","remoteAddr":"*removed ip*","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"*removed ip*\" tried to access using \"*removed ip*\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 6.1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/36.0.1985.125 Safari\/537.36","version":"12.0.3.3"}
    {"reqId":"KrBuJdWlkbrdsy0Y18n5","level":3,"time":"2017-11-21T21:10:02+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"[email protected] doesn't exist, can't verify user data.","userAgent":"--","version":"12.0.3.3"}
    {"reqId":"KrBuJdWlkbrdsy0Y18n5","level":3,"time":"2017-11-21T21:10:02+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"[email protected] doesn't exist, can't verify user data.","userAgent":"--","version":"12.0.3.3"}
    {"reqId":"KrBuJdWlkbrdsy0Y18n5","level":3,"time":"2017-11-21T21:10:12+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"[email protected] doesn't exist, can't verify user data.","userAgent":"--","version":"12.0.3.3"}
    {"reqId":"VJ99b8PqG3fvbBE74jH8","level":3,"time":"2017-11-21T22:10:02+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"[email protected] doesn't exist, can't verify user data.","userAgent":"--","version":"12.0.3.3"}
    {"reqId":"6m0IiPvDI726L9JaAuTk","level":2,"time":"2017-11-22T00:59:49+00:00","remoteAddr":"*removed ip*","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"*removed ip*\" tried to access using \"*removed ip*\" as host.","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.3.3"}
    {"reqId":"Q1NgCeDKluNgwAVBDzkp","level":2,"time":"2017-11-22T03:42:59+00:00","remoteAddr":"*removed ip*,"user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"*removed ip*\" tried to access using \"cloud.novabyte.co\" as host.","userAgent":"--","version":"12.0.3.3"}
    {"reqId":"3gRjL8Im2zsh5T2TGefN","level":2,"time":"2017-11-22T06:33:45+00:00","remoteAddr":"*removed ip*","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"*removed ip*\" tried to access using \"*removed ip*\" as host.","userAgent":"Mozilla\/5.0 zgrab\/0.x","version":"12.0.3.3"}
    
  7. MorrisJobke commented on Nov 23, 2017

    @MorrisJobke
    Member

    I'm using LDAP user and group backend. Thanks I'll fill it out.

    cc @nextcloud/ldap

    I guess for LDAP there is not much we can do here, because we fetch all user info for LDAP users on their first login to not overload the server by fetching all user data at once.

  8. MorrisJobke commented on Nov 23, 2017

    @MorrisJobke
    Member

    Seems to be related to #3068 and #5461

  9. blizzz commented on Nov 24, 2017

    @blizzz
    Member

    Sorry, what @dachinat describes is that users are being created and requested locally.

  10. blizzz commented on Nov 24, 2017

    @blizzz
    Member

    An empty data set is returned only, when a NotFoundException occurs during teardownFS, setupFS or, and most likely (at least the method signature says it is throwing it) getStorageInfo. This happens, when \OC\Files\Filesystem::getFileInfo() does not return an \OCP\Files\FileInfo.

    The filesystem will only be instantiated (e.g. skeleton files copied over) first when the user login happens. All returned values are computed based on the root dir however.

    One only "solution" would be to force file system initialization at this stage. But that's not really cool.
    The other way is to populate the other fields as good as you can. You know, everything is free and nothing is used. The quota can be read from the user (and default to unlimited). But you cannot figure out the total space without knowing the storage.

  11. dachinat commented on Nov 24, 2017

    @dachinat
    Author

    @blizzz thanks

  12. changed the title [-]Quota missing in "get user" API request after update[/-] [+]Quota missing in "get user" API request before the user logged in first[/+] on Mar 16, 2018
  13. MorrisJobke commented on Mar 21, 2018

    @MorrisJobke
    Member

    Fix is in #8926

  14. self-assigned this
    on Mar 21, 2018
  15. added this to the Nextcloud 14 milestone on Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions