aboutcode-org / aboutcode-org/dejacode

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

未关闭
#449 3 条评论 0 个 reaction 已指派 1 人 已被 @tdruez 认领 在 GitHub 查看
bug design needed enhancement
主要语言
Python
星标
50
派生
27
平均合并
4 小时 51 分钟
30 天内合并 PR
11

描述

**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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。