Confluence 8.6 is available now

Hi everyone,

Confluence 8.6 is available now.

:information_source: Starting from 8.6.x, new releases of Confluence will be available only to Data Center customers. If you have a Server license, check out your options for upgrading.

Download the latest version

This GA release was made available on 5 October 2023.

What’s new?

  • Say more with image captions
  • Try these three new editing shortcuts
  • More accessibility improvements
  • Download our latest VPAT for Section 508 compliance
  • Use AWS Secrets Manager to manage your database credentials

To learn more, see Confluence 8.6 Release Notes.

4 Likes

For that I don’t understand why Atlassian writes “Data Center and Server 8.6” on his Release Notes site?

Hiya - seems that com.atlassian.confluence.util.velocity.VelocityUtils has been deprecated and marked for removal.

Is there a suitable replacement available?

Typically I’d trawl the javadocs, but no such docs exist for 8.6.0: https://docs.atlassian.com/ConfluenceServer/javadoc/8.6.0.

I assume that is because I am looking at Server docs and this release is DC only. But I cannot find similar javadocs for 8.6.0 DC.

I did also check the javadocs for 8.5.2 Server, and it seems VelocityUtils is not marked as deprecated there: VelocityUtils (Atlassian Confluence 8.5.2 API)

So to my eyes it seems an 8.6.0 deprecation.

2 Likes

Be aware that 8.6 also has subtle, undocumented(?) changes to how custom search indexing (via Lucene) is done. This broke two of our apps, i.e. many field-specific searches (of the form “${fieldName}:${searchTerm}”, e.g. “Skills:design” or “Location:Berlin”) did not find the expected results. We used to use com.atlassian.confluence.plugins.index.api.FieldDescriptor to index our fields.
After much analysis we found a working solution for us: Use TextFieldDescriptor instead of FieldDescriptor. With this, indexing – and therefore searching – works as expected again.

@Atlassian: We’re curious: What changed here? We found nothing in the public docs about this, and not even deep-diving into the related Lucene/search libraries and comparing 8.5’s code with 8.6’s code showed us what the actual cause/change is.
Although we did eventually find a fix for our apps, it’s somewhat unsatisfying to not know why that fix works, i.e. what the actual cause is.
Thanks for any insights.

In Confluence 8.6 our integration tests cannot see BrowserUtil:

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/atlassian/pageobjects/util/BrowserUtil

The tests use ConfluenceStatelessTestRunner and I have seen some announcements about changes from Selenium 2 to Selenium 3 ( Selenium 3 upgrade guide | Confluence Data Center and Server 8.6 | Atlassian Documentation ) but this looks more like a dependency that used to be available but no longer is, maybe a transitive dependency that is not longer transitive?

I’m new to this plugin that has these tests and I’ve never used Confluence’s stateless test runner and my pom.xml looks nothing like the pom.xml on that “Selenium 2 → 3” guide so I could be missing something obvious, but I’m going to dig in now.

If anyone already knows the solution to this problem and can share you might spare me some pain.

Thanks!

We’re also using FieldDescriptor in some of our apps, but haven’t seen any problems so far. The main point of TextFieldDescriptor seems to be that it enforces Index.ANALYZED, which could be related to what you’ve been describing, @AndreasEbert
Our apps always use Index.NOT_ANALYZED, and I wonder if that makes a difference.

@Wendy I would be great if a developer could have a look at this.

Btw. it does NOT help that we can suddenly no longer download the source code of Confluence to see the deprecation notes.

1 Like

Hi @Wendy

I second @AndrewMorton’s question about a VelocityUtils replacement, or understanding what the expected deprecation schedule is for VelocityUtils.

I also second @jens’s comment about access to the Confluence source code being broken through the standard link: Licenses - My Atlassian.

I just get the error: “The product you requested is not available. Please contact us if you have any questions about accessing the source code.”

Source downloads had been working very recently (up until 8.6.0-beta2) but it is now broken, as above.

1 Like

Hi all,

We are still working to resolve JavaDoc and source availability.

@AndrewMorton @scott.dudley
VelocityUtils will be removed in 9.0. Its replacement is com.atlassian.confluence.plugin.services.VelocityHelperService.

2 Likes

We did indeed already use Index.ANALYZED before with FieldDescriptor. So, effectively the Index value stays on Index.ANALYZED in our app. That is one of the things that confuses as and what I meant with: “Although we did eventually find a fix for our apps, it’s somewhat unsatisfying to not know why that fix works, i.e. what the actual cause is.

Concerning the source download not working: Same for us. We filed a support ticket with Atlassian and got the response, that source downloads are temporarily disabled due to security concerns ¯\_(ツ)_/¯

1 Like

Hi @Kusal,

With the deprecation, could you suggest the correct replacement for VelocityUtils#getVelocityEngine()? This doesn’t seem to exist in VelocityHelperService.

Thanks,
Scott

1 Like

Hi @Wendy ,

I am getting a strange error doing altas debug builds with 8.6.0, I reference org.joda.time.DateTime class, which is used with your PluginLicense class (getCreationDate) returns this class.

However I get this error when compiling my code, this is new, I have had this code for 10+ years, why now can’t this compile. I can even go back to version 8.5.x and it works.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project xxxxx: Compilation failure: Compilation failure: 
[ERROR] /C:/Builds/common-tools/src/main/java/net/kentcom/common/LicenseCheck.java:[14,21] package org.joda.time does not exist

What is the reason for this? I can’t seem to get around this, other than remove my code!

Hi @mr.chris.kent

please read the answer below regarding Conference 8.6

Cheers
Adam

2 Likes

Hi @adam.labus ,

Thankyou… I did try this, but I had the scope incorrect - thankyou very much.

1 Like

Hi @DavidPasternak, I agree, it is confusing :thinking: I’ve passed this feedback on to the team. I believe they’ll be making changes to this part of the site at a later date.

@Kusal @Wendy Any news on the missing sources? We also experience this for Bitbucket.

The product you requested is not available. Please contact us if you have any questions about accessing the source code.

Hi @Kusal

I wanted to follow up on this issue below:

Are you able to determine what the non-deprecated replacement for this might be?

I also second the request of @michael.rueegg to see if there is any way to expedite access to the missing source downloads. We are currently trying to diagnose a complicated problem with a customer and the absence of Confluence sources is impacting our ability to troubleshoot the problem.

Thanks!
Scott

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.