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

Unable to access public shared link #1639

Closed
nutzmdm opened this issue Oct 6, 2016 · 10 comments
Closed

Unable to access public shared link #1639

nutzmdm opened this issue Oct 6, 2016 · 10 comments
Labels

Comments

@nutzmdm
Copy link

nutzmdm commented Oct 6, 2016

Trying to access folder shared by public link result in an error page.

Steps to reproduce

  1. Share folder
  2. Send sharing link to any contact
  3. when this contact try to open nextcloud page he's advised of an error on server

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

Operating system:
Debian 8
Web server:
Apache
Database:
MySQL
PHP version:

Nextcloud version: (see Nextcloud admin page)
10.0.1
Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:

Signing status:

Signing status

No errors have been found.

List of activated apps:

App list

Enabled:
  - admin_audit: 1.0.0
  - comments: 1.0.0
  - dav: 1.0.1
  - federatedfilesharing: 1.0.1
  - federation: 1.0.1
  - files: 1.5.2
  - files_external: 1.0.2
  - files_pdfviewer: 0.8.1
  - files_sharing: 1.0.0
  - files_trashbin: 1.0.0
  - files_versions: 1.3.0
  - files_videoplayer: 0.9.8
  - gallery: 15.0.0
  - gpxpod: 1.0.4
  - notifications: 0.3.0
  - password_policy: 1.0.0
  - provisioning_api: 1.0.0
  - richdocuments: 1.1.7
  - serverinfo: 1.1.1
  - survey_client: 0.1.5
  - systemtags: 1.0.2
  - templateeditor: 0.1
  - theming: 1.0.1
  - updatenotification: 1.0.1
  - user_external: 0.4
  - user_ldap: 1.0.1
  - workflowengine: 1.0.1
Disabled:
  - activity
  - encryption
  - external
  - files_accesscontrol
  - files_automatedtagging
  - files_retention
  - files_texteditor
  - firstrunwizard
  - user_saml

Are you using external storage, if yes which one: NFS

Are you using encryption: no

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

LDAP configuration (delete this part if not used)

LDAP config

+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Configuration                 | s01                                                                                                                                                                                                                                                                                                                   |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                                                                                                                                                                                                                                                                                     |
| hasPagedResultSupport         |                                                                                                                                                                                                                                                                                                                       |
| homeFolderNamingRule          |                                                                                                                                                                                                                                                                                                                       |
| lastJpegPhotoLookup           | 0                                                                                                                                                                                                                                                                                                                     |
| ldapAgentName                 | CN=LectureAD,OU=Utilisateurs_systeme,OU=_Admin_Systeme_,OU=Utilisateurs,OU= XXX,DC=XXX,DC=fr                                                                                                                                                                                                                      |
| ldapAgentPassword             | ***                                                                                                                                                                                                                                                                                                                   |
| ldapAttributesForGroupSearch  |                                                                                                                                                                                                                                                                                                                       |
| ldapAttributesForUserSearch   |                                                                                                                                                                                                                                                                                                                       |
| ldapBackupHost                |                                                                                                                                                                                                                                                                                                                       |
| ldapBackupPort                |                                                                                                                                                                                                                                                                                                                       |
| ldapBase                      | DC=XXX,DC=fr                                                                                                                                                                                                                                                                                                       |
| ldapBaseGroups                | DC=XXX,DC=fr                                                                                                                                                                                                                                                                                                       |
| ldapBaseUsers                 | DC=XXX,DC=fr                                                                                                                                                                                                                                                                                                       |
| ldapCacheTTL                  | 600                                                                                                                                                                                                                                                                                                                   |
| ldapConfigurationActive       | 1                                                                                                                                                                                                                                                                                                                     |
| ldapDynamicGroupMemberURL     |                                                                                                                                                                                                                                                                                                                       |
| ldapEmailAttribute            | mail                                                                                                                                                                                                                                                                                                                  |
| ldapExperiencedAdmin          | 0                                                                                                                                                                                                                                                                                                                     |
| ldapExpertUUIDGroupAttr       |                                                                                                                                                                                                                                                                                                                       |
| ldapExpertUUIDUserAttr        |                                                                                                                                                                                                                                                                                                                       |
| ldapExpertUsernameAttr        |                                                                                                                                                                                                                                                                                                                       |
| ldapGroupDisplayName          | cn                                                                                                                                                                                                                                                                                                                    |
| ldapGroupFilter               | (&(|(objectclass=group))(|(cn=Groupe XXXd)(cn=Groupe XXX)))                                                                                                                                                                                                                                          |
| ldapGroupFilterGroups         | GroupeXXXX;Groupe XXX                                                                                                                                                                                                                                                                          |
| ldapGroupFilterMode           | 1                                                                                                                                                                                                                                                                                                                     |
| ldapGroupFilterObjectclass    | group                                                                                                                                                                                                                                                                                                                 |
| ldapGroupMemberAssocAttr      | member                                                                                                                                                                                                                                                                                                                |
| ldapHost                      | XXX.XXX.fr                                                                                                                                                                                                                                                                                                 |
| ldapIgnoreNamingRules         |                                                                                                                                                                                                                                                                                                                       |
| ldapLoginFilter               | (&(|(|(memberof=CN=Groupe XXX,OU=Utilisateurs,OU=XXXX,DC=XXXX,DC=fr)(primaryGroupID=9532))(|(memberof=CN=Groupe XXXXX,OU=Groupes_XXXXXX cloud,OU=_Admin_Systeme_,OU=Utilisateurs,OU=XX,DC=XXX,DC=fr)(primaryGroupID=7986)))(|(samaccountname=%uid)(|(mailPrimaryAddress=%uid)(mail=%uid)))) |
| ldapLoginFilterAttributes     |                                                                                                                                                                                                                                                                                                                       |
| ldapLoginFilterEmail          | 1                                                                                                                                                                                                                                                                                                                     |
| ldapLoginFilterMode           | 1                                                                                                                                                                                                                                                                                                                     |
| ldapLoginFilterUsername       | 1                                                                                                                                                                                                                                                                                                                     |
| ldapNestedGroups              | 0                                                                                                                                                                                                                                                                                                                     |
| ldapOverrideMainServer        | 0                                                                                                                                                                                                                                                                                                                     |
| ldapPagingSize                | 500                                                                                                                                                                                                                                                                                                                   |
| ldapPort                      | 389                                                                                                                                                                                                                                                                                                                   |
| ldapQuotaAttribute            |                                                                                                                                                                                                                                                                                                                       |
| ldapQuotaDefault              |                                                                                                                                                                                                                                                                                                                       |
| ldapTLS                       | 0                                                                                                                                                                                                                                                                                                                     |
| ldapUserDisplayName           | displayname                                                                                                                                                                                                                                                                                                           |
| ldapUserDisplayName2          |                                                                                                                                                                                                                                                                                                                       |
| ldapUserFilter                | (|(|(memberof=CN=Groupe XXX,OU=Utilisateurs,OU=XXX,DC=XX,DC=fr)(primaryGroupID=9532)))                                                                                                                                                                                                                           |
| ldapUserFilterGroups          | GroupeXX;Groupe XXXX                                                                                                                                                                                                                                                                               |
| ldapUserFilterMode            | 0                                                                                                                                                                                                                                                                                                                     |
| ldapUserFilterObjectclass     |                                                                                                                                                                                                                                                                                                                       |
| ldapUuidGroupAttribute        | auto                                                                                                                                                                                                                                                                                                                  |
| ldapUuidUserAttribute         | auto                                                                                                                                                                                                                                                                                                                  |
| turnOffCertCheck              | 0                                                                                                                                                                                                                                                                                                                     |
| useMemberOfToDetectMembership | 1                                                                                                                                                                                                                                                                                                                     |
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

### Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log

Insert your webserver log here
#### Nextcloud log (data/nextcloud.log)

Nextcloud log

{"reqId":"P1jz5nevO3L7V902Iooc","remoteAddr":"80.12.59.109","app":"files","message":" Backends provided no user object for C74B608A-3B7E-49FE-9874-7C4B2EF30E06","level":3,"time":"2016-10-06T13:56:26+02:00","method":"GET","url":"\/index.php\/s\/jhp19Tzdb4ctE8P","user":"--"}
{"reqId":"P1jz5nevO3L7V902Iooc","remoteAddr":"80.12.59.109","app":"index","message":"Exception: {\"Exception\":\"OC\\\\User\\\\NoUserException\",\"Message\":\"Backends provided no user object for C74B608A-3B7E-49FE-9874-7C4B2EF30E06\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Root.php(338): OC\\\\Files\\\\Filesystem::initMountPoints('C74B608A-3B7E-4...')\\n#1 [internal function]: OC\\\\Files\\\\Node\\\\Root->getUserFolder('C74B608A-3B7E-4...')\\n#2 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/LazyRoot.php(65): call_user_func_array(Array, Array)\\n#3 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/LazyRoot.php(282): OC\\\\Files\\\\Node\\\\LazyRoot->__call('getUserFolder', Array)\\n#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Share20\\\/Share.php(158): OC\\\\Files\\\\Node\\\\LazyRoot->getUserFolder('C74B608A-3B7E-4...')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_sharing\\\/lib\\\/Controllers\\\/ShareController.php(249): OC\\\\Share20\\\\Share->getNode()\\n#6 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_sharing\\\/lib\\\/Controllers\\\/ShareController.php(279): OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController->validateShare(Object(OC\\\\Share20\\\\Share))\\n#7 [internal function]: OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController->showShare('jhp19Tzdb4ctE8P', '')\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(160): call_user_func_array(Array, Array)\\n#9 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(90): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController), 'showShare')\\n#10 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(111): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController), 'showShare')\\n#11 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/public\\\/AppFramework\\\/App.php(136): OC\\\\AppFramework\\\\App::main('ShareController', 'showShare', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer))\\n#12 \\\/var\\\/www\\\/nextcloud\\\/core\\\/routes.php(128): OCP\\\\AppFramework\\\\App->dispatch('ShareController', 'showShare')\\n#13 [internal function]: OC\\\\Route\\\\Router->{closure}(Array)\\n#14 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(293): call_user_func(Object(Closure), Array)\\n#15 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(983): OC\\\\Route\\\\Router->match('\\\/s\\\/jhp19Tzdb4ct...')\\n#16 \\\/var\\\/www\\\/nextcloud\\\/index.php(48): OC::handleRequest()\\n#17 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Filesystem.php\",\"Line\":406}","level":3,"time":"2016-10-06T13:56:26+02:00","method":"GET","url":"\/index.php\/s\/jhp19Tzdb4ctE8P","user":"--"}
#### Browser log

Browser log

bigshot-compressed.js?v=235a11c608b8bb8528a74eba61cd9533    200 script  jhp19Tzdb4ctE8P:83  22.6?KB 311?ms  
purify.js?v=235a11c608b8bb8528a74eba61cd9533    200 script  jhp19Tzdb4ctE8P:84  8.9?KB  313?ms  
galleryutility.js?v=235a11c608b8bb8528a74eba61cd9533    200 script  jhp19Tzdb4ctE8P:85  3.3?KB  307?ms  
galleryfileaction.js?v=235a11c608b8bb8528a74eba61cd9533 200 script  jhp19Tzdb4ctE8P:86  3.0?KB  310?ms  
slideshow.js?v=235a11c608b8bb8528a74eba61cd9533 200 script  jhp19Tzdb4ctE8P:87  4.2?KB  311?ms  
slideshowcontrols.js?v=235a11c608b8bb8528a74eba61cd9533 200 script  jhp19Tzdb4ctE8P:88  3.5?KB  333?ms  
slideshowzoomablepreview.js?v=235a11c608b8bb8528a74eba61cd9533  200 script  jhp19Tzdb4ctE8P:89  2.4?KB  339?ms  
gallerybutton.js?v=235a11c608b8bb8528a74eba61cd9533 200 script  jhp19Tzdb4ctE8P:90  1.5?KB  339?ms  
fileinfo.js?v=235a11c608b8bb8528a74eba61cd9533  200 script  jhp19Tzdb4ctE8P:91  1.5?KB  338?ms  
client.js?v=235a11c608b8bb8528a74eba61cd9533    200 script  jhp19Tzdb4ctE8P:92  5.3?KB  339?ms  
styles?v=7  200 stylesheet  jhp19Tzdb4ctE8P:93  839?B   290?ms  
theming?v=7 200 script  jhp19Tzdb4ctE8P:93  1006?B  465?ms  
config?extramediatypes=1    412 xhr jquery.min.js?v=235a11cź4  804?B   157?ms  
logo.svg    304 svg+xml jhp19Tzdb4ctE8P:1   181?B   5?ms    
OpenSans-Light.woff 304 font    jhp19Tzdb4ctE8P:1   181?B   8?ms    
OpenSans-Semibold.woff  304 font    jhp19Tzdb4ctE8P:1   182?B   6?ms    
600.00?ms800.00?ms1.00?s1.20?s1.40?s
81 requests | 519?KB transferred | Finish: 1.26?s | DOMContentLoaded: 1.15?s | Load: 1.18?s


JQMIGRATE: Migrate is installed, version 1.4.0
Uncaught ReferenceError: oc_appconfig is not defined
Uncaught TypeError: Cannot read property 'substring' of undefined
Failed to parse SourceMap: https://cloud.xxx.fr/core/vendor/jquery/dist/jquery.min.map
GET https://cloud.XXX.fr/index.php/apps/gallery/config?extramediatypes=1 412 (Precondition failed)
@rullzer
Copy link
Member

rullzer commented Oct 6, 2016

We are going to need some more info here.

What do the logs tell you?
Does the link look good?
Do you send the link via nextcloud or use your own mail client?

@MorrisJobke
Copy link
Member

when this contact try to open nextcloud page he's advised of an error on server

Could you open the link or is it also broken for you?

@nutzmdm
Copy link
Author

nutzmdm commented Oct 10, 2016

@rullzer
logs are:
{"reqId":"P1jz5nevO3L7V902Iooc","remoteAddr":"80.12.59.109","app":"files","message":" Backends provided no user object for C74B608A-3B7E-49FE-9874-7C4B2EF30E06","level":3,"time":"2016-10-06T13:56:26+02:00","method":"GET","url":"\/index.php\/s\/jhp19Tzdb4ctE8P","user":"--"} {"reqId":"P1jz5nevO3L7V902Iooc","remoteAddr":"80.12.59.109","app":"index","message":"Exception: {\"Exception\":\"OC\\\\User\\\\NoUserException\",\"Message\":\"Backends provided no user object for C74B608A-3B7E-49FE-9874-7C4B2EF30E06\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Root.php(338): OC\\\\Files\\\\Filesystem::initMountPoints('C74B608A-3B7E-4...')\\n#1 [internal function]: OC\\\\Files\\\\Node\\\\Root->getUserFolder('C74B608A-3B7E-4...')\\n#2 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/LazyRoot.php(65): call_user_func_array(Array, Array)\\n#3 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/LazyRoot.php(282): OC\\\\Files\\\\Node\\\\LazyRoot->__call('getUserFolder', Array)\\n#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Share20\\\/Share.php(158): OC\\\\Files\\\\Node\\\\LazyRoot->getUserFolder('C74B608A-3B7E-4...')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_sharing\\\/lib\\\/Controllers\\\/ShareController.php(249): OC\\\\Share20\\\\Share->getNode()\\n#6 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_sharing\\\/lib\\\/Controllers\\\/ShareController.php(279): OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController->validateShare(Object(OC\\\\Share20\\\\Share))\\n#7 [internal function]: OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController->showShare('jhp19Tzdb4ctE8P', '')\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(160): call_user_func_array(Array, Array)\\n#9 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(90): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController), 'showShare')\\n#10 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(111): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController), 'showShare')\\n#11 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/public\\\/AppFramework\\\/App.php(136): OC\\\\AppFramework\\\\App::main('ShareController', 'showShare', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer))\\n#12 \\\/var\\\/www\\\/nextcloud\\\/core\\\/routes.php(128): OCP\\\\AppFramework\\\\App->dispatch('ShareController', 'showShare')\\n#13 [internal function]: OC\\\\Route\\\\Router->{closure}(Array)\\n#14 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(293): call_user_func(Object(Closure), Array)\\n#15 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(983): OC\\\\Route\\\\Router->match('\\\/s\\\/jhp19Tzdb4ct...')\\n#16 \\\/var\\\/www\\\/nextcloud\\\/index.php(48): OC::handleRequest()\\n#17 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Filesystem.php\",\"Line\":406}","level":3,"time":"2016-10-06T13:56:26+02:00","method":"GET","url":"\/index.php\/s\/jhp19Tzdb4ctE8P","user":"--"}

The link looks good and @MorrisJobke he's not broken for the user who created it. I could also open it on a computer when user is not logged in if I previously open it when user was logged for about 5-10min.

I send the link via my own mail client. The only difference is: when nextcloud is used, the link is in lower case only, when I copy and paste it, he's in upper and lower case. But when I try to use it, there is the same result

@MorrisJobke
Copy link
Member

This looks like an LDAP error - @blizzz How could that cause an issue? The users seems to exist, but for the public share it doesn't get resolved properly.

@blizzz
Copy link
Member

blizzz commented Oct 10, 2016

This looks like an LDAP error - @blizzz How could that cause an issue? The users seems to exist, but for the public share it doesn't get resolved properly.

Works on our instance.

I would guess that there might be a share from a on LDAP side removed user causing this. Sounds at least most likely. @nutzmdm is it possible that somewhere in the directory structure related to the folder is or was on share by such a former user?

OTOH, I'd expect this also to happen for logged-in users.

@blizzz blizzz added the bug label Oct 10, 2016
@nutzmdm
Copy link
Author

nutzmdm commented Oct 10, 2016

@blizzz : Share have been created by an Active Directory user and folders are totally news
I just tested a little bit more and:
-If user that create the link is not logged : nobody can acces files
-If user who create the link is logged on computer A, user on computer B can open the link

@blizzz
Copy link
Member

blizzz commented Oct 10, 2016

@nutzmdm

  1. As LDAP user, create a folder and share it by link
  2. Log out
  3. On a different browser, open the link

Are these reproduction steps correct? Works for me. Another ingredient needs to go into the mix…

@nutzmdm
Copy link
Author

nutzmdm commented Oct 11, 2016

@blizzz
These steps are correct. I tried with different user yesterday, just after link creation, any user could access to share. this morning, share is not accessible unless the user who created the share is logged.

in nextcloud.log, there is 2 line corresponding to this event:

{"reqId":"rN8JJyEYIcCWlf57EPwO","remoteAddr":"192.168.1.51","app":"files","message":" Backends provided no user object for D15FE650-767A-4BA7-8B6E-F7CE186C66A9","level":3,"time":"2016-10-11T09:51:42+02:00","method":"GET","url":"\/s\/GQFhQAiOC6KfOmR","user":"--"} {"reqId":"rN8JJyEYIcCWlf57EPwO","remoteAddr":"192.168.1.51","app":"index","message":"Exception: {\"Exception\":\"OC\\\\User\\\\NoUserException\",\"Message\":\"Backends provided no user object for D15FE650-767A-4BA7-8B6E-F7CE186C66A9\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Root.php(338): OC\\\\Files\\\\Filesystem::initMountPoints('D15FE650-767A-4...')\\n#1 [internal function]: OC\\\\Files\\\\Node\\\\Root->getUserFolder('D15FE650-767A-4...')\\n#2 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/LazyRoot.php(65): call_user_func_array(Array, Array)\\n#3 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/LazyRoot.php(282): OC\\\\Files\\\\Node\\\\LazyRoot->__call('getUserFolder', Array)\\n#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Share20\\\/Share.php(158): OC\\\\Files\\\\Node\\\\LazyRoot->getUserFolder('D15FE650-767A-4...')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_sharing\\\/lib\\\/Controllers\\\/ShareController.php(249): OC\\\\Share20\\\\Share->getNode()\\n#6 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_sharing\\\/lib\\\/Controllers\\\/ShareController.php(279): OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController->validateShare(Object(OC\\\\Share20\\\\Share))\\n#7 [internal function]: OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController->showShare('GQFhQAiOC6KfOmR', '')\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(160): call_user_func_array(Array, Array)\\n#9 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(90): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController), 'showShare')\\n#10 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(111): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_Sharing\\\\Controllers\\\\ShareController), 'showShare')\\n#11 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/public\\\/AppFramework\\\/App.php(136): OC\\\\AppFramework\\\\App::main('ShareController', 'showShare', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer))\\n#12 \\\/var\\\/www\\\/nextcloud\\\/core\\\/routes.php(128): OCP\\\\AppFramework\\\\App->dispatch('ShareController', 'showShare')\\n#13 [internal function]: OC\\\\Route\\\\Router->{closure}(Array)\\n#14 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(293): call_user_func(Object(Closure), Array)\\n#15 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(983): OC\\\\Route\\\\Router->match('\\\/s\\\/GQFhQAiOC6Kf...')\\n#16 \\\/var\\\/www\\\/nextcloud\\\/index.php(48): OC::handleRequest()\\n#17 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Filesystem.php\",\"Line\":406}","level":3,"time":"2016-10-11T09:51:42+02:00","method":"GET","url":"\/s\/GQFhQAiOC6KfOmR","user":"--"}

@blizzz
Copy link
Member

blizzz commented Oct 11, 2016

Formatted the exception:

Exception: {"Exception":"OC\User\NoUserException","Message":"Backends provided no user object for D15FE650-767A-4BA7-8B6E-F7CE186C66A9","Code":0,"Trace":"
#0 /var/www/nextcloud/lib/private/Files/Node/Root.php(338): OC\Files\Filesystem::initMountPoints('D15FE650-767A-4...')\
#1 [internal function]: OC\Files\Node\Root->getUserFolder('D15FE650-767A-4...')\
#2 /var/www/nextcloud/lib/private/Files/Node/LazyRoot.php(65): call_user_func_array(Array, Array)\
#3 /var/www/nextcloud/lib/private/Files/Node/LazyRoot.php(282): OC\Files\Node\LazyRoot->__call('getUserFolder', Array)\
#4 /var/www/nextcloud/lib/private/Share20/Share.php(158): OC\Files\Node\LazyRoot->getUserFolder('D15FE650-767A-4...')\
#5 /var/www/nextcloud/apps/files_sharing/lib/Controllers/ShareController.php(249): OC\Share20\Share->getNode()\
#6 /var/www/nextcloud/apps/files_sharing/lib/Controllers/ShareController.php(279): OCA\Files_Sharing\Controllers\ShareController->validateShare(Object(OC\Share20\Share))\
#7 [internal function]: OCA\Files_Sharing\Controllers\ShareController->showShare('GQFhQAiOC6KfOmR', '')\
#8 /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(160): call_user_func_array(Array, Array)\
#9 /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(90): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_Sharing\Controllers\ShareController), 'showShare')\
#10 /var/www/nextcloud/lib/private/AppFramework/App.php(111): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_Sharing\Controllers\ShareController), 'showShare')\
#11 /var/www/nextcloud/lib/public/AppFramework/App.php(136): OC\AppFramework\App::main('ShareController', 'showShare', Object(OC\AppFramework\DependencyInjection\DIContainer))\
#12 /var/www/nextcloud/core/routes.php(128): OCP\AppFramework\App->dispatch('ShareController', 'showShare')\
#13 [internal function]: OC\Route\Router->{closure}(Array)\
#14 /var/www/nextcloud/lib/private/Route/Router.php(293): call_user_func(Object(Closure), Array)\
#15 /var/www/nextcloud/lib/base.php(983): OC\Route\Router->match('/s/GQFhQAiOC6Kf...')\
#16 /var/www/nextcloud/index.php(48): OC::handleRequest()\
#17 {main}","File":"/var/www/nextcloud/lib/private/Files/Filesystem.php\

Is D15FE650-767A-4BA7-8B6E-F7CE186C66A9 your username? (Check on users page)

@nutzmdm
Copy link
Author

nutzmdm commented Oct 11, 2016

It's the username of the user who shared the folder.

I think it was a bug when I added a new group in nextcloud ldap config. I could connect with users in this group but I couldn't browse group members from nextcloud users section, the group appeared empty.

I removed all users and group from nextcloud ldap/AD integration then re-added them and now it seems to work

Many thanks for your help!

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

No branches or pull requests

4 participants