Skip to content

Commit

Permalink
fix: User (with a capital letter in the username) cannot post to a sp…
Browse files Browse the repository at this point in the history
…ace from the global stream - MEED-7905 (#4259)

Resolve case-sensitivity issue by changing member field type to keyword
  • Loading branch information
AzmiTouil authored Dec 10, 2024
1 parent f83f085 commit da498d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public String getMapping() {
.append(" \"pending\" : {\"type\" : \"keyword\"},\n")
.append(" \"invited\" : {\"type\" : \"keyword\"},\n")
.append(" \"manager\" : {\"type\" : \"keyword\"},\n")
.append(" \"member\" : {\"type\" : \"keyword\"},\n")
.append(" \"publisher\" : {\"type\" : \"keyword\"},\n")
.append(" \"redactor\" : {\"type\" : \"keyword\"},\n")
.append(" \"lastUpdatedDate\" : {\"type\" : \"date\", \"format\": \"epoch_millis\"}\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private SpaceSearchFilter getSpaceSearchFilter() {
|| type == ACCESSIBLE
|| type == VISIBLE
|| statusType != null)) {
return new SpaceSearchFilter(username.toLowerCase(),
return new SpaceSearchFilter(username,
filter.getIdentityId(),
filter.getTemplateId(),
filter.getManagingTemplateIds(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
<properties-param>
<name>constructor.params</name>
<property name="index_alias" value="space_alias" />
<property name="index_previous" value="${meeds.social.index.space.previous:space_v5,space_v4,space_v3,space_v2,space_v1}" />
<property name="index_current" value="${meeds.social.index.space.current:space_v6}" />
<property name="index_previous" value="${meeds.social.index.space.previous:space_v6,space_v5,space_v4,space_v3,space_v2,space_v1}" />
<property name="index_current" value="${meeds.social.index.space.current:space_v7}" />
<property name="reindexOnUpgrade" value="${meeds.social.index.space.reindexOnUpgrade:true}" />
</properties-param>
</init-params>
Expand Down

0 comments on commit da498d0

Please sign in to comment.