Skip to content

Commit

Permalink
fix: quote username on query vote (#12316)
Browse files Browse the repository at this point in the history
Co-authored-by: Mayur Singal <39544459+ulixius9@users.noreply.github.com>
(cherry picked from commit 82d53b4)
  • Loading branch information
TeddyCr authored and mohityadav766 committed Jul 6, 2023
1 parent 90a0d00 commit 8d972a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ public PutResponse<T> updateVote(String updatedBy, UUID entityId, VoteRequest re
T originalEntity = dao.findEntityById(entityId);

// Validate User
User user = daoCollection.userDAO().findEntityByName(updatedBy);
User user = daoCollection.userDAO().findEntityByName(FullyQualifiedName.quoteName(updatedBy));
UUID userId = user.getId();
if (Boolean.TRUE.equals(user.getDeleted())) {
throw new IllegalArgumentException(CatalogExceptionMessage.deletedUser(userId));
Expand Down

0 comments on commit 8d972a2

Please sign in to comment.