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

Nextcloud Federation shares cant cant be modified by external nextcloud server while haveing full acess. #20628

Closed
wwwwiii opened this issue Apr 24, 2020 · 8 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info

Comments

@wwwwiii
Copy link

wwwwiii commented Apr 24, 2020

Goodmorning,

Am faceing the following isseu.

I have 2 nextcloud servers that are connected with federated sharing. On the main server i deploy de shares to other nextcloud servers.

All the servers and user recieving the share have full access delete, modify execpt resharing.
The users on de nextcloud server that recieve the share are Azure users users connected with saml 2.0.

Even though those users have full acces they can delete files on the federated share. It counts for webgui and desktop client do difference.

Errors am recieving on desktop client;
Server replied ""500 internal server error to delete "https cloud..."

On de federated user that recieves the share from the main server i see the following errors coming by:

Error | files | Backends provided no user object for [email protected]/ |  

Fatal webdav OC\User\NoUserException: Backends provided no user object   2020-04-24T09:41:47+0200

When doing an occ files:scan --all on de same server i see those things popping by:
Protocol negotiation failed: NT_status_Connection_reset

ON the main server where federated shares are located i can delete de folders without any problem.
Both server are freshly installed running ubuntu server 18 lts and running nginx newest nextcloud version

@wwwwiii wwwwiii added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 24, 2020
@wwwwiii
Copy link
Author

wwwwiii commented Apr 24, 2020

Seems to be an nextcloud federation isseu and not sso related

@arjan-s
Copy link

arjan-s commented Jul 8, 2020

I'm having the same issue on my federated share. Files can be uploaded, downloaded and modified, just not deleted.

[files] Error: Backends provided no user object for [email protected]/

DELETE /remote.php/dav/files/arjan/NAS/test/README.txt
from xxx.xxx.xxx.xxx by arjan at 2020-07-08T20:43:07+00:00
[webdav] Fatal: OC\User\NoUserException: Backends provided no user object at <<closure>>

 0. <<closure>>
    OC\Files\Node\Root->getUserFolder("[email protected]/")
 1. /usr/share/webapps/nextcloud/lib/private/Files/Node/LazyRoot.php line 65
    call_user_func_array([OC\Files\Node\Root {},"getUserFolder"], ["[email protected]/"])
 2. /usr/share/webapps/nextcloud/lib/private/Files/Node/LazyRoot.php line 282
    OC\Files\Node\LazyRoot->__call("getUserFolder", ["[email protected]/"])
 3. /usr/share/webapps/nextcloud/apps/files_trashbin/lib/Storage.php line 142
    OC\Files\Node\LazyRoot->getUserFolder("[email protected]/")
 4. /usr/share/webapps/nextcloud/apps/files_trashbin/lib/Storage.php line 182
    OCA\Files_Trashbin\Storage->shouldMoveToTrash("test/README.txt")
 5. /usr/share/webapps/nextcloud/apps/files_trashbin/lib/Storage.php line 100
    OCA\Files_Trashbin\Storage->doDelete("test/README.txt", "unlink")
 6. /usr/share/webapps/nextcloud/lib/private/Files/View.php line 1162
    OCA\Files_Trashbin\Storage->unlink("test/README.txt")
 7. /usr/share/webapps/nextcloud/lib/private/Files/View.php line 716
    OC\Files\View->basicOperation("unlink", "/NAS/test/README.txt", ["delete"])
 8. /usr/share/webapps/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 448
    OC\Files\View->unlink("/NAS/test/README.txt")
 9. /usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 179
    OCA\DAV\Connector\Sabre\File->delete()
10. /usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 287
    Sabre\DAV\Tree->delete("files/arjan/NAS ... t")
11. <<closure>>
    Sabre\DAV\CorePlugin->httpDelete(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
12. /usr/share/webapps/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    call_user_func_array([Sabre\DAV\CorePlugin {},"httpDelete"], [Sabre\HTTP\Requ ... }])
13. /usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
    Sabre\Event\EventEmitter->emit("method:DELETE", [Sabre\HTTP\Requ ... }])
14. /usr/share/webapps/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
15. /usr/share/webapps/nextcloud/apps/dav/lib/Server.php line 319
    Sabre\DAV\Server->exec()
16. /usr/share/webapps/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
17. /usr/share/webapps/nextcloud/remote.php line 165
    require_once("/usr/share/weba ... p")

DELETE /remote.php/dav/files/arjan/NAS/test/README.txt
from xxx.xxx.xxx.xxx by arjan at 2020-07-08T20:43:07+00:00

Same issue here btw: #19647

@szaimen
Copy link
Contributor

szaimen commented Jun 7, 2021

Is this Issue still valid in NC21.0.2? If not, please close this issue. Thanks! :)

@wwwwiii
Copy link
Author

wwwwiii commented Jun 7, 2021

Not sure if it still is an issue. I made a manuel solution fo this. Ticket can be closed

@wwwwiii wwwwiii closed this as completed Jun 7, 2021
@k00ni
Copy link
Contributor

k00ni commented Jun 7, 2021

I made a manuel solution fo this.

How did you solve it?

@wwwwiii
Copy link
Author

wwwwiii commented Jun 7, 2021

@k00ni I ditched the whole federation stuff. And synced nextcloud to a smb folder with the client. After that i created a manuel service.
The second server was is the same netwerk as the smb share. on that server am using the external file share plugin.

@wwwwiii
Copy link
Author

wwwwiii commented Jun 7, 2021

stable for for over a year bassicly

@wwwwiii
Copy link
Author

wwwwiii commented Jun 7, 2021

is not meant the be used that way but if nextcloud doesnt come with a better solution. This wil be my way.

I have one main server like this and 2 member servers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info
Projects
None yet
Development

No branches or pull requests

4 participants