You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue tracker is a tool to address bugs in Eve itself.
Please use Stack Overflow for general questions about using Eve or issues not
related to Eve (see http://python-eve.org/support).
If you'd like to report a bug in Eve, fill out the template below. Provide
any any extra information that may be useful / related to your problem.
Ideally, create an MCVE, which helps us
understand the problem and helps check that it is not caused by something in
your code.
Expected Behavior
When uuidRepresentation is not set in MONGO_OPTIONS generating etags should still be possible.
Since no uuidRepresentation is present in MONGO_OPTIONS, the default option is selected, which is an int, not a string. A simple fix would be changing line 350 in eve/utils.py from config.MONGO_OPTIONS.get("uuidRepresentation", UuidRepresentation.STANDARD) to config.MONGO_OPTIONS.get("uuidRepresentation", "standard")
This issue tracker is a tool to address bugs in Eve itself.
Please use Stack Overflow for general questions about using Eve or issues not
related to Eve (see http://python-eve.org/support).
If you'd like to report a bug in Eve, fill out the template below. Provide
any any extra information that may be useful / related to your problem.
Ideally, create an MCVE, which helps us
understand the problem and helps check that it is not caused by something in
your code.
Expected Behavior
When
uuidRepresentation
is not set inMONGO_OPTIONS
generating etags should still be possible.Actual Behavior
Since no
uuidRepresentation
is present inMONGO_OPTIONS
, the default option is selected, which is anint
, not a string. A simple fix would be changing line 350 ineve/utils.py
fromconfig.MONGO_OPTIONS.get("uuidRepresentation", UuidRepresentation.STANDARD)
toconfig.MONGO_OPTIONS.get("uuidRepresentation", "standard")
or add a field 4 to the
uuid_map
on line 343:Environment
The text was updated successfully, but these errors were encountered: