Skip to content

Commit

Permalink
#30454 normalizing the host values to hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotcms committed Oct 31, 2024
1 parent 98b2439 commit 0873c42
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public CollectorPayloadBean collect(final CollectorContextMap collectorContextMa
final Host site = (Host) collectorContextMap.get("currentHost");
final String language = (String)collectorContextMap.get("lang");
collectorPayloadBean.put("url", uri);
collectorPayloadBean.put("host", host);
collectorPayloadBean.put("host", Objects.nonNull(site)?site.getHostname():host);
collectorPayloadBean.put("language", language);
collectorPayloadBean.put("site", null != site?site.getIdentifier():"unknown");
final String eventType = (String)collectorContextMap.get("eventType") == null?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public CollectorPayloadBean collect(final CollectorContextMap collectorContextMa

collectorPayloadBean.put("object", fileObject);
collectorPayloadBean.put("url", uri);
collectorPayloadBean.put("host", host);
collectorPayloadBean.put("host", Objects.nonNull(site)?site.getHostname():host);
collectorPayloadBean.put("language", language);
collectorPayloadBean.put("site", null != site?site.getIdentifier():"unknown");
collectorPayloadBean.put("event_type", EventType.FILE_REQUEST.getType());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public CollectorPayloadBean collect(final CollectorContextMap collectorContextMa
collectorPayloadBean.put("language", language);

if (Objects.nonNull(site)) {
collectorPayloadBean.put("host", site.getIdentifier());
collectorPayloadBean.put("host", site.getHostname());
}
return collectorPayloadBean;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public CollectorPayloadBean collect(final CollectorContextMap collectorContextMa
collectorPayloadBean.put("language", language);

if (Objects.nonNull(site)) {
collectorPayloadBean.put("host", site.getIdentifier());
collectorPayloadBean.put("host", site.getHostname());
}

return collectorPayloadBean;
Expand Down

0 comments on commit 0873c42

Please sign in to comment.