Skip to content

fix(afternote): 등록 실패 시 서버 5xx 원문(내부 SQL 포함)을 스낵바에 그대로 노출 — 일반 문구 치환 #511

Closed

Description

@OnlyReadOneBook

📜 Overview (Required)

애프터노트 등록이 서버 오류(5xx)로 실패하면 클라이언트가 서버 응답 message 를 그대로 스낵바에 표시한다. 실서버(Mock OFF) 런타임 실측에서 POST /afternotes 가 500 을 반환할 때, 스낵바에 서버 내부 오류: could not execute statement [Field 'created_at' doesn't have a default value] [insert into afternote (category_type,leave_message,sort_order,title,user_id) values (?,?,?,?,?)] 처럼 내부 SQL·컬럼명이 포함된 원문이 사용자에게 그대로 노출된다. AfternoteEditorViewModel.handleSaveFailure 가 검증 예외가 아닌 경우 error = e.message(서버 원문)를 싣고, generic 폴백(afternote_editor_save_failed_generic)은 message == null 일 때만 동작하기 때문이다. 5xx(또는 비검증 서버 오류)는 서버 원문 대신 일반 사용자 문구로 치환한다.

📍 Note (Optional)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions