From 6948a4aff93566e2c69a8c18b03af7db108146f5 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Tue, 2 Sep 2025 18:12:12 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20Gateway=20=EB=B3=80=EC=88=98=EB=AA=85?= =?UTF-8?q?=20=ED=98=BC=EB=9E=80=20=EB=AC=B8=EC=84=9C=ED=99=94=20-=20x=5Fu?= =?UTF-8?q?ser=5Fid=20=EB=B3=80=EC=88=98=EA=B0=80=20=EC=8B=A4=EC=A0=9C?= =?UTF-8?q?=EB=A1=9C=EB=8A=94=20UUID=20=EC=A0=80=EC=9E=A5=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EC=A0=90=20=EB=AA=85=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../250901_rb8001_chat_history_implementation_issues.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/troubleshooting/250901_rb8001_chat_history_implementation_issues.md b/troubleshooting/250901_rb8001_chat_history_implementation_issues.md index 4c7f5b8..0570fdb 100644 --- a/troubleshooting/250901_rb8001_chat_history_implementation_issues.md +++ b/troubleshooting/250901_rb8001_chat_history_implementation_issues.md @@ -53,6 +53,15 @@ GET /gateway/api/history?limit=1 - username 변환 시도가 불필요했음 - 직접 UUID 전달로 해결 +### 3.3 변수명 혼란 (2025-09-02 추가) +- **현재 상태**: Gateway에서 `x_user_id` 변수명 사용하지만 실제로는 UUID 값 저장 +- **혼란 요소**: + - 변수명이 `x_user_id`지만 JWT sub의 UUID를 그대로 사용 + - `get_user_by_username()` 함수 정의되어 있으나 실제 사용 안 함 + - 주석과 변수명이 실제 값(UUID)과 불일치 +- **작동**: 정상 (UUID를 그대로 전달하므로 문제 없음) +- **주의**: 향후 코드 수정 시 변수명 때문에 착각 가능 + --- ## 4. JWT Authorization 헤더 미전달