aboutcode-org / aboutcode-org/dejacode

BUG: creating package brow6el-main.tar.gz generates unexpected PURL values

Aberta
#449 3 comentários 0 reações 1 responsável Reivindicada por @tdruez Ver no GitHub
bug design needed enhancement
Linguagem predominante
Python
Estrelas
50
Forks
27
Merge médio
4h 51min
PRs com merge (30d)
11

Descrição

**Describe the bug**
Creating a package in DejaCode from https://codeberg.org/janantos/brow6el/archive/main.tar.gz results in unexpected PURL values.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to Packages user list view
2. Click on Add Package
3. enter https://codeberg.org/janantos/brow6el/archive/main.tar.gz and click Add
4. Note that the generated PURL is `pkg:generic/main.tar.gz?download_url=https://codeberg.org/janantos/brow6el/archive/main.tar.gz` even though it correctly generates the Filename field as `brow6el-main.tar.gz` and it correctly records the Download URL.

**Expected behavior**
The Name value in the PURL should be `brow6el-main-tar-gz` rather than `main.tar.gz`

**Context (OS, Browser, Device, etc.):**
DejaCode v5.5.0

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.