skillhub/server
FenjuFu 34dc4fa29c fix(compat): percent-encode ClawHub download redirect Location
Downloading a skill whose slug is non-ASCII (e.g. a Chinese name) through
the ClawHub CLI compatibility route failed: the 302 Location header was
built by string-concatenating the raw slug, and Tomcat encodes header
values as ISO-8859-1, so a character outside 0-255 makes it drop the
Location header entirely and the download breaks. The skillhub CLI path
was unaffected because it doesn't go through this redirect.

Build the Location with UriComponentsBuilder.pathSegment(...).encode(), so
each segment is percent-encoded while the '/' separators stay literal.
"需求" becomes %E9%9C%80%E6%B1%82 and the header is ISO-8859-1-writable.

Fixes #658

Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
2026-08-02 02:18:36 +08:00
..
.mvn docs: add Maven mirror config and troubleshooting guide for China developers (#233) 2026-04-07 09:50:07 +08:00
scripts feat(notification): add in-app notifications and harden delivery 2026-03-23 12:31:28 +08:00
skillhub-app fix(compat): percent-encode ClawHub download redirect Location 2026-08-02 02:18:36 +08:00
skillhub-auth Merge pull request #607 from gale-popai/fix/device-auth-redis-typing 2026-07-29 03:37:25 +08:00
skillhub-domain fix(governance): safely delete version dependencies 2026-07-30 17:52:08 +08:00
skillhub-infra fix(governance): safely delete version dependencies 2026-07-30 17:52:08 +08:00
skillhub-notification fix(notification): keep SSE live push streams open (#524) 2026-06-16 11:57:49 +08:00
skillhub-search fix(search): make index writes REQUIRES_NEW to survive async caller-runs fallback 2026-07-22 18:54:38 +08:00
skillhub-storage fix(storage): disable chunked encoding for Aliyun OSS compatibility 2026-05-06 13:56:55 +08:00
.dockerignore feat(staging): optimize staging build with local Maven packaging 2026-03-14 14:21:06 +08:00
Dockerfile fix(storage): defer S3 bucket verification until first access (#289) 2026-04-12 15:24:09 +08:00
Dockerfile.dev fix(storage): defer S3 bucket verification until first access (#289) 2026-04-12 15:24:09 +08:00
mvnw feat: initialize Maven multi-module project structure 2026-03-11 22:52:04 +08:00
mvnw.cmd feat: initialize Maven multi-module project structure 2026-03-11 22:52:04 +08:00
pom.xml feat(notification): add in-app notifications and harden delivery 2026-03-23 12:31:28 +08:00