Magento – Security Patch SUPEE-11155 – Possible issues

magento-1magento2patchesSecurity

Magento has released a new security patch for M1, and updates for M1 and M2.

What common issues do you have to watch out for when applying this patch/upgrade?

Magento 1

https://magento.com/security/patches/supee-11155

Magento 2

This should be the last release in the 2.1 series which reaches its EOL at the end of this month.

Best Answer

Error installing on 1.7.0.2 CE with all previous patches installed (see below).

EDIT: Issue (#1) was caused by missing file - app/code/core/Mage/Catalog/Model/Product/Option/Type/File.php.orig

Issue (#1) resolved by removing lines 874 - 1702 (referring to File.php.orig) from the patch script.

Issue (#2) was caused due to improper formatting of patch and file - js/tiny_mce/plugins/media/js/media.js

Issue (#2) was resolved by running dos2unix command for both patch file and media.js file

Patch installed successfully after resolution of the two described issues.

Checking if patch can be applied/reverted successfully...

ERROR: Patch can't be applied/reverted successfully.

patching file app/Mage.php patching file app/code/core/Mage/Admin/Model/Block.php patching file app/code/core/Mage/Admin/Model/User.php patching file app/code/core/Mage/AdminNotification/etc/system.xml patching file app/code/core/Mage/Adminhtml/Block/Api/Role/Grid/User.php patching file app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config.php patching file app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Preview.php patching file app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Preview.php patching file app/code/core/Mage/Adminhtml/Block/Permissions/Role/Grid/User.php patching file app/code/core/Mage/Adminhtml/Block/Sales/Creditmemo/Grid.php patching file app/code/core/Mage/Adminhtml/Block/Sales/Invoice/Grid.php patching file app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Header.php patching file app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create.php patching file app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php patching file app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create.php patching file app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create.php patching file app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php patching file app/code/core/Mage/Adminhtml/Block/Sales/Shipment/Grid.php patching file app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Grid.php patching file app/code/core/Mage/Adminhtml/Block/System/Email/Template/Preview.php patching file app/code/core/Mage/Adminhtml/Block/Template.php patching file app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Abstract.php patching file app/code/core/Mage/Adminhtml/Model/LayoutUpdate/Validator.php patching file app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Baseurl.php patching file app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Locale.php patching file app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Serialized/Array.php patching file app/code/core/Mage/Adminhtml/controllers/Catalog/Product/AttributeController.php patching file app/code/core/Mage/Adminhtml/controllers/Catalog/Product/ReviewController.php patching file app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php patching file app/code/core/Mage/Adminhtml/controllers/Checkout/AgreementController.php patching file app/code/core/Mage/Adminhtml/controllers/Newsletter/TemplateController.php patching file app/code/core/Mage/Adminhtml/controllers/Promo/CatalogController.php patching file app/code/core/Mage/Adminhtml/controllers/Promo/QuoteController.php patching file app/code/core/Mage/Adminhtml/controllers/Sales/Order/CreateController.php patching file app/code/core/Mage/Adminhtml/controllers/SitemapController.php patching file app/code/core/Mage/Adminhtml/controllers/System/Email/TemplateController.php patching file app/code/core/Mage/Catalog/Helper/Product.php The next

patch would delete the file app/code/core/Mage/Catalog/Model/Product/Option/Type/File.php.orig, which does not exist!
Assume -R? [n]
Apply anyway? [n]
Skipping patch. 1 out of 1 hunk ignored patching file

app/code/core/Mage/Catalog/controllers/Product/CompareController.php patching file app/code/core/Mage/Checkout/Model/Session.php patching file app/code/core/Mage/Checkout/controllers/OnepageController.php patching file app/code/core/Mage/Cms/Helper/Data.php patching file app/code/core/Mage/Cms/Model/Wysiwyg/Config.php patching file app/code/core/Mage/Cms/etc/config.xml patching file app/code/core/Mage/Compiler/Model/Process.php patching file app/code/core/Mage/Core/Helper/Abstract.php patching file app/code/core/Mage/Core/Helper/Data.php patching file app/code/core/Mage/Core/Model/Design/Package.php patching file app/code/core/Mage/Core/Model/Email/Template/Filter.php patching file app/code/core/Mage/Core/Model/File/Validator/AvailablePath.php patching file app/code/core/Mage/Core/Model/Observer.php patching file app/code/core/Mage/Core/etc/config.xml patching file app/code/core/Mage/Core/functions.php patching file app/code/core/Mage/CurrencySymbol/Model/System/Currencysymbol.php patching file app/code/core/Mage/Downloadable/controllers/DownloadController.php patching file app/code/core/Mage/SalesRule/Model/Coupon/Massgenerator.php patching file app/code/core/Mage/SalesRule/Model/Resource/Report/Rule/Createdat.php patching file app/code/core/Mage/Sendfriend/etc/config.xml patching file app/code/core/Mage/Sendfriend/etc/system.xml patching file app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/configurable.phtml patching file app/design/adminhtml/default/default/template/catalog/product/helper/gallery.phtml patching file app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml patching file app/design/adminhtml/default/default/template/currencysymbol/grid.phtml patching file app/design/adminhtml/default/default/template/customer/tab/addresses.phtml patching file app/design/adminhtml/default/default/template/customer/tab/view.phtml patching file app/design/adminhtml/default/default/template/notification/window.phtml patching file app/design/adminhtml/default/default/template/sales/order/create/data.phtml patching file app/design/adminhtml/default/default/template/sales/order/view/info.phtml patching file app/design/adminhtml/default/default/template/system/currency/rate/matrix.phtml patching file app/locale/en_US/Mage_Adminhtml.csv patching file app/locale/en_US/Mage_Core.csv patching file app/locale/en_US/Mage_Sales.csv patching file app/locale/en_US/Mage_Sitemap.csv patching file js/mage/adminhtml/wysiwyg/tiny_mce/setup.js patching file js/tiny_mce/plugins/media/js/media.js

Hunk #1 FAILED at 434. 1 out of 1 hunk FAILED -- saving rejects to file js/tiny_mce/plugins/media/js/media.js.rej patching file

js/varien/js.js patching file lib/phpseclib/PHP/Compat/Function/array_fill.php patching file lib/phpseclib/PHP/Compat/Function/bcpowmod.php patching file lib/phpseclib/PHP/Compat/Function/str_split.php