Skip to content

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

@AxelPrel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions