Skip to content

RapidShare external files backend - #2180

Closed
Crazyphil wants to merge 7 commits into
owncloud:masterfrom
Crazyphil:master
Closed

Crazyphil wants to merge 7 commits into
owncloud:masterfrom
Crazyphil:master

Conversation

@Crazyphil

Copy link
Copy Markdown
Contributor

As already announced on the mailing list (http://mail.kde.org/pipermail/owncloud/2013-February/007643.html), I've created a storage backend for the One-Click Hoster RapidShare.

The backend is designed to do block-level operations on files stored on the RapidShare servers (i.e. files don't have to be fully transmitted to the local server to edit them). This was the major criterion for selecting this specific provider. The performance is nevertheless acceptable. The backend supports free as well as paid (RapidPro) users and determines the best way to access files automatically.

As soon as you consider my contribution as acceptable for inclusion into the core, I will sign the Contributor Agreement (as it clearly makes no sense to sign it if the contribution is never to be included).

Rewrite for classes and functionality of ownCloud 5.0
Implement stream_stat as requirement for stream_get_contents()
Rewrite for classes and functionality of ownCloud 5.0
Implement stream_stat as requirement for stream_get_contents()
…ansfer and/or slow connections

Log entry when encountering invalid gzipped file data from server
Enhanced connect function to properly reconnect to server after connection problems
Comment thread .htaccess

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.

No.

@LukasReschke

Copy link
Copy Markdown
Contributor

👎 for the inclusion in core for the following reasons:

  1. Can we officially maintain this for the next few years? - I assume not.
  2. At least I can't this test for security since I'm not willed to register an account there…
  3. If we implement this I'm pretty sure there will be other peoples who implement other backends which they want to have merged in core and we have to support it then...
  4. ownCloud !== "ownCloud hosted by Rapidshare"

There is already a lot of unmaintained stuff - I don't want to add potential more things... Sorry.

\cc @DeepDiver1975 @karlitschek @icewind1991 @Raydiation @MTGap

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.

Not validating the SSL cert.

@BernhardPosselt

Copy link
Copy Markdown
Contributor

I like the idea but we sry @Crazyphil we're going in the direction of splitting up the apps repo (mail app has already an own repo, others will follow) into multiple repositories.

You can easily host your app on apps.owncloud. 👎

@karlitschek

Copy link
Copy Markdown
Contributor

@Crazyphil I think this is very cool. Thanks a lot for doing this. We don't want to support this officially in the core because of several reasons. But this doesn't meant that thas is not a cool feature that people should be able to use. I suggest that you take the existing files_external app and copy it as files_external_rapidshare that could be hosted in the apps repository or someone else. This app should be installable additionally to the files_external one. So it should only support the rapdishare protocol. you can make this app available via apps.owncloud.com if you want.
Please let me know if you have any more questions.

@Crazyphil

Copy link
Copy Markdown
Contributor Author

@LukasReschke:
To 1., 2. and 3.: I fully understand that this addition means more work to support and maintain for the ownCloud team. I didn't especially like the idea of putting it into the core either. I also considered @karlitschek's idea of creating an own app, but that's not an ideal solution. This means having multiple copies of various files that generally provide the same functionality, and in the worst case they are on different versions and patch levels.

A perfect solution would be an extendable files_external plugin, where the different backends are hosted as "standalone" apps, which simply integrate into the core plugin. This would allow easier integration of new backends (which is your concern no. 3) and it would also take the burden of supporting and maintaining them away from the core developers.

To 4.: I can't really follow this objection, because the files_external plugin already allows, for example, "ownCloud hosted by Amazon S3". I don't simply see this plugin's purpose as a way to quickly access one or two files on one's Dropbox account, but more as a way to productively integrate external storage providers.

Anyway, thank you all for the feedback. I will try to restructure the code for a standalone app until there might come a time where this is not necessary anymore.

@MTGap

MTGap commented Mar 7, 2013

Copy link
Copy Markdown
Contributor

A perfect solution would be an extendable files_external plugin, where the different backends are hosted as "standalone" apps, which simply integrate into the core plugin. This would allow easier integration of new backends (which is your concern no. 3) and it would also take the burden of supporting and maintaining them away from the core developers.

@Crazyphil If you modify the files_external app to allow storage backends to 'register' with it for the purpose of configuration then I would gladly accept that code into core. So, just moving the getBackends() part out of the configuration class and into the storages.

You can then ship your RapidShare storage as an app without the additional files_external app code for configuring it.

@karlitschek

Copy link
Copy Markdown
Contributor

Not sure if we already need an additional layer here that abstracts the functionallity. This would make the files_external app even more fragile. And we already ave plenty of bugs here. I think that just a plain and stupid copy is not the worst solution for now. And when we see that this is actually working and people like it and perhaps more protocols show up that we should think about creating an abstraction here. I find this a bit early now :-)

@BernhardPosselt

Copy link
Copy Markdown
Contributor

I agree with @karlitschek but it depends on how much code can be shared or if its hard to implement this without additional code from the files_external app. I'd suggest to first evaluate the option carefully.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

👎 I don't see the need to have this in core as well.
As a 3rdparty app maintained outside of the community effort I don't care.

We have already plenty of code to take care off.

And to be honest: how needs Rapidshare? We better fix the rest.

@Crazyphil

Copy link
Copy Markdown
Contributor Author

@MTGap: I've modified the files_external app to have backends register themselves before being able to use them. The amount of changes is (in my opinion) in an acceptable range and the default backends work as before, so that there should no problems arise.

The only downside with a push (backend registers itself) instead of a pull (app searches for backends in all app directories) approach is that the backend has to make sure the files_external app is already loaded before trying to register ("if files_external is enabled then load it and register backend, else do nothing"). This case happens if users first enable the backend app and then the files_external app. The upside is that there is no "magic" involved with finding and registering backends and all potential backend developers are aware of what to do to get them into the list. Do you think this approach is acceptable? Do you want to see the code before I open yet another pull request?

@Raydiation: The amount of shared code is huge. When creating an app that just consists of a storage backend, you only need the classes for this specific backend and the app "metadata" files. The management functionality can fully be done by the files_external app.

@MTGap

MTGap commented Mar 8, 2013

Copy link
Copy Markdown
Contributor

@Crazyphil App dependencies should come along with #1235 So, it should be fine to have the backends registering themselves. I suggest you wait until after ownCloud 5 is released and everything settles done before opening another pull request. In the meantime, please be patient and test ownCloud 5 ;)

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants