261021_01_ENH: 2차 마이그레이션 완료
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
- Do not implement assign: current legacy and new frontend sources contain no caller. Implement only GET /project/{projectType}/{pkey}/derived/list and bookmark POST/PUT/DELETE for this phase; keep singular project/bookmark paths.
|
||||
- DerivedMapper uses survey sources and the KON getOnlyDerivedList SELECT and order. Reuse QuestionService.organize for expansion; expose only original derived-list fields, without reverse/missingValue additions or regular-question/profile filters. Management list visibility is now role 1001 all teams, otherwise authenticated userTeam only; do not apply this filter to regular question/report metadata.
|
||||
- Bookmark mutations use the kart session (Report DB), existing columns and pure pkey. Preserve timestamp ID, per-page MAX+1 insertion order, JSON text and successful create/update ID responses. Delete returns a JSON boolean: true after successful deletion; frontend owns presentation messages. Keep standard errors for missing/conflicting targets and persistence failures. Owner/team come from RequestUserContext. Update only title/info/JSON/isOpen and constrain lookup/mutation by pkey+ID.
|
||||
- Preserve legacy deletion order adjustment across all pages of the same pkey; do not add a page condition. Reordering and deletion must roll back together through kartTransactionManager. Do not add schema constraints or pretend existing timestamp/MAX+1 concurrency guarantees uniqueness.
|
||||
- Per user decision, bookmark update/delete require stored MKEY to exactly match RequestUserContext.userId; team membership and administrator role grant no exception. Enforce ownership before audit/reordering and in mutation SQL. Deletion order adjustment applies only within the same pkey and the deleted bookmark's stored BOOKMARK_PAGE; never trust a request-supplied page for this scope. Reordering and deletion must roll back together through kartTransactionManager. Do not add schema constraints or pretend existing timestamp/MAX+1 concurrency guarantees uniqueness.
|
||||
- Call LogService for Insert/Update/Delete Bookmark with NEW/ORIGIN snapshots. Site audit writes use REQUIRES_NEW so best-effort audit failure cannot mark the business transaction rollback-only. Keep the legacy pre-delete audit point; such a log may remain if deletion fails.
|
||||
- Validation of create-page presence happens before service invocation; update-page is optional and does not change stored page. Preserve empty title/info and raw bookmark JSON text. Missing scoped IDs return 404, disappearing mutation targets 409, persistence failures use common error handling rather than empty success responses.
|
||||
## Upload forms and variable guide downloads
|
||||
@@ -133,6 +133,8 @@
|
||||
|
||||
## Share links and External authentication
|
||||
|
||||
- Role constants: REPORT_MEMBER_ROLE=9001 preserves account assignment policies; EXTERNAL_URL_COPY_ROLE=9002 for pageOnly=false (four report screens); EXTERNAL_PAGE_COPY_ROLE=9003 for pageOnly=true (specified screen). External login returns accessToken/user/link, using the same user claims for signing and response. Keep EXTERNAL:{urlKey}, CLIENT name, KART_EXTERNAL team and empty company. Frontend validates returned identity and does not calculate roles. Any External role/team/id marker enters External validation; require all markers and stored link type to match, preserving project/page/API allowlists, bookmark read/application and aggregate/Quota Excel. Reject old 9001 External identities. No DB schema/data change or new ordinary Export/Import role restriction.
|
||||
|
||||
- POST /project/{projectType}/{pkey}/share accepts realUrl and P/U; GET /share/{urlKey} is authenticated metadata; public POST /external/{urlKey}/login validates the link, issues common 24-hour JWT and increments landing count exactly once. Preserve case-sensitive URL_KEY and original /External/ public link path.
|
||||
- New REPORT_URL rows dual-write PKEY/PROJECT_TYPE/SKEY; reuse existing compatible rows without mass backfill. Legacy-only rows decode SKEY internally; partial fields, unknown type, NEWSSAK/mixed markers and mismatched keys are rejected. Do not expose SKEY or run DDL/shared DB changes.
|
||||
- The approved legacy raw AES-CBC key/IV are configured literally under kri.kart.share, without printing secrets. This narrowly scoped JCE adapter is necessary because common AES always derives its key through PBKDF2 and cannot reproduce original ciphertext.
|
||||
|
||||
Reference in New Issue
Block a user