fix(backend): add trailing slash to Gerrit account validation API#1032
fix(backend): add trailing slash to Gerrit account validation API#1032ch15084 wants to merge 1 commit intowecode-ai:mainfrom
Conversation
Gerrit REST API can return 401 Unauthorized for /accounts/self in some environments due to redirection and authentication context loss. Adding a trailing slash ensures the request hits the final endpoint directly.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe Gerrit provider's Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Gerrit REST API 在某些环境下(如特定反向代理后)对 /accounts/self 会触发重定向,导致认证上下文丢失并返回 401。添加末尾斜杠可直接访问最终接口,提高兼容性。
Summary by CodeRabbit
Bug Fixes
Tests