Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Conversation

open-schnick
Copy link
Member

As always, changed some .feature files. Updated Tests and businessServices.

@open-schnick open-schnick added the Feature Feature Label label Nov 14, 2020
@open-schnick open-schnick requested a review from a team November 14, 2020 11:40
@open-schnick
Copy link
Member Author

ups. fix broke tests.

@open-schnick open-schnick marked this pull request as draft November 14, 2020 11:46
@open-schnick open-schnick marked this pull request as ready for review November 14, 2020 11:54
@codecov
Copy link

codecov bot commented Nov 14, 2020

Codecov Report

Merging #27 (27d6b0e) into master (6f8dba5) will increase coverage by 0.53%.
The diff coverage is 83.60%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #27      +/-   ##
============================================
+ Coverage     61.66%   62.19%   +0.53%     
- Complexity      172      175       +3     
============================================
  Files            55       56       +1     
  Lines           566      574       +8     
  Branches         23       25       +2     
============================================
+ Hits            349      357       +8     
  Misses          211      211              
  Partials          6        6              
Impacted Files Coverage Δ Complexity Δ
...efighter/rest/configuration/RestConfiguration.java 100.00% <ø> (ø) 2.00 <0.00> (ø)
...fighter/rest/domain/user/rest/UserRestService.java 21.73% <16.66%> (+2.69%) 1.00 <1.00> (ø)
.../java/de/filefighter/rest/domain/common/Utils.java 75.00% <100.00%> (+75.00%) 6.00 <3.00> (+3.00)
...ain/token/business/AccessTokenBusinessService.java 100.00% <100.00%> (+2.56%) 14.00 <2.00> (+1.00)
...domain/user/business/UserAuthorizationService.java 100.00% <100.00%> (ø) 9.00 <9.00> (?)
...rest/domain/user/business/UserBusinessService.java 100.00% <100.00%> (ø) 10.00 <2.00> (-10.00)
...hter/rest/domain/user/rest/UserRestController.java 100.00% <100.00%> (ø) 8.00 <2.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f8dba5...27d6b0e. Read the comment docs.

@open-schnick
Copy link
Member Author

Codecov Report

Merging #27 (27d6b0e) into master (6f8dba5) will increase coverage by 0.53%.

WOA

Copy link
Member

@qvalentin qvalentin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☑️ Read it
☑️ Tested with Swagger

looks good to me

byte[] decodedValue = Base64.getDecoder().decode(base64encodedUserAndPassword);
decodedUsernameUndPassword = new String(decodedValue, StandardCharsets.UTF_8.toString());
} catch (UnsupportedEncodingException | IllegalArgumentException ex) {
LOG.warn("Found UnsupportedEncodingException in {}", base64encodedUserAndPassword);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe you shoud not log the password :)


String[] split = decodedUsernameUndPassword.strip().split(":");

if (split.length != 2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so ":" is not allowed in the password?

@open-schnick open-schnick merged commit 3dd717d into master Nov 14, 2020
@open-schnick open-schnick deleted the feature/FF-109 branch November 14, 2020 12:20
Gimleux pushed a commit that referenced this pull request May 20, 2021
* FF-109 Rework BusinessServices Logic

* FF-110 Fixed Tests and Bugs.

* Fixed Tests.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature Feature Label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants