Skip to content

A validation issue #4

@FadyAyad

Description

@FadyAyad

when you validate the hash you make sure that is unique, but what if the hash that the UrlHasher class creates is already in the database? You throw a ValidationException and returns back to the user without telling him what went wrong. What you should have done is making sure that the LittleService class gets a unique hash from the UrlHasher before trying to inject it in the database.

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