Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Coduz
Copy link
Contributor

@Coduz Coduz commented Dec 12, 2022

This PR fixes an improper segregation of scopes in AccountService.

Related Issue
None

Description of the solution adopted
Fixed the invocations of AcccountService.find(...) to always perform checkAccess

Screenshots
None

Any side note on the changes made
None

@Coduz Coduz added the Bug This is a bug or an unexpected behaviour. Fix it! label Dec 12, 2022
@codecov
Copy link

codecov bot commented Dec 12, 2022

Codecov Report

Merging #3670 (392863e) into develop (a8ace6c) will decrease coverage by 12.39%.
The diff coverage is 56.98%.

❗ Current head 392863e differs from pull request most recent head 12af987. Consider uploading reports for the commit 12af987 to get more accurate results

Impacted file tree graph

@@              Coverage Diff               @@
##             develop    #3670       +/-   ##
==============================================
- Coverage      43.91%   31.51%   -12.40%     
+ Complexity       184      120       -64     
==============================================
  Files           1686     1686               
  Lines          32168    32183       +15     
  Branches        2640     2642        +2     
==============================================
- Hits           14127    10143     -3984     
- Misses         17195    21556     +4361     
+ Partials         846      484      -362     
Impacted Files Coverage Δ
...api/resources/v1/resources/JobStepDefinitions.java 0.00% <0.00%> (ø)
.../service/job/step/internal/JobStepServiceImpl.java 1.06% <0.00%> (-34.58%) ⬇️
...a/service/account/internal/AccountServiceImpl.java 48.68% <52.30%> (-28.86%) ⬇️
...pse/kapua/commons/service/internal/ServiceDAO.java 59.93% <86.36%> (-6.11%) ⬇️
...lipse/kapua/service/job/internal/JobQueryImpl.java 0.00% <0.00%> (-100.00%) ⬇️
...kapua/transport/mqtt/MqttResponseTimeoutTimer.java 0.00% <0.00%> (-100.00%) ⬇️
.../kapua/service/job/internal/JobListResultImpl.java 0.00% <0.00%> (-100.00%) ⬇️
.../kapua/service/tag/internal/TagListResultImpl.java 0.00% <0.00%> (-100.00%) ⬇️
...pse/kapua/service/device/call/kura/KuraMethod.java 0.00% <0.00%> (-100.00%) ⬇️
...ua/service/job/step/internal/JobStepQueryImpl.java 0.00% <0.00%> (-100.00%) ⬇️
... and 277 more

Signed-off-by: Alberto Codutti <[email protected]>
Signed-off-by: Alberto Codutti <[email protected]>
Signed-off-by: Alberto Codutti <[email protected]>
Signed-off-by: Alberto Codutti <[email protected]>
@Coduz Coduz force-pushed the fix-accountServiceImproperSegregation-new branch from 663e634 to 12af987 Compare December 12, 2022 12:08
@Coduz Coduz merged commit 22d2a7f into eclipse-kapua:develop Dec 12, 2022
@Coduz Coduz deleted the fix-accountServiceImproperSegregation-new branch December 12, 2022 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug This is a bug or an unexpected behaviour. Fix it!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant