Skip to content

Commit

Permalink
#28362 : change check for live and working version in findDefaultHost…
Browse files Browse the repository at this point in the history
… method
  • Loading branch information
dsolistorres committed Oct 22, 2024
1 parent 978a2d0 commit b20b61c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import java.util.stream.Collectors;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.concurrent.ConcurrentUtils;

/**
Expand Down Expand Up @@ -816,7 +818,7 @@ public Optional<Host> findDefaultHost(final String contentTypeId, final String c
}
defaultHost = new Host(APILocator.getContentletAPI().find(workingInode, APILocator.systemUser(), false));
this.siteCache.add(defaultHost);
if (UtilMethods.isSet(liveInode) && !workingInode.equals(liveInode)) {
if (UtilMethods.isSet(liveInode) && !StringUtils.equals(workingInode,liveInode)) {
final Host liveDefaultHost = new Host(APILocator.getContentletAPI().find(
liveInode, APILocator.systemUser(), false));
this.siteCache.add(liveDefaultHost);
Expand Down

0 comments on commit b20b61c

Please sign in to comment.