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

Fix User Issue for reset password, and encode usernames #14314

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

mohityadav766
Copy link
Contributor

@mohityadav766 mohityadav766 commented Dec 8, 2023

Describe your changes:

  • Fix Username and encode in password reset

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

@mohityadav766 mohityadav766 added backend safe to test Add this label to run secure Github workflows on PRs labels Dec 8, 2023
@mohityadav766 mohityadav766 self-assigned this Dec 8, 2023
@mohityadav766 mohityadav766 requested a review from a team as a code owner December 8, 2023 06:20
@@ -188,7 +190,9 @@ public void sendPasswordResetLink(UriInfo uriInfo, User user, String subject, St
String passwordResetLink =
String.format(
"%s/users/password/reset?user=%s&token=%s",
getSmtpSettings().getOpenMetadataUrl(), user.getFullyQualifiedName(), mailVerificationToken);
getSmtpSettings().getOpenMetadataUrl(),
URLEncoder.encode(user.getName(), StandardCharsets.UTF_8),
Copy link
Collaborator

Choose a reason for hiding this comment

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

getName will not add double quote to the name

@mohityadav766 mohityadav766 merged commit 2cfa562 into main Dec 8, 2023
@mohityadav766 mohityadav766 deleted the fixUserIssueAndEncodeUser branch December 8, 2023 06:32
Copy link

sonarqubecloud bot commented Dec 8, 2023

[open-metadata-ingestion] 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
No Duplication information No Duplication information

Copy link

sonarqubecloud bot commented Dec 8, 2023

[open-metadata-ingestion] Please retry analysis of this Pull-Request directly on SonarCloud.

MrVinegar pushed a commit to MrVinegar/OpenMetadata that referenced this pull request Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants