Skip to content

RBAC 수정으로 인한 모듈 생성 버그 #48

Description

@hojun-lee99

작업 설명

  • organization이 없는 유저 모듈 생성시 500 에러 발생
HTTP/1.1 500 Internal Server Error
date: Fri, 26 Jun 2026 08:32:49 GMT
server: uvicorn
content-length: 21
content-type: text/plain; charset=utf-8
connection: close
Vary: Accept-Encoding

Internal Server Error

원인은 apps.organization_id FK 오류였습니다.

앱 생성 시 AppService.create_app()organization_id가 없으면 user_id를 그대로 넣고 있었는데, 해당 user_id와 같은 id의 row가 organization 테이블에 없었습니다.

로그 핵심:

violates foreign key constraint "apps_organization_id_fkey"
Key (organization_id)=(...) is not present in table "organization".

그래서 POST /api/v1/apps가 500으로 터진 겁니다.

상세 작업

참고 사항

  • 로그인하고 모듈 생성해서 버그 확인 부탁드립니다.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

Priority

None yet

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions