Skip to content

Commit

Permalink
Dispatcher flush not working in publish mode (#3134)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgonzalez authored Jul 11, 2023
1 parent 0cf2517 commit 768bb4c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com)

## Unreleased ([details][unreleased changes details])

## Fixed

- #3117 - Dispatcher flush not working in publish mode

## 6.0.12 - 2023-07-10

## Fixed
Expand All @@ -25,7 +29,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com)
- #3105 - Redirect Manager: support handling redirects when the request path does not start with /content
- #3095 - TagsExportServlet to return data in UTF-8 instead of iso-8859-1
- #3110 - Update lodash to 4.17.21 for fix https://github.com/advisories/GHSA-35jh-r3h4-6jhm
- #3112 - Update AngularJS to latest v1.8.2
- #3112 - Update AngularJS to latest v1.8.2
- #3118 - Build fails due to guava-31.1-jre.jar: CVE-2023-2976(6.2), move to 32.0.0
- #3115 - maven: change ui.apps dependency type in ui.content/pom.xml from content-package to zip

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,20 @@
<sly data-sly-use.model="com.adobe.acs.commons.replication.dispatcher.DispatcherFlusherModel"
data-sly-use.placeholderTemplate="core/wcm/components/commons/v1/templates.html">

<script>
async function submitAcsCommonsDispatcherFlushForm(form) {
const response = await fetch('/libs/granite/csrf/token.json');
const json = await response.json();
form.querySelector('input[name=":cq_csrf_token"]').value = json.token;
form.submit();
};

</script>

<form data-sly-test="${model.ready}"
onsubmit="submitAcsCommonsDispatcherFlushForm(this); return false;"
action="${resource.path}.flush.html" method="post">
<input type="hidden" name=":cq_csrf_token"/>
<button class="spectrum-Button spectrum-Button--fill spectrum-Button--cta spectrum-Button--accent spectrum-Button--sizeL"
type="submit">Flush paths on Dispatcher(s)
</button>
Expand Down

0 comments on commit 768bb4c

Please sign in to comment.