lablup / lablup/backend.ai

DELETE /api/scaling-groups/{name} fails with non-ASCII characters in group name

Open
#6,117 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Problem Description

The DELETE endpoint for scaling groups (`/api/scaling-groups/{name`}) may fail when the scaling group name contains non-ASCII characters (e.g., Korean characters).

## Expected Behavior

The endpoint should properly handle scaling group names with non-ASCII characters, including Korean, and successfully delete the scaling group.

## Current Behavior

The endpoint may fail to properly process requests when the scaling group name in the URL path contains non-ASCII characters due to URL encoding issues.

## Steps to Reproduce

1. Create a scaling group with a Korean name (e.g., "테스트그룹")
1. Attempt to delete it using DELETE /api/scaling-groups/테스트그룹
1. Observe the failure

## Acceptance Criteria

- Verify the issue exists with Korean and other non-ASCII characters
- Fix URL encoding/decoding to properly handle non-ASCII characters
- Ensure the endpoint works correctly with both ASCII and non-ASCII group names
- Add tests to prevent regression

JIRA Issue: BA-2574

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.