Skip to content

implementation of the federated share provider - #22080

Merged
DeepDiver1975 merged 8 commits into
masterfrom
fed_share_provider
Feb 8, 2016
Merged

DeepDiver1975 merged 8 commits into
masterfrom
fed_share_provider

Conversation

@schiessle

Copy link
Copy Markdown
Contributor

first iteration of the federated share provider. Still need to move over some stuff from the files_sharing app:

  • All the mount/umount logic should be here.
  • Also the settings need to be moved.

We can also move both parts in a second step. We also keep some stuff for local shares in the files_sharing app for now and clean this up in the next iteration.

@schiessle

Copy link
Copy Markdown
Contributor Author

This is all still work in progress... @rullzer please have a first look at the share provider if you have some time.

@schiessle
schiessle force-pushed the fed_share_provider branch 2 times, most recently from c80d455 to 03b782e Compare February 3, 2016 11:16
@schiessle

Copy link
Copy Markdown
Contributor Author

does anyone see why: PHP Fatal error: Class 'OCA\FederatedFileSharing\TokenHandler' not found in /ssd/jenkins/workspace/core-ci-linux/database/sqlite/label/SLAVE/apps/federatedfilesharing/tests/lib/tokenHandlerTest.php on line 46

@rullzer

rullzer commented Feb 3, 2016

Copy link
Copy Markdown
Contributor

@schiesbn there are capital letters in your file names.

@schiessle
schiessle force-pushed the fed_share_provider branch 2 times, most recently from a33a666 to fc90e39 Compare February 3, 2016 12:33
@rullzer
rullzer force-pushed the fed_share_provider branch from fc90e39 to 08e77c3 Compare February 3, 2016 18:24
@rullzer
rullzer force-pushed the fed_share_provider branch from fc90e39 to aba7305 Compare February 4, 2016 09:02
@rullzer

rullzer commented Feb 4, 2016

Copy link
Copy Markdown
Contributor

Ok updated the PR. it is now working here. And looking pretty slick from my POV.

TODO:

  • Tests!
  • Handle disabled outgoing federated shares
  • Enable the app by default

@rullzer

rullzer commented Feb 4, 2016

Copy link
Copy Markdown
Contributor

Test will come but please already have a look.

  • The first commit is the actual app.
  • Following commits are taking care of all the internal rewireing.

Right now the app is always enabled. At the moment I do not see a quick way around this. As the incoming federated stuff is not yet in this app. So hopefully we can clear this up soon.

CC: @DeepDiver1975 @PVince81 @schiesbn @nickvergessen

@PVince81

PVince81 commented Feb 4, 2016

Copy link
Copy Markdown
Contributor
  • BUG: share folder with another user "user2@xxx". Accept the share. Then unshare from self. The owner still sees the federated share. (on stable8.2 it works, the share is gone)

@PVince81

PVince81 commented Feb 4, 2016

Copy link
Copy Markdown
Contributor
  • TEST: existing fed share appears in dialog
  • TEST: fed share over share dialog
  • TEST: shows error when sharing with unknown remote user
  • TEST: fed share with link share
  • TEST: unshare from self

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

twice ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two servers two strips, sounds legit

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean remoteProtocolFromUrl is called twice for the same server.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be a copy-paste issue. On line 123 it's stripped with strtolower and then again here without strtolower.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm I have no idea... but I assume the second one is pretty useless

@PVince81

PVince81 commented Feb 4, 2016

Copy link
Copy Markdown
Contributor

Code looks good otherwise.

}
}

$l = \OC::$server->getL10N('core');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to not use $this->l?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, just a left over from copy&paste... fixed

@schiessle

Copy link
Copy Markdown
Contributor Author

Fixed some small doc-bugs and issues reported by @LukasReschke... Will also take care of the other issues reported by Lukas.

@rullzer Thanks a lot for moving this PR forward!

@LukasReschke

Copy link
Copy Markdown
Contributor

Besides my nitpicking: 👍

@schiessle

Copy link
Copy Markdown
Contributor Author

code added by @rullzer looks good... Thanks! 👍

DeepDiver1975 added a commit that referenced this pull request Feb 8, 2016
implementation of the federated share provider
@DeepDiver1975
DeepDiver1975 merged commit cf1f92c into master Feb 8, 2016
@DeepDiver1975
DeepDiver1975 deleted the fed_share_provider branch February 8, 2016 13:12
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants