Yahoo! released a security patch for all the applications using YUI. As Or开发者_Go百科beon Forms uses YUI, how can I apply this patch on the version of Orbeon Forms that I am using?
First, you are safe and don't need to patch Orbeon Forms if you are using a version of Orbeon Forms released on or after October 25, 2010 (the day the security vulnerability and patch was announced).
If you are using an earlier build:
- Unzip the file
WEB-INF/lib/orbeon-resources-public.jar
in a temporary directory. - In that directory, open
ops/yui/yahoo/yahoo.js
. Towards the top of the file, you'll see a version number (e.g. 2.6.0). This tells you what version of YUI your build of Orbeon Forms uses. - From the YUI page about this security vulnerability, download the patches for the version of YUI used by your build of Orbeon Forms.
- Apply the patches by replacing the
swf
files in the temporary directory by those in the patches you downloaded. The YUI file are located underops/yui
in your temporary directory. - Just in case, make a copy of the
WEB-INF/lib/orbeon-resources-public.jar
in your Orbeon Forms build. - Zip the content of your temporary directory into a file called
orbeon-resources-public.jar
and move it toWEB-INF/lib
in your Orbeon Forms build, replacing the existing copy of that file with the version you created.
精彩评论