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

New Created Users can NOT ACCESS shared & system example files after upgrade OC902 to NC905 #169

Closed
githubos1 opened this issue Jun 20, 2016 · 3 comments

Comments

@githubos1
Copy link

githubos1 commented Jun 20, 2016

Just created some new users (as admin as well as through REGISTRATION app)

those users can not access/view the system installed sample pictures (SabFrancisco,Squirrel.jpg) and the example.odt document.

Also they can not access shared files (in my case pictures from another, in OC9 created user using a GROUP SHARE - not the USERNAME) - Shared directories and filenames are visible to them though !!

New Files (e.g. a Text file can be created and also afterwards accessed and read by the new user

LOG file attached as TXT upload !!

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
MORE INFO ADDED 15:35CET
My issue seems to be also connected with GROUPS..
the previous Shares as described before where given using a group which was created under OC9022. Now, when I create a new group under NC905 and add this group to certain users, everything looks fine in the admin screen (I can tag and untag the group for any user old and new users) BUT, none of the newly created groups are visible to general users when trying to share folders and files (these newly created groups do not seem to exist!!)

ALSO,
sharing files directly with a user (i.e. the username/id) does work !! For old and new users !!

STILL,
Newly cerated users can not access the system generated Example files (pictures and document)
although filenames are visible.
"""""""""""""""""""""""""""""""""""""""""""""

When using "GALLERY+" view the following message is shown:

"Sorry, this file could not be found.
Reasons might be:
the wrong file ID was provided
the file was removed
the file is corrupt
the encryption key is missing
Here is the error message returned by the server: There was a problem accessing the file (404)
For more information, please contact your friendly ownCloud administrator."
"

All previously in OC902 created users seem to be fine !!

Steps to reproduce

Expected behaviour

Tell us what should happen SEE ABOVE

Actual behaviour

Tell us what happens instead SEE ABOVE

Server configuration

HostedServer ALL-INKL:

Web server:

MYSQL

PHP version: 7.06

Nextcloud version: 9.0.5

Updated from an older Nextcloud/ownCloud or fresh install: 9.0.22 Install in new fresh directory

Where did you install Nextcloud from: Nextcloud.com download

Signing status (Nextcloud 9.0 and above):

Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
    - INVALID_HASH
        - core/doc/admin/_sources/configuration_files/collaborative_documents_configuration.txt
        - core/doc/admin/_static/img/note_pencil.svg
        - core/doc/admin/_static/img/warning.svg
        - core/doc/admin/_static/style.css
        - core/fonts/LICENSE.txt
        - core/vendor/jquery-migrate/jquery-migrate.js
        - core/vendor/jquery-migrate/jquery-migrate.min.js
        - core/vendor/jsTimezoneDetect/jstz.js
    - EXTRA_FILE
        - logs/access_log_cloud_netdav_de_2016-06-16.gz
        - logs/access_log_mycloud_netdav_de_2016-06-16.gz
        - logs/access_log_2016-06-16.gz
        - usage/cloud_netdav_de/usage.png
        - usage/cloud_netdav_de/ctry_usage_201606.png
        - usage/cloud_netdav_de/daily_usage_201606.png
        - usage/cloud_netdav_de/webalizer.hist
        - usage/cloud_netdav_de/usage_201606.html
        - usage/cloud_netdav_de/webalizer.conf
        - usage/cloud_netdav_de/hourly_usage_201606.png
        - usage/cloud_netdav_de/index.html
        - usage/cloud_netdav_de/webalizer.current
        - usage/menu.html
        - usage/webalizer.html
        - usage/mycloud_netdav_de/usage.png
        - usage/mycloud_netdav_de/ctry_usage_201606.png
        - usage/mycloud_netdav_de/daily_usage_201606.png
        - usage/mycloud_netdav_de/webalizer.hist
        - usage/mycloud_netdav_de/usage_201606.html
        - usage/mycloud_netdav_de/webalizer.conf
        - usage/mycloud_netdav_de/hourly_usage_201606.png
        - usage/mycloud_netdav_de/index.html
        - usage/mycloud_netdav_de/webalizer.current
        - usage/.htaccess
        - usage/index.html
        - usage/.htpasswd
- files_texteditor
    - INVALID_HASH
        - js/vendor/ace/src-noconflict/mode-diff.js
- files_external
    - INVALID_HASH
        - 3rdparty/Dropbox/API.php

Raw output
==========
Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [core/doc/admin/_sources/configuration_files/collaborative_documents_configuration.txt] => Array
                        (
                            [expected] => 6b3111348248bdcca9a241be08fac007d66ae424936d5b552f2c0faff2828994d92b3fb3bc7074dd07f51a49c2bc622c6aebe66d7a163ee31300843bb5aa2534
                            [current] => 598d62c0987b8990e956aba3d9ec27f7558c705995f648b6b8d750e27239b4273541e6515f467d35658933fa08b9d8326a5f72fc1523600804e62ef07529c736
                        )

                    [core/doc/admin/_static/img/note_pencil.svg] => Array
                        (
                            [expected] => 78b9df57afe9468145e6e375cd1f61274b269b9c3019726a99e043ae952367acf53cf471cbc5b3dcca2e68367c2c4422d4a9f9a9fdbb11f9b962845ac77857de
                            [current] => 97117ce2827cc1b742678b52fc100de1e7d3fdb1adeea04a301c012e7f95b66e10a369c6a83ba89a707c4232b5e31fba3d5e58b0e0d970f22031d0704eebb5a9
                        )

                    [core/doc/admin/_static/img/warning.svg] => Array
                        (
                            [expected] => e8647b47ef1531b8c2fcdd51f76996fe85476467fc694540f3dcf8ce7e7da489e99edae5a158742da71c07dc09ccfaf721f01c1c4bda3f5bae9b711981b71a1b
                            [current] => 85687f19cf204716e9b1c608682aa22c045b6f8284a3496db07f13200952491bfea54deee7ef11115c0dedfd87443c7022ef05792892a8a984866752c8ec5726
                        )

                    [core/doc/admin/_static/style.css] => Array
                        (
                            [expected] => 894b1bea3e2b6bc61824ffebc081339a6caf0b57cda7fa9b9c9a5965e2a165dc177055db176cb535ef465c927b4bc4848802fe3e1b0fb709194b3cb7d2f90f8d
                            [current] => 5d9fbe71f0eae36c5a9c50f98733cc9e7a5bc7b2b56e3937c4431cf5e54649667bbe8f5900cdcbfbaa8b1eb8d5476d42a278d210c38110411885ad818e3a963a
                        )

                    [core/fonts/LICENSE.txt] => Array
                        (
                            [expected] => 4cc5a12bfe984c0a50bf7943e2d70a948d520ef423677c77629707aace3a95aa378d205de929105d644680679e70ef2449479b360ad44896b75bafed66613272
                            [current] => 98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8
                        )

                    [core/vendor/jquery-migrate/jquery-migrate.js] => Array
                        (
                            [expected] => 083c7aaf7b7304b2610ed5ff851f840d5db24993814128b86f42e8e5749b76e7117f6f154a8465fb4f163c1105ec3c6a5757e9c48b95e869d101de9399780a0e
                            [current] => fc2f4d093d3c8ecbfd30f25c59f30e92bf7457664ecf8871247b1802671b05b674c047bfcd0c2c9a674b49ce0bab9cdaed2416f69797381c775019ec250cbc0d
                        )

                    [core/vendor/jquery-migrate/jquery-migrate.min.js] => Array
                        (
                            [expected] => 7c31817254b71d4cac10120aa2829614311658e468036d27eb43b063b392620c4611ec3db3b3600da3e48fb82a41c5579c048fbd9022156f038b2b6cb5d946b5
                            [current] => 7b68a43a22a41404a2ff58e0da6a237492cad0fc3e56d216980802b4d5fb483895262a7e049340d6670002bdf899ba88c319239e60d0aae1ac31d98556b0ad6e
                        )

                    [core/vendor/jsTimezoneDetect/jstz.js] => Array
                        (
                            [expected] => ece74dd6f5fc9587cf167dd17df51b66f70bd711f445da8d1d21bb1b0570f3c97b25d3ece110b08e2f2b294369d9b775cc169b666840a5b769ba338aa6d73d48
                            [current] => beae737d18aae6e8c5fdfb0bf3389b687ec746e6b334185710cc5b8f45b73b3c57442db541807ab440b55517ef2d138f4c40148abafcb6462481016b617e1f53
                        )

                )

            [EXTRA_FILE] => Array
                (
                    [logs/access_log_cloud_netdav_de_2016-06-16.gz] => Array
                        (
                            [expected] => 
                            [current] => 6d6c939053711d101b532bdddea121598ca0530931be85c9daa7bc24baff652141eff99afd4a4322bda23ba97aed61c78043f7c277ee2842aecbb3588dd77dd0
                        )

                    [logs/access_log_mycloud_netdav_de_2016-06-16.gz] => Array
                        (
                            [expected] => 
                            [current] => 7fdf1b9ae87c2957de1b305a8f83706a8d11dac70b7060c6837b567cb9f6f5c28c9e57fef5f7838d9d3016c99cf5c761ed6471b3d29a4c70035dffde216372b8
                        )

                    [logs/access_log_2016-06-16.gz] => Array
                        (
                            [expected] => 
                            [current] => dba6ce4ad08ace707d82293f9bba4f6b0d44d79f8d3f5c972d81013d90de3e68aed3b8318fcf3b4a5af36cc8214233b4a7676b03b583da51f8ad072e5c8e7c57
                        )

                    [usage/cloud_netdav_de/usage.png] => Array
                        (
                            [expected] => 
                            [current] => 1f0fa59f508baa45217c559f00792186270722cfeaa0a219fe67842e04d6a3758ce3196ae03977674a3175ccdb3fdf656e9c71d2be4af97f09720985196dc07f
                        )

                    [usage/cloud_netdav_de/ctry_usage_201606.png] => Array
                        (
                            [expected] => 
                            [current] => 3aac980cc571a06c85873fae85f2535b735d48e90c9ff391899cb16fafee65eb934bd55cbe400a6071c068d21769bec81306e624ce8a626b225a08cd88cc1d28
                        )

                    [usage/cloud_netdav_de/daily_usage_201606.png] => Array
                        (
                            [expected] => 
                            [current] => 28acdfd2940f8b773f76e0d41d3cba3fbe1d6722ab3b174116d24d888709798053e062f21df24fba8621260366ca7535ef2bb476ce079be8f892f74aeec06ac9
                        )

                    [usage/cloud_netdav_de/webalizer.hist] => Array
                        (
                            [expected] => 
                            [current] => e5c0cf729150db5434d7ee114a75249fb424d37658de9a50d495a1d4fdcc567136e1ea129a5f801411c0bf5aba7bd0841a44ee03909b9bef88a2583fc5089e15
                        )

                    [usage/cloud_netdav_de/usage_201606.html] => Array
                        (
                            [expected] => 
                            [current] => 5d909146c44d21ddf7e8f6022f0e2fd3c92727b5ee5cee7b35ac93ba695781720814cb8fb0b61065f3012b83a5484f0f672a1a6cf07c03b78dc3866757cc81c0
                        )

                    [usage/cloud_netdav_de/webalizer.conf] => Array
                        (
                            [expected] => 
                            [current] => 4821558dbf537e7a497873f2f36bb371dc825020abe7f262dde39f6f273b77c565761254b31eaba7ae7021075aebaaab9e54bcd1f7cc150737fa60962ba816b9
                        )

                    [usage/cloud_netdav_de/hourly_usage_201606.png] => Array
                        (
                            [expected] => 
                            [current] => afcf86e8f0d4b1c64a5dca36e0378b913dba20ed90c3331b253e974d824bf586d915525b9563dd319152afe7b88abcb609a15f6b8046e334189cb0144d199988
                        )

                    [usage/cloud_netdav_de/index.html] => Array
                        (
                            [expected] => 
                            [current] => 86232279f3fb565c3ed95fcc4ec9e39c7649b9e8eabd846341ca4f52ffdbda5c73193e19b84a943728e6a398c56acf469db86e1e08a1d477f22ddfac5221f75b
                        )

                    [usage/cloud_netdav_de/webalizer.current] => Array
                        (
                            [expected] => 
                            [current] => 5f78d13e30efefe4605ad59d5dff75256139fbbfceef121b598298b4f80f08671c96ef0036374a808a4651681c1d65da7f070f1ae70bb1f6225ca55e7e0eb523
                        )

                    [usage/menu.html] => Array
                        (
                            [expected] => 
                            [current] => 81979651512eea8c1629d000a108c6514edebc805088d6975842425e14f11a7b248a9580f8daba50648bfe40a5af89cdb487b90425dcd92cb525e881a162d124
                        )

                    [usage/webalizer.html] => Array
                        (
                            [expected] => 
                            [current] => 1538b8bd3f46dfd7bd79478589c149da809289513acf2c446a29de25bc0145fb374a1befe239a52adc938816654dc3ced2f64c4ac8e19e19c5e1130f21c4c4a0
                        )

                    [usage/mycloud_netdav_de/usage.png] => Array
                        (
                            [expected] => 
                            [current] => 32d4ade422f5bdef927d3eb615e72cb14a7da7ca91bd0745535463e2b8696e18b83b0632aa6f28b625d4a030d279cd230b4b268b7026a15ef799583442c63a6e
                        )

                    [usage/mycloud_netdav_de/ctry_usage_201606.png] => Array
                        (
                            [expected] => 
                            [current] => c315c0618c1cd8856f4b5a2538e68d4999ec747ca237727443649c39ebbb6400c239641b540e9fee02c0f864b1df8f5801348e7772697582971be94dc9e25f48
                        )

                    [usage/mycloud_netdav_de/daily_usage_201606.png] => Array
                        (
                            [expected] => 
                            [current] => 006fe84737528de2993f88f37cec012c0f96b4d912aa41e9f7ca1fa6451a7127366fd6b233b1e4456ac05cccc10cad8886fe6d14226276768f272b3bf2d15720
                        )

                    [usage/mycloud_netdav_de/webalizer.hist] => Array
                        (
                            [expected] => 
                            [current] => 11b8e0da039bf275ee6cdf0a0775ac3b0ad200c8216c4db93f01362148c63a9e238b47f9f95d247fafa36af617e99c4a2bf81df0da8961d9df66eb7e68740aca
                        )

                    [usage/mycloud_netdav_de/usage_201606.html] => Array
                        (
                            [expected] => 
                            [current] => b7f96551c0f1f3547acf56b30b70ed1900594ec9ba81f5942f4db4a5ab1a576f33ff324696387942923b0c4797455989508357e12ba2baf0a8b024cba37cdbbe
                        )

                    [usage/mycloud_netdav_de/webalizer.conf] => Array
                        (
                            [expected] => 
                            [current] => 91268ce7d4fc6e3f0f796626914e072075d5c05454d06d58ad2624bf30af1b511529c82d7f2fbbab014bcf805fd591ba84043aed7df55edeab1e579343d47852
                        )

                    [usage/mycloud_netdav_de/hourly_usage_201606.png] => Array
                        (
                            [expected] => 
                            [current] => 3a6414487624ffcdfcdea1bf87f9190c22f3361dcb6777bb26b99cb54e124067be89583377883efe64ef86b2c7dd8ff6ee1c0d14044be9ea57a5ef8bdf7c4b3f
                        )

                    [usage/mycloud_netdav_de/index.html] => Array
                        (
                            [expected] => 
                            [current] => 5995930cf0478d340bcf567e332b8668823cbd71a84f3ed42e348235522e484e096c59c20dd62593629b8891388304d5a0b107e2fccf14d2ac498fa8a8cd586a
                        )

                    [usage/mycloud_netdav_de/webalizer.current] => Array
                        (
                            [expected] => 
                            [current] => b4e190f4740330619305a49a863612e6b31b2299e5a702ab6dc489f2b526198cd239918f898ca73fe84cb5e51693ada4813349ec5c15c68ca0ffc0e86dd88c22
                        )

                    [usage/.htaccess] => Array
                        (
                            [expected] => 
                            [current] => 72b6bc2f8800aec73dfb43aa59b9fb0191cf9e26d1130d435aba8565e9cbae22938b7d92ce008a392310b03312fa049791ffcc77286143450728e1469112f7f3
                        )

                    [usage/index.html] => Array
                        (
                            [expected] => 
                            [current] => 3699e093105463fd2ffabc47516ebe6f153b383dd136654b0d49c851f089ce25fe712a5d0bb3f6b7595c916740619f39d44670e4b63987d75dd8229c9a06d43d
                        )

                    [usage/.htpasswd] => Array
                        (
                            [expected] => 
                            [current] => 645062ef60eb9758e8b0be98f9c4a47e85d48bc32a9b3526535a957785f8fa5565ee98ce7886097ea4d6842cf1ec60a46be1ed277f8e8942f9da390b73017f48
                        )

                )

        )

    [files_texteditor] => Array
        (
            [INVALID_HASH] => Array
                (
                    [js/vendor/ace/src-noconflict/mode-diff.js] => Array
                        (
                            [expected] => 4a59b6376376b81e4e12ccc345065db62029a61035a88e19b1be3d7ec4cd9f86444121cca6d46c44a5f86e4f5b44d5109cbc77e80c07ff8dbce61f758b88e765
                            [current] => f8dbde2422c010af18b254a562c9e96865d5e58a698a191c855974f37d5a837ccc243ca85b2a8fbe81c61c53470b877e5b8b3e64cd2951c7f863bf49085aa5d7
                        )

                )

        )

    [files_external] => Array
        (
            [INVALID_HASH] => Array
                (
                    [3rdparty/Dropbox/API.php] => Array
                        (
                            [expected] => a6866ef3ceeb26d9d4b2ccc343aeaf626c82f03e279962bc7d761a68e87e5a7916ff0bcf7a350e20889557336ed9c5dd1651cfe513fa04bb8a03cd6d8f9cc484
                            [current] => 917eed2c4f6359a4d0b8658a36404c83344b0bf72ccda614dd59f97d099b3d9ef4e86691401c64d3754c3f7e0fa163eab946a25dbc7bc65e1694ffd47a054317
                        )

                )

        )

)

List of activated apps:

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

Enabled:
  - activity: 2.2.1
  - admin_audit: 1.0.0
  - announcementcenter: 1.1.2
  - bookmarks: true
  - calendar: 1.2.2
  - comments: 0.2
  - contacts: 1.3.1.0
  - dav: 0.1.6
  - direct_menu: 0.8.0
  - encryption: 1.2.0
  - external: 1.2
  - federatedfilesharing: 0.1.0
  - federation: 0.0.4
  - files: 1.4.4
  - files_external: 0.5.2
  - files_pdfviewer: 0.8.1
  - files_sharing: 0.9.1
  - files_texteditor: 2.1
  - files_trashbin: 0.8.0
  - files_versions: 1.2.0
  - files_videoplayer: 0.9.8
  - firstrunwizard: 1.1
  - galleryplus: true
  - music: true
  - notifications: 0.2.3
  - ownnote: 1.08
  - provisioning_api: 0.4.1
  - registration: true
  - systemtags: 0.2
  - templateeditor: 0.1
  - updatenotification: 0.1.0
Disabled:
  - gallery
  - ownpad
  - user_external
  - user_ldap

The content of config/config.php:

'oco8hyqi5xwx', 'passwordsalt' => '***', 'secret' => '***', 'trusted_domains' => array ( 0 => 'mycloud.netdav.de', 1 => 'cloud.netdav.de', ), 'datadirectory' => '/www/htdocs/wXXXXXXc/-DATA/OC_AKTUELL/data', 'tempdirectory' => '/www/htdocs/wXXXXXXc/-DATA/CLOUD_TEMP', 'overwrite.cli.url' => 'https://cloud.netdav.de', 'dbtype' => 'mysql', 'version' => '9.0.50.0', 'dbname' => 'xxxxxxxxxxxxxxxxxxxxx', 'dbhost' => 'localhost', 'dbtableprefix' => 'ZIuXd_', 'dbuser' => 'xxxxxxxxxxxxxxxxxxxxxx', 'dbpassword' => 'xxxxxxxxxxxxxxxxxxxxxx', 'logtimezone' => 'Europe/Berlin', 'installed' => true, 'mail_from_address' => 'owncloud.server', 'mail_smtpmode' => 'php', 'mail_domain' => 'dus-mail.de', 'maintenance' => false, 'singleuser' => false, 'check_for_working_htaccess' => true, 'updatechecker' => true, 'cron_log' => true, 'appcodechecker' => true, 'appstore.experimental.enabled' => true, 'theme' => '', 'loglevel' => 0, 'trashbin_retention_obligation' => 'auto', 'htaccess.RewriteBase' => '/', ); ``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder or Insert your config.php content here (Without the database password, passwordsalt and secret) ``` **Are you using external storage, if yes which one:** NO **Are you using encryption:** YES **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:** FIREFOX 47.0 **Operating system:** LINUX Mint KDE ### Logs #### Web server error log ``` Insert your webserver log here ``` #### Nextcloud log (data/owncloud.log) UPLADED owncloud.log.txt see attached ``` 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) ... ```
@githubos1
Copy link
Author

Partly Solved myself...

a. After update/upgrade to NC 9.0.51.0 INVALID HASHES where gone !!
b. And this is a stupid MYSELF mistake !!! .... Admin allowed sharing only within users group...

STILL PENDING:

Newly created Users can not open SYSTEM EXAMPLE FILES..
i.e. /Photos/ ... SanFrancisco, Paris & Squirrel JPGs as well as
/Documents/ Example.odt

@nickvergessen
Copy link
Member

Can you check if the file owner and permissions are correctly set on disk?

@MorrisJobke
Copy link
Member

@githubos1 Please reopen this if the file permissions are correct and the issue still exists. I will close this for now.

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

3 participants