When CiviCRM is down empty data is send

Created on 31 July 2024, 4 months ago

Problem/Motivation

At Amnesty Flanders we have backup solution in case CiviCRM is down for maintenance. We log the incoming API request via the API proxy. Previoulsy this works quite well as the Drupal 7 module, did send all data to CiviCRM. With this Drupal 9/10 module it first does a getFields call and then sends data. Resulting in an empty dataset when CiviCRM is down.

Steps to reproduce

1. Make sure you have CiviCRM and CiviProxy setup
2. Enable api logging in CiviProxy
3. Set in CiviProxy a wrong SITE KEY
4. Submit a form.

Check your Proxy Log and the CMRF Call log both show that FormProcessor api call. However with empty data.

Proposed resolution

Remove the extra check for getFields when submitting a form. This is also a benefit for the performance.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇳🇱Netherlands jaapjansma

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024