Skip to content

Raw spec not provided to Specification class constructor on clone, causing internal server error #2046

@CodeAdraas

Description

@CodeAdraas

Hi, I don't really know the details as of why, but I notice that after any POST request the specification in the SwaggerUI middelware instance clones itself. However, in the cloning process, the Specification constructor is provided with the validated spec mapping instead of the raw spec the constructor actually expects. Then consequently after loading the spec from it's served URI, the server crashes.
By changing self._spec to self._raw_spec on line 209 in connexion/spec.py seems to fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions