Skip to content

CbReport validation, report ids & ints #3

@jjguy

Description

@jjguy

feed.py", line 175, in validate() has the following line:

    if not re.match("^[a-zA-Z0-9-_.]+$", self.data["id"]):

The use of regex presumes the report id field is a string. If it's an int, this line blows up with an obscure error.

Validation should either (a) exception on int report ids or (b) coerce ints to strings.

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