Confluence 5.7 has reached end of life
Check out the [latest version] of the documentation
The information on this page does not apply to Confluence Cloud.
Follow these steps to install a patched class file:
<installation-directory>/confluence/WEB-INF/classes/<subdirectories>, where:<installation-directory> must be replaced with your Confluence Installation directory. (If you need more information, read about the Confluence Installation Directory.)<subdirectories> must be replaced by the value specified in the relevant JIRA issue. This value will be different for different issues. In some cases, the subdirectories will not exist and you will need to create them before copying the class files. Some issues will contain the patch in the form of a ZIP file which will contain the desired directory structure. Class files in the
/WEB-INF/classes directory of a web application will be loaded before classes located in JAR files in the /WEB-INF/lib directory. Therefore, classes in the first directory will effectively replace classes of the same name and package which would otherwise be loaded from the JAR files.
To revert the patch, simply remove the class files from the <installation-directory>/confluence/WEB-INF/classes/ folder (taking care to only remove those that apply to the patch you wish to revert), then restart the instance.
Once the issue that the patch relates to is resolved, you should upgrade to the version of Confluence that contains the fix, and revert the patch. Patches are often naive and untested and may not solve the problem in the most efficient way. As such, an official fix should be preferred in all cases.