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

Unable to create blogpost with same title when Synchrony is enabled

    XMLWordPrintable

Details

    Description

      Summary

      This appears to be a regression of CONFSERVER-45921.

      Environment

      • Collaborative Editing enabled

      Steps to Reproduce

      1. Create a blog post with any title
      2. Wait at least a day, create another blog post with the same title

      Expected Results

      The blog page is saved successfully

      Actual Results

      The page fails to save, this error is shown in the editor:

      A page with the title 'A blog' already exists in this space. Enter a different title for your page.
      

      The below exception is thrown in the atlassian-confluence.log file:

      2017-04-03 11:00:00,099 WARN [scheduler_Worker-4] [hql.internal.ast.HqlSqlWalker] generatePositionalParameter [DEPRECATION] Encountered positional parameter near line 1, column 110 in HQL: [SELECT usr.name, usr.lowerName FROM com.atlassian.crowd.model.user.InternalUser usr WHERE usr.directory.id = ? ORDER BY usr.lowerName].  Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
      2017-04-03 11:23:48,630 WARN [http-nio-5610-exec-1] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
        ->[com.atlassian.confluence.api.impl.service.content.draft.ContentDraftServiceImpl.publishEditDraft]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #698454545)
              [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #716984668)
       -- referer: http://branno.local:5610/conf/pages/resumedraft.action?draftId=917506&draftShareId=744c9ff3-e641-411d-8ee6-446f3b5874d1 | url: /conf/rest/api/content/917506 | traceId: 777b6c9ae5b04752 | userName: admin
      

      Notes

      • This bug only exists in when collaborative editing is enabled. Disabling collaborative editing will allow blog posts to be created with the same title on different days.

      Workaround

      • Disable Collaborative Editing
        1. Click > General Configuration
        2. Click Collaborative editing
        3. Click Change Mode
        4. Select the Off radio button
        5. Click Change

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sbrannen@atlassian.com Branno
              Votes:
              15 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated: