Difference between revisions of "Upgrade Guide v2.6.1"

From ADF Docs
Jump to: navigation, search
(Update Site Level Override Components)
 
(7 intermediate revisions by the same user not shown)
Line 49: Line 49:
  
 
== Post-Upgrade Steps ==
 
== Post-Upgrade Steps ==
 +
 +
=== Update Site Level Override Components ===
 +
 +
* Any site level override ADF Lib components located in the "_cs_apps/lib/" folder will need to be renamed and the component "extends" updated to point to the latest version of the matching ADF Lib components.
 +
 +
Example: "'''_cs_apps/lib/scripts_1_1.cfc'''" needs to become "'''scripts_2_0.cfc'''" and the extends value in the component tag will need to point to "'''ADF.lib.scripts.scripts_2_0'''"
 +
 +
* Also make sure all CFPROPERTY "injectedBean" type="dependency" tags at the top of any other site level override ADF Lib components files are also updated to the latest versions of the ADF Lib components.
 +
 +
Example: <cfproperty name="data" injectedBean="'''data_1_2'''" type="dependency"> should be updated to be <cfproperty name="data" injectedBean="'''data_2_0'''" type="dependency">
 +
 +
=== Update Custom App Lib Component References ===
 +
* Update any ADF Lib component references in your custom ADF Apps to the latest versions of the matching ADF 2.0 Lib components in the App's appBeanConfig.cfm file (in the root of the App directory).
 +
 +
Example: "addConstructorDependency(appBeanName, "'''scripts_1_2'''", "scripts"); " needs to become "addConstructorDependency(appBeanName, "'''scripts_2_0'''", "scripts");"
  
 
=== ADF Removed Resources ===
 
=== ADF Removed Resources ===
Line 58: Line 73:
  
 
  '''Note:''' It is recommended to always use the latest available version of any third party/external resources
 
  '''Note:''' It is recommended to always use the latest available version of any third party/external resources
 
=== Enable the CSRF Safe Mode for local ajaxProxy requests ===
 
 
* Once your site is ready Enable [[ADF AjaxProxy CSRF Safe Mode]] (for ADF 2.5 and above only!)
 
 
'''WARNING''': Enabling the "ADF CSRF Safe Mode" without installing ADF 2.5 and above compatible Apps or without updating all custom ajaxProxy local requests will greatly limit functionality!
 
 
=== Update Site Level Override Components ===
 
 
* Any site level override ADF Lib components located in the "_cs_apps/lib/" folder will need to be renamed and the component "extends" updated to point to the latest version of the matching ADF Lib components.
 
 
Example: "_cs_apps/lib/scripts_1_1.cfc" needs to become "scripts_2_0.cfc" and the extends value in the component tag will need to point to "ADF.lib.scripts.scripts_2_0"
 
 
=== Update Custom App Lib Component References ===
 
* Update any ADF Lib component references in your custom ADF Apps to the latest versions of the matching ADF 2.0 Lib components in the App's appBeanConfig.cfm file (in the root of the App directory).
 
 
Example: "addConstructorDependency(appBeanName, "scripts_1_2", "scripts"); " needs to become "addConstructorDependency(appBeanName, "scripts_2_0", "scripts");"
 
  
 
=== Register ADF Scripts as CommonSpot Resources ===
 
=== Register ADF Scripts as CommonSpot Resources ===
Line 102: Line 100:
 
For more information regarding the registration of ADF 2.0 ThirdParty Scripts as Resources in CommonSpot 10, please refer to the README information in the "/lib/scripts/scripts_2_0_READ_ME.txt" file.
 
For more information regarding the registration of ADF 2.0 ThirdParty Scripts as Resources in CommonSpot 10, please refer to the README information in the "/lib/scripts/scripts_2_0_READ_ME.txt" file.
 
-->
 
-->
 +
=== Enable the CSRF Safe Mode for local ajaxProxy requests ===
 +
 +
* Once your site is ready Enable [[ADF AjaxProxy CSRF Safe Mode]] (for ADF 2.5 and above only!)
 +
 +
'''WARNING''': Enabling the "ADF CSRF Safe Mode" without installing ADF 2.5 and above compatible Apps or without updating all custom ajaxProxy local requests will greatly limit functionality!
  
 
== Related Guides ==
 
== Related Guides ==

Latest revision as of 18:31, 25 January 2022

Current Version

Follow the guide below if you are upgrading to ADF v2.6.1.

IMPORTANT: ADF 2.5 and above require CommonSpot 10.6.1 or 10.5.2 or above.

Before upgrading, please review the v2.6.1 Release Notes

If you are upgrading from a version earlier than ADF v2.6.1, then please follow the guides for previous ADF versions:

Previous ADF Upgrade Guides

Upgrade

Follow the steps below to upgrade the ADF directory:

  1. Download the ADF v2.6.1 from the Community site project page.
  2. On your server, rename the "/ADF/" directory to "/ADF-2.6/".
  3. Create a new "/ADF/" directory. Setup any necessary security or permissions for the new "/ADF/" directory.
  4. Export the download ADF zip folder into the "/ADF/" directory.
  5. Copy the contents of the "/ADF-2.6/apps/" directory into the "/ADF/apps/" directory.
  6. Reset the ADF through the web browser with the following URL parameter:
    1.  ?resetADF=1

Note: If you have security permissions on the "/ADF/" directory make sure to set them up because the folder was renamed and then created new.

Validate Upgrade

There are 2 methods to validate the ADF upgrade.

ADF Reset

  1. Reset the ADF through the web browser with the following URL parameter:
    1.  ?resetADF=1
  2. The reset command will add text to the top line of the page. If you see the following text with the date/time stamp:
    1. ADF v2.6.1 has been reset successfully!
  3. Upgrade was successful and you are running the ADF v2.6.1.

ADF Version Output

  1. In the browser, add the following URL parameter:
    1.  ?ADFDumpVar=application.ADF.version
  2. This command with output the ADF version at the top of the page. If you see the following text:
    1. 2.6.1
  3. Upgrade was successful and you are running the ADF v2.6.1.

Post-Upgrade Steps

Update Site Level Override Components

  • Any site level override ADF Lib components located in the "_cs_apps/lib/" folder will need to be renamed and the component "extends" updated to point to the latest version of the matching ADF Lib components.
Example: "_cs_apps/lib/scripts_1_1.cfc" needs to become "scripts_2_0.cfc" and the extends value in the component tag will need to point to "ADF.lib.scripts.scripts_2_0"
  • Also make sure all CFPROPERTY "injectedBean" type="dependency" tags at the top of any other site level override ADF Lib components files are also updated to the latest versions of the ADF Lib components.
Example: <cfproperty name="data" injectedBean="data_1_2" type="dependency"> should be updated to be <cfproperty name="data" injectedBean="data_2_0" type="dependency">

Update Custom App Lib Component References

  • Update any ADF Lib component references in your custom ADF Apps to the latest versions of the matching ADF 2.0 Lib components in the App's appBeanConfig.cfm file (in the root of the App directory).
Example: "addConstructorDependency(appBeanName, "scripts_1_2", "scripts"); " needs to become "addConstructorDependency(appBeanName, "scripts_2_0", "scripts");"

ADF Removed Resources

Options for resolving missing resources:

  1. Update the Registered Resource (or your site's code) to use the latest available version*
  2. Update the Registered Resource (or your site's code) to use the required version from a CDN*
  3. Download the required resource files and install them locally in your site and update the Register Resource or your site's code
  4. Copy in the missing resource files using the ADF 2.5 thirdParty folder (be careful not to overwrite newer versions)
Note: It is recommended to always use the latest available version of any third party/external resources

Register ADF Scripts as CommonSpot Resources

  • Register the ADF Script Resources with CommonSpot (for ADF 2.0 and above only!)
IMPORTANT: The ADF thirdParty scripts libraries will not function when using ADF.scripts_2_0 loadScripts calls unless they are registered as Resources in CommonSpot 10.x. 

Enable the CSRF Safe Mode for local ajaxProxy requests

WARNING: Enabling the "ADF CSRF Safe Mode" without installing ADF 2.5 and above compatible Apps or without updating all custom ajaxProxy local requests will greatly limit functionality!

Related Guides

CommonSpot Registered Resources