action #64412
closed
coordination #154768: [saga][epic][ux] State-of-art user experience for openQA
coordination #154771: [epic] Improved test developer user experience
Get rid of eval in OpenQA::WebAPI::Plugin::HashedParams
Added by tinita over 4 years ago.
Updated 29 days ago.
Category:
Feature requests
Description
Problem¶
This plugin is a helper to receive nested data structures, as it can turn query parameters like
"settings[FOO][BAR]=baz"
into a data structure.
It is used only in the OpenQA::WebAPI::Controller::API::V1::Table
.
The code removes unsafe characters and creates perl code which is then loaded with eval
.
Suggestion¶
- The code could probably be replaced without
eval
, so we wouldn't need to clean the input.
- The Table API endpoints could also be changed to accept JSON instead, and we could get rid of the whole module.
- Description updated (diff)
- Priority changed from Normal to Low
- Related to action #166310: Replace jquery ajax calls with fetch API size:M added
- Status changed from New to In Progress
- Assignee set to dheidler
My current status while working on #166310 is to accept both.
But we can easily remove HashedParams now, as the JS code will now use JSON requests.
- Status changed from In Progress to Blocked
Waiting for PR in #166310 to get merged.
- Status changed from Blocked to In Progress
- Status changed from In Progress to Feedback
- Status changed from Feedback to In Progress
Now let's fix some tests and have a look at the template tests.
As discussed in daily, let's see if we can update the loadtemplate script and make this change unnoticed by users of this feature as they are using that script and not the API directly.
- Due date set to 2024-10-16
- Target version changed from future to Ready
- Status changed from In Progress to Resolved
- Status changed from Resolved to Feedback
- Status changed from Feedback to Blocked
- Parent task set to #154771
- Due date changed from 2024-10-16 to 2024-11-01
- Status changed from Blocked to Resolved
- Due date deleted (
2024-11-01)
Also available in: Atom
PDF