Skip to content

Added possibilty to switch ssl verification off #38

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

dwintergruen
Copy link

Helps testing on self-signed servers.

Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

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

@dwintergruen you seem to be reverting e17d8f9 which is a fix for IQSS/dataverse#3326 . Is this intentional?

name = json['datafile']['name']
file_id = json['datafile']['id']
name = json['datafile']['name']
file_id = json['datafile']['id']
Copy link
Member

Choose a reason for hiding this comment

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

@dwintergruen you seem to be reverting e17d8f9 which is a fix for IQSS/dataverse#3326 . Is this intentional?

@dwintergruen
Copy link
Author

No I haven’t realized this change.
D

Am 21.09.2016 um 16:15 schrieb Philip Durbin [email protected]:

@pdurbin requested changes on this pull request.

@dwintergruen you seem to be reverting e17d8f9 which is a fix for IQSS/dataverse#3326 . Is this intentional?

In dataverse/file.py:

@@ -19,10 +19,6 @@ def init(self, dataset, name, file_id=None):

 @classmethod
 def from_json(cls, dataset, json):
  •    try:
    
  •        name = json['dataFile']['filename']
    
  •        file_id = json['dataFile']['id']
    
  •    except KeyError:
    
  •        name = json['datafile']['name']
    
  •        file_id = json['datafile']['id']
    
  •    name = json['datafile']['name']
    
  •    file_id = json['datafile']['id']
    

@dwintergruen you seem to be reverting e17d8f9 which is a fix for IQSS/dataverse#3326 . Is this intentional?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@pdurbin
Copy link
Member

pdurbin commented Sep 21, 2016

@dwintergruen ok, can you please update your pull request? Thanks!!

@rhandberg
Copy link

Just adding a +1 for fixing this issue. I'm having problems with exactly this.

@@ -311,19 +319,19 @@ def upload_file(self, filename, content, zip_files=True):
}

requests.post(
self.edit_media_uri,
self.edit_media_uri.replace("https","http"),
Copy link
Member

Choose a reason for hiding this comment

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

I'm confused. With this "replace" is the fix actually to switch from https to http? This reminds me of IQSS/dataverse#5656 where we recently starting allowing http (not recommended) instead of https for password resets. We hope that this non-https configuration is only used for a test server!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants