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

Add wrapper for Guzzle #15195

Merged
merged 1 commit into from
Mar 26, 2015
Merged

Add wrapper for Guzzle #15195

merged 1 commit into from
Mar 26, 2015

Conversation

LukasReschke
Copy link
Member

Other PR because Jenkins didn't like my old one 😢


This adds a wrapper around Guzzle to allow developers to perform HTTP requests using a somewhat saner API. Without this SSL and proxy support is basically broken in ownCloud as stated in #14913 (comment)

Todo

  • Get rid of private API
  • Deprecate HTTPHelper
  • Implement SSL in such a way that it actually works……
  • Follow proxy configured in config.php
  • Determine how to replace a users' custom trusted root certificate list
  • Fix unit tests after we agreed on an API design
  • Ensure that S2S still works properly

Requires owncloud-archive/3rdparty#167

Fixes #9054, #14963, #14840 and a lot of other issues


Ref #14913

@LukasReschke LukasReschke changed the title [WIP] Add wrapper for Guzzle Add wrapper for Guzzle Mar 25, 2015
@LukasReschke LukasReschke added this to the 8.1-current milestone Mar 25, 2015
@LukasReschke
Copy link
Member Author

Ready to review now:

@nickvergessen @icewind1991 @MorrisJobke

@ghost
Copy link

ghost commented Mar 25, 2015

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/10828/
Test PASSed.

@icewind1991
Copy link
Contributor

Looks good 👍

@MorrisJobke
Copy link
Contributor

I tested to install an app and did a s2s sharing. There were no errors in the log.

@MorrisJobke
Copy link
Contributor

Code also look good 👍

MorrisJobke added a commit that referenced this pull request Mar 26, 2015
@MorrisJobke MorrisJobke merged commit 20f5290 into master Mar 26, 2015
@MorrisJobke MorrisJobke deleted the reanimate-add-guzzle branch March 26, 2015 10:06
@MorrisJobke
Copy link
Contributor

3rdparty update: 69f14f9

@@ -11,6 +11,7 @@

namespace OCA\Files_Sharing\Controllers;

use Hoa\Core\Data\Data;
Copy link
Member

Choose a reason for hiding this comment

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

Hoa? WTF?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably pressed enter when typing autocomplete for DataResponse 🙈

… fixing …

$this->client->setDefaultOption('verify', \OC::$SERVERROOT . '/config/ca-bundle.crt');
}

$this->client->setDefaultOption('headers/User-Agent', 'ownCloud Server Crawler');
Copy link
Member

Choose a reason for hiding this comment

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

what about firewalls rejecting anything which is not a browser? @danimo

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.

Improve HTTPS cert validation for appstore
4 participants