[PATCH] Fail the certificate verification in subvertpy.ra.get_ssl_server_trust_prompt_provider

Bug #1059821 reported by Mitsuhiro Koga
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subvertpy
Fix Released
Medium
Jelmer Vernooij

Bug Description

To fail to validate the certificate is in subvertpy.ra.get_ssl_server_trust_prompt_provider
it is necessary to null the svn_auth_cred_ssl_server_trust_t.

subversion corresponds to line 327 of the following sources.
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/prompt.c?revision=1295006&view=markup

The attached patch fails the validation of certificates when the function that is handling the return of None.

Revision history for this message
Mitsuhiro Koga (shiena-jp) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks for the patch, I'll have a look at merging this.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks again for the patch, and sorry for taking so long to get back to you.

The testsuite fails for me with your patch applied. The test you added fails:

======================================================================
ERROR: test_server_untrust (subvertpy.tests.test_ra.AuthTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "subvertpy/tests/test_ra.py", line 440, in test_server_untrust
    self.assertEquals(None, creds.next())
StopIteration: No more credentials available

Changed in subvertpy:
status: New → Incomplete
Revision history for this message
Mitsuhiro Koga (shiena-jp) wrote :

Thank you for check. I was fixed test.
This is a test validation fails, creds was empty.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 1059821] Re: [PATCH] Fail the certificate verification in subvertpy.ra.get_ssl_server_trust_prompt_provider

On Wed, May 08, 2013 at 05:48:28PM -0000, Mitsuhiro Koga wrote:
> Thank you for check. I was fixed test.
> This is a test validation fails, creds was empty.
>
>
> ** Patch added: "fix_test.diff"
> https://bugs.launchpad.net/subvertpy/+bug/1059821/+attachment/3670014/+files/fix_test.diff
>
Thanks, merged.

Cheers,

Jelmer

Changed in subvertpy:
status: Incomplete → Fix Committed
importance: Undecided → Medium
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in subvertpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.