CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using IMAP2SOAP »
  • SOAP authentication failures not reported
Pages: [1]

Author Topic: SOAP authentication failures not reported  (Read 1570 times)

john ackers

  • Guest
SOAP authentication failures not reported
August 13, 2008, 02:20:47 pm
As far as i can tell, in the current version of the script, SOAP client authentication errors are not correctly reported and the script does not stop on an authentication failure. You get a log something like this:

imap2soap: Initializing http://supporters.campaigncc.org/sites/all/modules/civicrm/extern/soap.php
imap2soap: Error: SOAP: 1->faultstring
imap2soap: Initialization complete
imap2soap: Processing message 1/1543 (id 6398), load average = 0
imap2soap: Error: SOAP: 1->faultstring
imap2soap: Error: SOAP: 1->faultstring      .......and more........

This patch worked for me

<   if ($result->fault) {                 # Authentication error, fail!
<     error "SOAP: $result->faultstring";
---
>   if ($result->fault)        # Authentication error, fail!
>   {
>       fatal(join ', ',
>       $result->faultcode,
>       $result->faultstring);

john

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using IMAP2SOAP »
  • SOAP authentication failures not reported

This forum was archived on 2017-11-26.