Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#PAR-384 : GoogleMap isMyLocationEnabled property Exception 처리 #230

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

nohjunh
Copy link
Member

@nohjunh nohjunh commented Oct 14, 2023

Description

마이페이지에서 기록 조회 시, 사용자로부터 ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION 권한이 허용되지 않았으면
java.lang.SecurityException: my location requires permission ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION 발생
->
러닝을 위한 모든 기능에 대해서는 권한 체크를 진행해 이러한 Exception이 발생하지 않지만, 마이페이지 같은 경우 권한이 없더라도 기록 조회 자체는 가능하도록 해야 한다.
따라서, 예외를 발생시키는 Property인 isMyLocationEnabled를 마이페이지에서 접근한 경우 false로 설정함으로써 방지한다.

@nohjunh nohjunh added the 🐛 버그 버그를 제보한다. label Oct 14, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@nohjunh nohjunh merged commit 49119e6 into develop Oct 14, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 버그 버그를 제보한다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant