Skip to content

fix/repo url malformed#1991

Open
alanpeixinho wants to merge 1 commit into
kernelci:mainfrom
profusion:fix/repo-url-malformed
Open

fix/repo url malformed#1991
alanpeixinho wants to merge 1 commit into
kernelci:mainfrom
profusion:fix/repo-url-malformed

Conversation

@alanpeixinho

Copy link
Copy Markdown
Contributor

What it is

Defensive check for malformed url on git repository url submissions.
Altough it is not an observed scenario, we are now making sure a malformed input cannot break the ingester.

How to test

  1. Start a local database
  2. In the submissions folder include invalid git_repository_url on the json submissions.
  3. Make sure it cannot cause a crash.

Parse tree names from URL path segments and skip unparseable URLs instead of raising AttributeError during ingest.

Closes kernelci#1952

Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants