Skip to content

[18.0] server_environment: crash when a value contains a % #265

Description

@AxelPrel

Module

server_environment

Describe the bug

when a % is present in a value in my odoo.conf, i get this error when starting the server
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%rod'

To Reproduce

Affected versions: at least 18
Edit server_environment/tests/testfiles/testing/base.conf, adding a % in any value. it will crash upon running the tests.

Expected behavior
I want the value to be taken as is

Additional context
I know that the problem can be avoided by doubling the %, but interpolation should be by default disabled.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions