[Package Issue]: NetEase.UURemote - installer download fails with HTTP 403 (CDN now requires key1/key2 URL auth)

未关闭
#487,690 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
yaml
领域
tooling

调研方向

The affected manifests for versions 4.47.1.5286, 4.48.0.5446, 4.48.2.5754 and 4.48.3.5946 hold the bare InstallerUrl under NetEase.UURemote, and that URL returns 403 without the key1/key2 query. Confirm the signed URL from the publisher's download endpoint (the 302 Location) returns 200 and matches InstallerSha256, then check whether the signed URLs expire before editing the InstallerUrl values. Done means the updated manifests pass validation and winget upgrade downloads 4.48.3.5946 with a matching hash.

由索引模型根据 Issue 内容生成。

描述

Needs-Triage
Category of the issue

Installation issue.

Please confirm these before moving forward
  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.
Brief description of your issue

winget upgrade --id NetEase.UURemote fails while downloading the installer:

(2/3) 已找到 UU远程 [NetEase.UURemote] 版本 4.48.3.5946
正在下载 https://a56.gdl.netease.com/UURemote_Setup_4.48.3.5946_1123114709_gwqd.exe
执行此命令时发生意外错误:
Download request status is not success.
0x80190193 : Forbidden (403).

The manifest for 4.48.3.5946 uses the bare object URL with no CDN auth query. The host (a56.gdl.netease.com, served by Volcengine CDN) now enforces paired URL authentication: requests without valid key1 + key2 are denied at the edge with byte-error-code: 00022 / deny code 22. The archived installer itself is unchanged — the official download API still serves a byte-identical file, just behind a signed URL.

Steps to reproduce
  1. Have NetEase.UURemote installed (e.g. 4.48.2.5754).
  2. Run winget upgrade --id NetEase.UURemote.
  3. Download of InstallerUrl fails with HTTP 403.
Actual behavior
HTTP/2 403
server: Byte-nginx
byte-error-code: 00022
x-exception-info: deny code 22
cdn-source: volcengine

The denial is host-wide, not specific to one file — the following also return 403:

  • https://a56.gdl.netease.com/ (host root, and any non-existent path)
  • https://a56.gdl.netease.com/UURemote_Setup_4.48.2.5754_1120085908_gwqd.exe
  • https://a56.gdl.netease.com/UURemote_Setup_4.48.0.5446_1116133031_gwqd.exe
  • https://a56.gdl.netease.com/UURemote_Setup_4.47.1.5286_1114101745_gwqd.exe

i.e. the latest several manifests are all affected, not just 4.48.3.5946.

Expected behavior

winget upgrade downloads and installs 4.48.3.5946.

Evidence: the same object is still served, with a signed URL

The publisher's own download endpoint 302-redirects to the identical object plus the auth parameters:

GET https://api.nrd.nie.163.com/api/v1/release/dl/1?channel=gwqd
302 -> https://a56.gdl.netease.com/UURemote_Setup_4.48.3.5946_1123114709_gwqd.exe?key1=...&key2=...&n=uuyc_4.48.3.exe

Query-parameter behavior on the same object:

URL Result
no query 403
?n=uuyc_4.48.3.exe only 403
?key2=... only 403
?key1=... only 403
?key1=...&key2=... 200, 98,384,048 bytes

SHA256 of the file downloaded from the signed URL:

46B6C35970C46067A5772A14F76232DCED3FA11A5EFDF736DA9485A061CD7C75

which matches InstallerSha256 in the current manifest exactly, so this is purely a URL/auth regression — no new package version is required.

Suggested fix

Update InstallerUrl for the affected versions to the URL returned by the publisher's download endpoint (the 302 Location, i.e. with key1/key2/n query) — the hash stays the same. If the tokens are known to rotate, the alternative is to ask the publisher (NetEase) to stop enforcing URL auth for these installer objects.

Affected manifests observed: 4.47.1.5286, 4.48.0.5446, 4.48.2.5754, 4.48.3.5946.

Environment
[winget --info]
Windows 程序包管理器 v1.30.310
Windows: Windows.Desktop v10.0.19045.7846
系统体系结构: X64
软件包: Microsoft.DesktopAppInstaller v1.30.310.0
Screenshots and Logs
名称   ID               版本        可用        源
------------------------------------------------------
UU远程 NetEase.UURemote 4.48.2.5754 4.48.3.5946 winget
主要语言
没有语言数据
星标
11.4k
派生
13.8k
平均合并
1 小时 39 分钟
30 天内合并 PR
666

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/winget-pkgs 的其他 Issue

查看 microsoft/winget-pkgs 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 发到你的邮箱

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