Repository navigation
Add server<->server sharing - #8399
Conversation
Hmm - up to now we did store mount information in mount.json files. Wouldn't if be consistent to store these mount information in there as well? I'm a big fan of consistent design 😉 |
|
I don't want to "clutter" the mount configuration with automatically added entries. imo, the cross server shares are closer to regular shares then external storages to the user, and such they should not be part of the external storage configuration. Besides, it's consistent with regular sharing which also generates it's mounts from the database 😉 |
There was a problem hiding this comment.
Would it make sense to move this to the server container?
|
@icewind1991 can you please have a look at my comments? THX |
|
@DeepDiver1975 @PVince81 @schiesbn can you have a look at this. Steps to test:
|
|
is is possible to "mount" a public link that I got from somewhere into my private ownCloud? |
|
@icewind1991 just had a quick test with the steps you mentioned. The server "http://test/vincent" is the one where the public share is and "http://localhost:8080/owncloud" is the one I tried adding it too. Note that I was already logged in. |
|
I gave it a try, what I observed:
apache error log: Other stuff which needs to be tested after the problem above is solved:
@icewind1991 If there is something I can help with, feel free to get in contact with me on github, irc or by mail. |
|
The "Save to ownCloud" button is broken for single files due to the file sidebar by @PVince81 which causes js errors on the public share page.
Do you have the external storage app enabled? |
No, only following apps are enabled: Activity, Deleted Files, Pictures, Share Files, Text Editor, Versions |
|
After I enabled the external storage it works, we should probably check this before we mount the public link.
|
|
Further tests:
|
|
Added a commit to fix server-to-server sharing if the owner uses encryption |
There was a problem hiding this comment.
Why do you write the mount point relative to /data to the share_external table? The targets in oc_share are relative to data/user/files. I think we should use the same root and the same format for the mountpoints.
|
Found another issue, sorry 😄
On a test server I have onwcloud installed in a sub-sub-folder. The URL is As you can see that's the wrong path, the correct path is I don't think it is a general routing problem, because open the public link with the browser works just fine. Maybe something wrong with the URL handling in the code handling the mount? |
There was a problem hiding this comment.
a minor issues, but it seems like we have some inconsistency regarding the namespace at the moment.
For example there is still \OC\Files\Storage\Shared and the server-to-server share is named OCA\Files_Sharing\External\Storage Would be good to unify it.
|
I moved now the owncloud folder up on the server so that the url is simply "test/owncloud.schiesbn", the error that he can't find public.php is gone but then I got in owncloud.log: The code in public.php: I think it is quite obvious what's going on here. If 'service' isn't set but $pathinfo exists we will go to the elseif which of course will fail. Still strange that this only happens if I share the file from a physically different server. To solve the issue locally I changed the elseif to @icewind1991 before I invest more time debugging it on my systems it would be good to know if you can reproduce this issue or if it just happens on my system. |
There was a problem hiding this comment.
hmm - can we please move to controller classes, which can be unit tested instead of these ajax files? THX
|
|
The inspection completed: 52 new issues, 61 updated code elements |
|
🚀 Test Passed. 🚀 |
This leads to the question if "allow public upload" means that files inside the public share are editable |
|
A new inspection was created. |
|
@PVince81 major code issues are addressed. |
Not really, this already works in the Web UI. |
|
🚀 Test Passed. 🚀 |
|
Deleting shared storage works correctly now. 👍 |
|
This needs another thumbs up @LukasReschke @schiesbn please review @icewind1991 's commits Might do as well 😄 |
|
👍 from my part to @MorrisJobke's and @schiesbn's changes |
|
Did a quick test with encryption, looks good! Let's merge it now, small issues can still be fixed afterwards. 👍 |
Add server<->server sharing
|
Yay. Great guys. |
|
@icewind1991 Can you please look into this issues and see what can be fixed in the next few days? Some of them are really important. |
* ownCloud 7.0.0 is needed - version of merge of server <-> server sharing - #8399 * adjust error message
* ownCloud 7.0.0 is needed - version of merge of server <-> server sharing - #8399 * adjust error message
There was a problem hiding this comment.
Logging something more detailed would be really helpful. cc @DeepDiver1975 @icewind1991
There was a problem hiding this comment.
yes - as discussed with @LukasReschke - pull request is welcome @icewind1991 maybe? THX
Add support for adding public links from someone to your own owncloud
Fixes #7221