Skip to content

download release attachment failed when using url with subpath #38345

Description

@binLep

Gitea Version

1.26.4

What happened?

couldn't download release attachment

How are you running Gitea?

docker

services:
  gitea:
    image: gitea/gitea:latest
    hostname: gitea-gitea
    container_name: gitea-gitea
    restart: always
    privileged: true
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - /data/gitea/data:/data
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=mysql
      - GITEA__database__HOST=mysql:3306
      - GITEA__database__NAME=gitea
      - GITEA__database__USER=gitea
      - GITEA__database__PASSWD=ssssssssss
    healthcheck:
      test: ["CMD-SHELL", "curl -f http://gitea-gitea:3000 > /dev/null || exit 1"]
      interval: 10s
      timeout: 5s
      retries: 5
    depends_on:
      - mysql
    networks:
      network-aaa:
        ipv4_address: 172.23.1.3

config(partial)

[server]
APP_DATA_PATH = /data/gitea
DOMAIN = pi.binlep.local
SSH_DOMAIN = nas.binlep.local
HTTP_PORT = 3000
ROOT_URL = https://192.168.3.200:9443/heihei/gitea/
DISABLE_SSH = false
SSH_PORT = 22
SSH_LISTEN_PORT = 22
LFS_START_SERVER = true
LFS_JWT_SECRET = ssssssssssssssssssssssssssssssss
OFFLINE_MODE = false

using url to visit: https://192.168.3.200:9443/heihei/gitea/sync/emqx/releases/download/v5.8.6/emqx-linux-loongarch64-v5.8.6.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/not-a-bugThe reported issue is the intended behavior or the problem is not inside Gitea

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions