Skip to content

fix(schedule): 일정 날짜와 기간의 서버 검증 추가 - #226

Closed
wizlife wants to merge 1 commit into
eGovFramework:mainfrom
wizlife:fix/schedule-period-validation
Closed

wizlife wants to merge 1 commit into
eGovFramework:mainfrom
wizlife:fix/schedule-period-validation

Conversation

@wizlife

@wizlife wizlife commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

수정 사유 Reason for modification

  • 버그수정 Bug fixes
  • 기능개선 Enhancements
  • 기능추가 Adding features
  • 기타 Others

일정 등록·수정 API에 종료가 시작보다 빠른 기간이나 존재하지 않는 날짜를 전달해도 저장 서비스가 호출됐습니다.

수정된 소스 내용 Modified source

React가 보내는 14자리 날짜·시각의 유효성과 시작 ≤ 종료를 검사합니다. 잘못된 입력에는 기존 resultCode 900을 반환하고 첨부파일·일정 저장을 호출하지 않습니다.

JUnit 테스트 JUnit tests

  • JUnit 테스트 JUnit tests
  • 수동 테스트 Manual testing

JUnit 94건이 통과했습니다. 잘못된 날짜·시각·길이·기간의 저장 차단과 정상 기간, 시작=종료, 윤년·연도 경계, 첨부파일 유무를 확인했습니다.

MockMvc multipart POST/PUT 요청으로 검증했으며 파일·일정 서비스는 대역입니다. 실제 DB·디스크 저장과 브라우저 통합 테스트는 수행하지 않았습니다. API 입력은 yyyyMMddHHmmss 14자리 형식을 사용해야 합니다.

mvn '-Dtest=EgovSchedulePeriodValidationTest,EgovIndvdlSchdulManageApiController*Test' test

테스트 브라우저 Test Browser

  • Chrome
  • Firefox
  • Edge
  • Safari
  • Opera
  • Internet Explorer
  • 기타 Others

테스트 스크린샷 또는 캡처 영상 Test screenshots or captured video

자동 테스트로 확인했으며 별도 화면 캡처는 없습니다.

Tests run: 94, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESS

@eGovFrameSupport

eGovFrameSupport commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

표준프레임워크에 대한 지속적인 참여에
대단히 감사드립니다.

해당 PR은 검증 후 반영 처리되었으므로 close 합니다.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants