Skip to content

Commit 555efce

Browse files
committed
2.0.0.0-dev74
* Pricing Improvements: * Added price calculation component to library * Eliminated price calculation from blocks and templates and implemented new calculation models for the following product types: * Bundle * Simple/Virtual * Grouped * Downloadable * Resolved price calculation dependencies on the Tax and Weee modules * Themes update: * Updated the look&feel of the Admin theme * Fixed bugs: * Fixed an issue with the inability to save product with grouped price when Price Scope = Website * Fixed an issue with fatal error on attempt to edit product from wishlist in stores with multiple store views * Fixed an issue where it was impossible to add to a wishlist a product with custom quantity * Fixed an issue where JS validation was skipped during CMS page creation * Fixed an issue with the New Customer Address Attribute page and the New Customer Attribute page having the same title * Fixed an issue where a form was submitted two times during CMS page creation * Fixed an issue where a fatal error appeared when trying to edit product in a wishlist in stores with multiple store views * Fixed an issue with inability to change page layout for categories * Fixed an issue where the Quantity drop-down list box was disabled for bundle products * Fixed an issue where inactive Related Products rules were applied * Fixed a clickjacking vulnerability * Fixed bugs and added improvements in the Blank theme * Fixed an issue where the Flat Rate shipping method was not enabled by default * Fixed an issue with incorrect order of products on the Add Product split button * Fixed an issue with saving the tier price attribute value * Fixed an issue with creating integration from config file * Fixed an issue where the Cookie Restriction Mode = Yes configuration was not applied * Fixed an issue where it was impossible to perform ajax actions from backend grids in Internet Explorer * Fixed the improper usage of DIRECTORY_SEPARATOR * Fixed an issue where it was impossible to add new address on customer's account page if default address had been already set * Fixed an issue where setting memory_limit to -1 caused installation failure * Fixed an issue where the configuration of Admin Session Lifetime was not applied correctly * Fixed an issue where Scheduled Export was not performed if exporting to remote FTP server * Fixed the wrong default value for PHP memory_limit * Fixed an issue where frontend messages were not displayed when FPC was turned off * Fixed the position of page action buttons on the Categories page in the backend * Improved backend grids UI * Framework Improvements: * Simplified Search related Data Objects * Moved lib/Magento/* to lib/Magento/Framework/* * Moved lib/Magento/App to lib/Magento/Framework/App * Refactored the following modules to use Customer service: * PayPalRecurringPayment * RecurringPayment * Multishipping * Paypal * Customer Service usage: * Implemented Service Context Provider * Restructured webapi.xml * Renamed createAccount to createCustomer in CustomerAccountService * Implemented Caching strategy for the Customer service * GitHub requests: * [magento#488] (magento#488) -- Converted several grids from Magento\Sales module to new layout XML config format
1 parent 8611ea7 commit 555efce

File tree

2,599 files changed

+42544
-26671
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,599 files changed

+42544
-26671
lines changed

.htaccess

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
## adjust memory limit
3333

3434
# php_value memory_limit 64M
35-
php_value memory_limit 2048M
35+
php_value memory_limit 768M
3636
php_value max_execution_time 18000
3737

3838
############################################
@@ -47,20 +47,27 @@
4747
#php_flag zlib.output_compression on
4848

4949
###########################################
50-
# disable user agent verification to not break multiple image upload
50+
## disable user agent verification to not break multiple image upload
5151

5252
php_flag suhosin.session.cryptua off
5353

5454
</IfModule>
5555

5656
<IfModule mod_security.c>
5757
###########################################
58-
# disable POST processing to not break multiple image upload
58+
## disable POST processing to not break multiple image upload
5959

6060
SecFilterEngine Off
6161
SecFilterScanPOST Off
6262
</IfModule>
6363

64+
<IfModule mod_headers.c>
65+
############################################
66+
## prevent clickjacking
67+
68+
Header set X-Frame-Options SAMEORIGIN
69+
</IfModule>
70+
6471
<IfModule mod_deflate.c>
6572

6673
############################################
@@ -173,11 +180,11 @@
173180
## Deny access to release notes to prevent disclosure of the installed Magento version
174181

175182
<Files RELEASE_NOTES.txt>
176-
order allow,deny
177-
deny from all
183+
Order allow,deny
184+
Deny from all
178185
</Files>
179186
############################################
180187
## If running in cluster environment, uncomment this
181188
## http://developer.yahoo.com/performance/rules.html#etags
182189

183-
#FileETag none
190+
#FileETag none

.htaccess.sample

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
############################################
3232
## adjust memory limit
3333

34-
# php_value memory_limit 64M
3534
php_value memory_limit 128M
3635
php_value max_execution_time 18000
3736

@@ -47,20 +46,27 @@
4746
#php_flag zlib.output_compression on
4847

4948
###########################################
50-
# disable user agent verification to not break multiple image upload
49+
## disable user agent verification to not break multiple image upload
5150

5251
php_flag suhosin.session.cryptua off
5352

5453
</IfModule>
5554

5655
<IfModule mod_security.c>
5756
###########################################
58-
# disable POST processing to not break multiple image upload
57+
## disable POST processing to not break multiple image upload
5958

6059
SecFilterEngine Off
6160
SecFilterScanPOST Off
6261
</IfModule>
6362

63+
<IfModule mod_headers.c>
64+
############################################
65+
## prevent clickjacking
66+
67+
Header set X-Frame-Options SAMEORIGIN
68+
</IfModule>
69+
6470
<IfModule mod_deflate.c>
6571

6672
############################################
@@ -118,6 +124,12 @@
118124

119125
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
120126

127+
############################################
128+
## TRACE and TRACK HTTP methods disabled to prevent XSS attacks
129+
130+
RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
131+
RewriteRule .* - [L,R=405]
132+
121133
############################################
122134
## always send 404 on missing files in these folders
123135

@@ -161,6 +173,14 @@
161173
Order allow,deny
162174
Allow from all
163175

176+
###########################################
177+
## Deny access to release notes to prevent disclosure of the installed Magento version
178+
179+
<Files RELEASE_NOTES.txt>
180+
Order allow,deny
181+
Deny from all
182+
</Files>
183+
164184
############################################
165185
## If running in cluster environment, uncomment this
166186
## http://developer.yahoo.com/performance/rules.html#etags

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
2.0.0.0-dev74
2+
=============
3+
* Pricing Improvements:
4+
* Added price calculation component to library
5+
* Eliminated price calculation from blocks and templates and implemented new calculation models for the following product types:
6+
* Bundle
7+
* Simple/Virtual
8+
* Grouped
9+
* Downloadable
10+
* Resolved price calculation dependencies on the Tax and Weee modules
11+
* Themes update:
12+
* Updated the look&feel of the Admin theme
13+
* Fixed bugs:
14+
* Fixed an issue with the inability to save product with grouped price when Price Scope = Website
15+
* Fixed an issue with fatal error on attempt to edit product from wishlist in stores with multiple store views
16+
* Fixed an issue where it was impossible to add to a wishlist a product with custom quantity
17+
* Fixed an issue where JS validation was skipped during CMS page creation
18+
* Fixed an issue with the New Customer Address Attribute page and the New Customer Attribute page having the same title
19+
* Fixed an issue where a form was submitted two times during CMS page creation
20+
* Fixed an issue where a fatal error appeared when trying to edit product in a wishlist in stores with multiple store views
21+
* Fixed an issue with inability to change page layout for categories
22+
* Fixed an issue where the Quantity drop-down list box was disabled for bundle products
23+
* Fixed an issue where inactive Related Products rules were applied
24+
* Fixed a clickjacking vulnerability
25+
* Fixed bugs and added improvements in the Blank theme
26+
* Fixed an issue where the Flat Rate shipping method was not enabled by default
27+
* Fixed an issue with incorrect order of products on the Add Product split button
28+
* Fixed an issue with saving the tier price attribute value
29+
* Fixed an issue with creating integration from config file
30+
* Fixed an issue where the Cookie Restriction Mode = Yes configuration was not applied
31+
* Fixed an issue where it was impossible to perform ajax actions from backend grids in Internet Explorer
32+
* Fixed the improper usage of DIRECTORY_SEPARATOR
33+
* Fixed an issue where it was impossible to add new address on customer's account page if default address had been already set
34+
* Fixed an issue where setting memory_limit to -1 caused installation failure
35+
* Fixed an issue where the configuration of Admin Session Lifetime was not applied correctly
36+
* Fixed an issue where Scheduled Export was not performed if exporting to remote FTP server
37+
* Fixed the wrong default value for PHP memory_limit
38+
* Fixed an issue where frontend messages were not displayed when FPC was turned off
39+
* Fixed the position of page action buttons on the Categories page in the backend
40+
* Improved backend grids UI
41+
* Framework Improvements:
42+
* Simplified Search related Data Objects
43+
* Moved lib/Magento/* to lib/Magento/Framework/*
44+
* Moved lib/Magento/App to lib/Magento/Framework/App
45+
* Refactored the following modules to use Customer service:
46+
* PayPalRecurringPayment
47+
* RecurringPayment
48+
* Multishipping
49+
* Paypal
50+
* Customer Service usage:
51+
* Implemented Service Context Provider
52+
* Restructured webapi.xml
53+
* Renamed createAccount to createCustomer in CustomerAccountService
54+
* Implemented Caching strategy for the Customer service
55+
* GitHub requests:
56+
* [#488] (https://github.com/magento/magento2/issues/488) -- Converted several grids from Magento\Sales module to new layout XML config format
57+
158
2.0.0.0-dev73
259
=============
360
* Framework Improvements:

app/code/Magento/AdminNotification/Block/Grid/Renderer/Actions.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,28 @@ public function __construct(
5454
*/
5555
public function render(\Magento\Object $row)
5656
{
57-
$readDetailsHtml = $row->getUrl() ? '<a target="_blank" href="' . $row->getUrl() . '">' . __(
57+
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' . $row->getUrl() . '">' . __(
5858
'Read Details'
59-
) . '</a> | ' : '';
59+
) . '</a>' : '';
6060

61-
$markAsReadHtml = !$row->getIsRead() ? '<a href="' . $this->getUrl(
61+
$markAsReadHtml = !$row->getIsRead() ? '<a class="action-mark" href="' . $this->getUrl(
6262
'*/*/markAsRead/',
6363
array('_current' => true, 'id' => $row->getId())
6464
) . '">' . __(
6565
'Mark as Read'
66-
) . '</a> | ' : '';
66+
) . '</a>' : '';
6767

6868
$encodedUrl = $this->_urlHelper->getEncodedUrl();
6969
return sprintf(
70-
'%s%s<a href="%s" onClick="deleteConfirm(\'%s\', this.href); return false;">%s</a>',
70+
'%s%s<a class="action-delete" href="%s" onClick="deleteConfirm(\'%s\', this.href); return false;">%s</a>',
7171
$readDetailsHtml,
7272
$markAsReadHtml,
7373
$this->getUrl(
7474
'*/*/remove/',
7575
array(
7676
'_current' => true,
7777
'id' => $row->getId(),
78-
\Magento\App\Action\Action::PARAM_NAME_URL_ENCODED => $encodedUrl
78+
\Magento\Framework\App\Action\Action::PARAM_NAME_URL_ENCODED => $encodedUrl
7979
)
8080
),
8181
__('Are you sure?'),

app/code/Magento/AdminNotification/Helper/Data.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @package Magento_AdminNotification
3333
* @author Magento Core Team <[email protected]>
3434
*/
35-
class Data extends \Magento\App\Helper\AbstractHelper
35+
class Data extends \Magento\Framework\App\Helper\AbstractHelper
3636
{
3737
const XML_PATH_POPUP_URL = 'system/adminnotification/popup_url';
3838

@@ -65,7 +65,7 @@ class Data extends \Magento\App\Helper\AbstractHelper
6565
protected $_unreadNoticeCounts;
6666

6767
/**
68-
* @var \Magento\App\Config\ScopeConfigInterface
68+
* @var \Magento\Framework\App\Config\ScopeConfigInterface
6969
*/
7070
protected $_scopeConfig;
7171

@@ -75,13 +75,13 @@ class Data extends \Magento\App\Helper\AbstractHelper
7575
protected $_inboxFactory;
7676

7777
/**
78-
* @param \Magento\App\Helper\Context $context
79-
* @param \Magento\App\Config\ScopeConfigInterface $scopeConfig
78+
* @param \Magento\Framework\App\Helper\Context $context
79+
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
8080
* @param \Magento\AdminNotification\Model\InboxFactory $inboxFactory
8181
*/
8282
public function __construct(
83-
\Magento\App\Helper\Context $context,
84-
\Magento\App\Config\ScopeConfigInterface $scopeConfig,
83+
\Magento\Framework\App\Helper\Context $context,
84+
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
8585
\Magento\AdminNotification\Model\InboxFactory $inboxFactory
8686
) {
8787
parent::__construct($context);

app/code/Magento/AdminNotification/Model/Survey.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ class Survey
5454
protected $_flagFactory;
5555

5656
/**
57-
* @var \Magento\App\RequestInterface
57+
* @var \Magento\Framework\App\RequestInterface
5858
*/
5959
protected $_request;
6060

6161
/**
6262
* @param \Magento\FlagFactory $flagFactory
63-
* @param \Magento\App\RequestInterface $request
63+
* @param \Magento\Framework\App\RequestInterface $request
6464
*/
65-
public function __construct(\Magento\FlagFactory $flagFactory, \Magento\App\RequestInterface $request)
65+
public function __construct(\Magento\FlagFactory $flagFactory, \Magento\Framework\App\RequestInterface $request)
6666
{
6767
$this->_request = $request;
6868
$this->_flagFactory = $flagFactory;

app/code/Magento/AdminNotification/Model/System/Message/Baseurl.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Baseurl implements \Magento\AdminNotification\Model\System\MessageInterfac
3131
protected $_urlBuilder;
3232

3333
/**
34-
* @var \Magento\App\Config\ScopeConfigInterface
34+
* @var \Magento\Framework\App\Config\ScopeConfigInterface
3535
*/
3636
protected $_config;
3737

@@ -41,21 +41,21 @@ class Baseurl implements \Magento\AdminNotification\Model\System\MessageInterfac
4141
protected $_storeManager;
4242

4343
/**
44-
* @var \Magento\App\Config\ValueFactory
44+
* @var \Magento\Framework\App\Config\ValueFactory
4545
*/
4646
protected $_configValueFactory;
4747

4848
/**
49-
* @param \Magento\App\Config\ScopeConfigInterface $config
49+
* @param \Magento\Framework\App\Config\ScopeConfigInterface $config
5050
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
5151
* @param \Magento\UrlInterface $urlBuilder
52-
* @param \Magento\App\Config\ValueFactory $configValueFactory
52+
* @param \Magento\Framework\App\Config\ValueFactory $configValueFactory
5353
*/
5454
public function __construct(
55-
\Magento\App\Config\ScopeConfigInterface $config,
55+
\Magento\Framework\App\Config\ScopeConfigInterface $config,
5656
\Magento\Store\Model\StoreManagerInterface $storeManager,
5757
\Magento\UrlInterface $urlBuilder,
58-
\Magento\App\Config\ValueFactory $configValueFactory
58+
\Magento\Framework\App\Config\ValueFactory $configValueFactory
5959
) {
6060
$this->_urlBuilder = $urlBuilder;
6161
$this->_config = $config;
@@ -84,7 +84,7 @@ protected function _getConfigUrl()
8484
$dataCollection = $this->_configValueFactory->create()->getCollection();
8585
$dataCollection->addValueFilter(\Magento\Store\Model\Store::BASE_URL_PLACEHOLDER);
8686

87-
/** @var $data \Magento\App\Config\ValueInterface */
87+
/** @var $data \Magento\Framework\App\Config\ValueInterface */
8888
foreach ($dataCollection as $data) {
8989
if ($data->getScope() == 'stores') {
9090
$code = $this->_storeManager->getStore($data->getScopeId())->getCode();

app/code/Magento/AdminNotification/Model/System/Message/CacheOutdated.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ class CacheOutdated implements \Magento\AdminNotification\Model\System\MessageIn
3636
protected $_authorization;
3737

3838
/**
39-
* @var \Magento\App\Cache\TypeListInterface
39+
* @var \Magento\Framework\App\Cache\TypeListInterface
4040
*/
4141
protected $_cacheTypeList;
4242

4343
/**
4444
* @param \Magento\AuthorizationInterface $authorization
4545
* @param \Magento\UrlInterface $urlBuilder
46-
* @param \Magento\App\Cache\TypeListInterface $cacheTypeList
46+
* @param \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList
4747
*/
4848
public function __construct(
4949
\Magento\AuthorizationInterface $authorization,
5050
\Magento\UrlInterface $urlBuilder,
51-
\Magento\App\Cache\TypeListInterface $cacheTypeList
51+
\Magento\Framework\App\Cache\TypeListInterface $cacheTypeList
5252
) {
5353
$this->_authorization = $authorization;
5454
$this->_urlBuilder = $urlBuilder;

app/code/Magento/AdminNotification/Model/System/Message/Security.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Security implements \Magento\AdminNotification\Model\System\MessageInterfa
4444
private $_verificationTimeOut = 2;
4545

4646
/**
47-
* @var \Magento\App\CacheInterface
47+
* @var \Magento\Framework\App\CacheInterface
4848
*/
4949
protected $_cache;
5050

@@ -54,7 +54,7 @@ class Security implements \Magento\AdminNotification\Model\System\MessageInterfa
5454
protected $_backendConfig;
5555

5656
/**
57-
* @var \Magento\App\Config\ScopeConfigInterface
57+
* @var \Magento\Framework\App\Config\ScopeConfigInterface
5858
*/
5959
protected $_config;
6060

@@ -64,15 +64,15 @@ class Security implements \Magento\AdminNotification\Model\System\MessageInterfa
6464
protected $_curlFactory;
6565

6666
/**
67-
* @param \Magento\App\CacheInterface $cache
67+
* @param \Magento\Framework\App\CacheInterface $cache
6868
* @param \Magento\Backend\App\ConfigInterface $backendConfig
69-
* @param \Magento\App\Config\ScopeConfigInterface $config
69+
* @param \Magento\Framework\App\Config\ScopeConfigInterface $config
7070
* @param \Magento\HTTP\Adapter\CurlFactory $curlFactory
7171
*/
7272
public function __construct(
73-
\Magento\App\CacheInterface $cache,
73+
\Magento\Framework\App\CacheInterface $cache,
7474
\Magento\Backend\App\ConfigInterface $backendConfig,
75-
\Magento\App\Config\ScopeConfigInterface $config,
75+
\Magento\Framework\App\Config\ScopeConfigInterface $config,
7676
\Magento\HTTP\Adapter\CurlFactory $curlFactory
7777
) {
7878
$this->_cache = $cache;

app/code/Magento/AdminNotification/etc/adminhtml/routes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
2424
*/
2525
-->
26-
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/Magento/App/etc/routes.xsd">
26+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/Magento/Framework/App/etc/routes.xsd">
2727
<router id="admin">
2828
<route id="adminhtml">
2929
<module name="Magento_AdminNotification" before="Magento_Adminhtml" />

0 commit comments

Comments
 (0)