Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5136

USPS lookup failure resets existing address data to NULL

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.8
    • Fix Version/s: 2.2.10
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      There is no check to ensure that the HTTP SOAP request to the USPS returns an HTTP 200. If it fails and there is no XML data, the current contact address data is set to NULL.

      Here are the errors:

      • warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /usr/local/www/drupal6/sites/all/modules/civicrm/CRM/Utils/Address/USPS.php on line 85.
      • warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /usr/local/www/drupal6/sites/all/modules/civicrm/CRM/Utils/Address/USPS.php on line 96.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              glnielsen Glenn Nielsen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: