Repository navigation
Conversation
…them Moved dependency check to the individual backends instead of the config
|
Can one of the admins verify this patch? |
|
Good idea. I think it makes sense to do this together with your rapdishare plugin to have a reality check. Is this already ready? |
|
Yes, the plugin is already finished (in fact, I've tested these modifications with the RapidShare app). I've already uploaded a standalone version to apps.owncloud.org, but it's in approval since mid-March. |
|
@owncloud-bot this is ok to test |
|
Can't test this at the moment but looks good. |
|
👍 |
|
@MTGap What do you think? |
|
Yes, this is what I wanted. I'll get back to you once I test it. May be a long time before I get the chance though. |
|
There's been some changes to files_external so there are some conflicts in config.php now. Could you fix those @Crazyphil? Everything looks good, but Google Drive, Dropbox, AmazonS3, and WebDAV require cURL. Someone didn't stylize cURL correctly. |
adding Oracle support to autotest.sh
use the recoveryPassword var instead of accessing the POST array
…them Moved dependency check to the individual backends instead of the config
Added check for backend's checkDependencies method to OC_Mount_Config::getBackends() when backend is configured to have some instead of blindly calling it and crashing
|
@MTGap: I think I should have managed to resolve all conflicts and rebase to the current master. Also, I've included a check to the getBackends method to ensure that backends with dependencies do have a checkDependencies method. Otherwise, a non-existent method would be called, which is bad. |
|
@Crazyphil something went wrong. How did you merge? I'm going to suggest you open a new pull request, because right now there are 941 files changed. |
|
Could you also make it so that the storages that have the same dependency i.e. cURL only show one message in the UI. Thanks. |
|
Cleaning the commits up with a new pull request should be no problem. I merged by rebasing the repository to the current master and resolving the conflicts. I'm currently trying to figure out the best way to show only one message per dependency. I imagine an additional backend property "system_dependencies" that contains a list of predefined dependencies (currently SMB, FTP and cURL). This way, only one message per dependency could be displayed. This approach, however, would not work for any other dependencies that are not predefined. |
|
You should be doing Just let the storage backends define their dependency and see if the strings match up to some length. Also, 'Warning' probably isn't a good message, nothing bad will happen so just change it to 'Note'. |
As discussed in pull request #2180, I've modified the files_external app to dynamically register backends instead of using a hard-coded list. I've also moved dependency checks into the backend code (where they belong IMO) instead of the OC_Mount_Config class.
External backends will have to register in their app.php, for example:
Until issue #1235 is closed, external backends also will have to make sure that the files_external app was already loaded (which is not the case when the administrator first enables the backend app and then the files_external app) by calling