-
Bug
-
Resolution: Unresolved
-
Medium
-
9.2.6, 8.5.25
-
1
-
Severity 3 - Minor
-
Issue Summary
When creating a page using the Create from Template macro that contains variables -
If a page does not exist with the same title or if it is the first page created using the template -
- Confluence creates the page with the modifications made as expected
If a page exists with the same title or upon subsequent creation of pages using the template -
- Confluence redirects to the editor of the already existing page, discarding any new changes made.
- If the existing page is located elsewhere in that Confluence space, it will also move the page to be a child page of the page containing the 'Create from Template' macro.
This bug does not affect templates created without variables, as they function as expected.
Steps to Reproduce
- Create two templates: one with variables and another without variables. (See attached sample: Confluence-space-export-CTD-2025-07-10-07-00-31-514.xml.zip
)
- Create one page for each template using the macro button. This will create and publish pages as expected for both types of templates.
- Attempt to create subsequent pages using the template without variables. An error will occur upon trying to publish the page, stating "Page already exists with the name." This is the expected behavior.
- Now, attempt to create subsequent pages using the template with variables. No new page will be created; instead, it will redirect you to the existing page (created in step 2) and will overwrite your new changes, showing you the old page content in the editor. You will also see the Update option instead of the Publish option, indicating it is not a new page.
- Delete any existing page created using the template with variables, and create a page with the same name using the Create Page button (not using the template) and publish it under a different parent.
- Attempt to create a new page using the template with variables.
- The existing page from step 5 will be shown, and the page will be moved from the previous parent page to the current parent page.
Expected Results
Templates with variables should not overwrite existing pages, as content may be lost. This should work similarly to how templates without variables function. If a page exists with the same title:
- Confluence should display an error indicating that the page already exists.
- It should not redirect to the edit mode of the existing page, discarding any changes made.
- It should not move any existing pages to the template tree without any warning/notice, as this can result in unnoticed changes and lost content.
Actual Results
The actual results show that pages are overridden when using templates with variables, and they may be moved from one parent to another without any warning or notification.
Workaround
To avoid this behavior, do not provide a title for the "Title of page to be created" option under the Create from Template macro's configuration.
Versions Tested
Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below:
Testing Requirements | Version | Affected Version |
---|---|---|
Customers Reported Version | 9.2.6 | Yes |
Most Recent Bug-Fix Release | ||
Previous Major Release | ||
Most Recent LTS | ||
Previous Supported LTS | ||
Other Versions.. | ||
(Add rows as needed) |
- mentioned in
-
Page Loading...