Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-51591

Create page with "Create from Template Macro" using a Default page title causes data loss

    XMLWordPrintable

Details

    Description

      Summary

      When creating a "create from template" button, the template doesn't matter, and set a default page name this issue occurs. The issue appears to be that if you use the macro to create a page and do not change the default page name, then the next time you run the macro it will target the existing page with that name, rather than creating a new page. This results in the existing page getting overwritten.

      Steps to Reproduce

      Create a blank page, insert a "create from template" macro on it, the template doesn't matter, set a default title for the page.

      1. Create a new custom template with variables inside of it.
      2. Create a page and insert the "Create from Template" macro and set it to the template you created in the first step.
      3. Click on the macro's button to create a page based on the template.
      4. Insert the variables' values. Do not modify the page name and publish it.
      5. Create another page using the macro again.
      6. Insert the variable's values, but make sure it's different than before.
      7. Do not modify the page name and publish the page.

      Expected Results

      Confluence shouldn't overwrite the initial page that was created. It should warn you that a page with the same title already exists in the space.

      Actual Results

      Confluence is creating a 2nd version of the original page using the newly created page's contents, although it was meant to be a different page.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lsimon Lucas Simon (Inactive)
            Votes:
            9 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated: