Skip to content

Remove quoutes around database flags #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dygland
Copy link

@dygland dygland commented Apr 25, 2025

NOTE: I have not yet tested this due to lack of proper environment, will try to do so ASAP if you cant.

Removed the single qoutes around {{ flag }} => {{ value }} since the config does not work with them in place. According to https://github.com/MISP/MISP/blob/2.5/app/Config/database.default.php the database flags should be without quoutes.

Note that MISP2.5 requres the flag
'flags' => [
PDO::ATTR_STRINGIFY_FETCHES => true
]

to have the API work as expected so this might be hardcoded in? I dont know if 2.4 compability is still needed.

Removed the single qoutes around  {{ flag }} => {{ value }} since the config does not work with them in place. According to https://github.com/MISP/MISP/blob/2.5/app/Config/database.default.php the database flags should be without quoutes.

Note that MISP2.5 requres the flag 
        'flags' => [
            PDO::ATTR_STRINGIFY_FETCHES => true
        ]

to have the API work as expected so this might be hardcoded in? I dont know if 2.4 compability is still needed.
@dygland
Copy link
Author

dygland commented Apr 25, 2025

This has now been tested, works as intended. Ie the results from api requests are stringified if you supply that flag per misp project instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant