Config tool mishandles JSON object-vs-string dichotomy

Description

As reported by in https://index-data.atlassian.net/browse/DEVOPS-3367, the config tool extracts the dbinfo key and unescapes the JSON that is in the value key so that the key contains a JSON object rather than stringified JSON . That value needs to be JSON-escaped (i.e. remove line breaks, use \ to escape quotation marks) to be PUT, as something – whether mod-reporting or mod-settings is hard to say as neither logs an error though the config tool reports a 500 error -- expects the value key to contain a string, not an object…

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Mike Taylor October 18, 2024 at 2:35 PM

End of week, I need to get the release out. So, , I went ahead and assumed that the config-tool fix was good.

If you find it’s not, drop me a line and a we can revisit.

Mike Taylor October 17, 2024 at 2:18 PM

I hate to hassle you, but getting this QAd is one of the last things I need before I can do the Ransoms release of mod-reporting.

Mike Taylor October 16, 2024 at 4:00 PM

Merged to master.

, can you please verify that this now works as expected?

Mike Taylor October 16, 2024 at 3:59 PM

Fixed in a branch.

Mike Taylor October 16, 2024 at 1:47 PM

All right, time to stop over-thinking this, and consider it in operational terms.

  1. I don’t want to change the behaviour of mod-reporting, which is working correctly as the back-end to the Reporting app, and risk breaking something that actual customers use.

  2. I do want the get/set operations of the config tool to work as a pair with no need to mess about editing the textual form.

So the correct solution here is to modify the config-tool script itself to make sure it sets the configuration in the form that the destination module (mod-reporting) expects.

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Sprint

Development Team

Thor

Fix versions

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created October 15, 2024 at 12:54 PM
Updated January 23, 2025 at 6:01 PM
Resolved October 18, 2024 at 2:36 PM
TestRail: Cases
TestRail: Runs

Flag notifications