[BUG] API suffix not allowed to duplicate for version sets
还没有人认领这个 Issue。
评估
调研方向
未指定源文件或测试。首先使用同一版本集中的两个 API 版本和相同的 API 后缀重现迁移,然后跟踪创建 API 的 APIops 部署路径。迁移成功且没有重复路径验证错误,并且现有行为仍由测试覆盖,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Release version
v6.0.2-alpha.1.0.2
Describe the bug
APIs have same API suffix of versions, it throws an error
##[error]System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/*********resourceGroups/Resource-group/providers/Microsoft.ApiManagement/service/APIM/apis/APIr-v2;rev=2?api-version=2023-09-01-preview failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"path","message":"Cannot create API 'API-v2' with the same Path 'glb/supplier' as API 'API-v03' unless it's a part of the same version set"}]}}'.
Expected behavior
I can manually create new version of API in the same version set with same API suffix which is not possible via APIops
Actual behavior
APIops throws an error, not allowing to create API version sets with same API suffix
Reproduction Steps
- Create an API in API management
- create version 1 and 2 with same API suffix
- Migrate API via APIops
- 主要语言
- C#
- 星标
- 448
- 派生
- 248
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/apiops 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 3/5 1-2 天 新手友好度 70/100
-
难度 4/5 3-5 天 新手友好度 55/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
难度 5/5 一周以上 新手友好度 35/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
microsoft/onnxruntime-genai#2633 ·
维护者通常 1 天内回复
-
python triage
难度 2/5 1-3 小时 新手友好度 85/100
microsoft/semantic-kernel#14491 ·
维护者通常 2 天内回复
-
area:jobads-cv FE mvp P3
难度 2/5 1-3 小时 新手友好度 88/100
klasolsson81/jobbliggaren#1878 ·
维护者通常 1 天内回复
-
bug help wanted
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
SubtitleEdit/subtitleedit#15331 · 2 条评论 ·
维护者通常 1 天内回复