X-Frames clickacking JVM propery not working anymore since upgrade

eridur October 7, 2018

Hi,

since the upgrade from Confluence 6.8.2 to 6.11.2 (self hosted server edition) the click jacking property does not appear in System Information Overview (/admin/systeminfo.action) within confluence admin site. I upated the service.bat file after upgrade and added the JVM argument the same way i did in 6.8.2. The parameter name did not change according to Atlassian Documentation https://confluence.atlassian.com/doc/recognized-system-properties-190430.html

;-Dconfluence.clickjacking.protection.disable=true

Has somebody an idea how to fix this? Due to my starter 10 persons license i am not allowed to raise a support ticket at Atlassian.

 

regards and thanks, Mario

1 answer

1 accepted

1 vote
Answer accepted
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 8, 2018

Hi Mario,

The property should be modified in in the setenv file unless you're running as a Windows service.

Have a look at the following articles for more information.

Regards,

Shannon

eridur October 8, 2018

Hi Shannon. Thanks for the feedback. I set it in both files but i am using Windows Service only. 

-Dconfluence.clickjacking.protection.disable=true 

was set accordingly. It worked in the previous version. Now when i start up the instance the JVM parameter list does not show this argument. There is no mistyping or missing semicolon in my config. It's weird. I also removed the windows service and reinstalled it using the service.bat

 

hm.. :-(

 

regards, Mario

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 9, 2018

Mario,

On the first article I sent, there are two methods to add when running Confluence as a service.

Windows service

There are two ways to configure system properties when you Start Confluence Automatically on Windows as a Service, either via command line or in the Windows Registry

 

Setting properties for Windows services via command line

To set properties for Windows services via a command line:

  1. Identify the name of the service that Confluence is installed as in Windows (Go to Control Panel > Administrative Tools > Services):

    (info) In the above example, the service name is Confluence121213135538
  2. Open the command window (Choose Start > cmd.exe
  3. cd to the bin directory of your Confluence instance and run the following command:

    tomcat9w //ES//<SERVICENAME>

    (info) In the above example, it would be tomcat9w //ES//Confluence121213135538
    The Tomcat version number may be different if you are using an earlier version of Confluence. 

  4. Click on the Java tab to see the list of current start-up options:
  5. Append any new option on its own new line by adding to the end of the existing Java Options. Refer to the list of parameters in Recognized System Properties.

 

Setting properties for Windows services via the Windows registry

In some versions of Windows, there is no option to add Java variables to the service. In these cases, you must add the properties by viewing the option list in the registry.

  1. Go to the Registry Editor (Start > regedit.exe).
  2. Find the Services entry: 64bitHKEY_LOCAL_MACHINE >> SOFTWARE >> WOW6432Node >> Apache Software Foundation >> Procrun 2.0 >> Confluence service name32bit: HKEY_LOCAL_MACHINE >> SOFTWARE >> Apache Software Foundation >> Procrun 2.0 >> Confluence service name
  3. To change existing properties double-click the appropriate value.
  4. To change additional properties, double-click options.
  5. Refer to the list of parameters in Recognized System Properties. Enter each on a separate line.

Can you make sure to try both of those? If you're still having trouble please send us screenshots of the settings so we can ensure it looks correct.

Regards,

Shannon

Like Germán Boggio likes this
eridur October 9, 2018

Hi Shannon,

you are my hero. It worked according to your first description calling the command tomcat9w //ES/Confluence (i had to change this from /ES//Confluence). Thanks alot for your time and help!

best regards, Mario :-)

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 10, 2018

Mario,

Happy to be able to provide that information!

Take care, and kind regards.

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events