Skip to content

Commit c825d3a

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #19110: [Backport] Add additional check if password hash is empty in auth process (by @agorbulin) - #19105: #18840: Invalid Unit Test Annotations. (by @swnsma) - #19089: magento/magento#18901: Forgot password form should not available while customer is logged in. (by @swnsma) - #19073: #19071: Password strength indicator shows No Password� (by @dimasalamatov) - #18649: [Backport] Issue Fixed: Missing Fixed Product Tax total on PDF (by @maheshWebkul721) - #18815: [Backoport] Issue Fixed: Backups error from User Roles Permission 2.2.6 (by @maheshWebkul721) - #18461: fix Fatal Error when save configurable product in Magento 2.2.5 #18082 (by @thiagolima-bm) Fixed GitHub Issues: - #19060: User created by admin cannot login (reported by @tomekjordan) has been fixed in #19110 by @agorbulin in 2.2-develop branch Related commits: 1. 35c2345 - #18840: Invalid Unit Test Annotations (reported by @okorshenko) has been fixed in #19105 by @swnsma in 2.2-develop branch Related commits: 1. 252a0ed - #18901: Forgot password form should not available while customer is logged in. (reported by @webkul-ratnesh) has been fixed in #19089 by @swnsma in 2.2-develop branch Related commits: 1. a651b31 - #18617: Missing Fixed Product Tax total on PDF (reported by @Detzler) has been fixed in #18649 by @maheshWebkul721 in 2.2-develop branch Related commits: 1. 382e550 - #18150: Backups error from User Roles Permission 2.2.6 (reported by @andy17612) has been fixed in #18815 by @maheshWebkul721 in 2.2-develop branch Related commits: 1. bf700aa - #18082: Fatal Error when save configurable product in Magento 2.2.5 (reported by @vpatidar009) has been fixed in #18461 by @thiagolima-bm in 2.2-develop branch Related commits: 1. 03698da 2. 38854b5
2 parents ca21231 + 03a7cbb commit c825d3a

File tree

23 files changed

+51
-31
lines changed

23 files changed

+51
-31
lines changed

app/code/Magento/Backup/Controller/Adminhtml/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ abstract class Index extends \Magento\Backend\App\Action
1919
*
2020
* @see _isAllowed()
2121
*/
22-
const ADMIN_RESOURCE = 'Magento_Backend::backup';
22+
const ADMIN_RESOURCE = 'Magento_Backup::backup';
2323

2424
/**
2525
* Core registry

app/code/Magento/Catalog/Test/Unit/Model/Product/Gallery/GalleryManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function testGetWithNonExistingProduct()
268268

269269
/**
270270
* @expectedException \Magento\Framework\Exception\NoSuchEntityException
271-
* @expectedExceptionText Such image doesn't exist
271+
* @expectedExceptionMessage Such image doesn't exist
272272
*/
273273
public function testGetWithNonExistingImage()
274274
{

app/code/Magento/Catalog/Test/Unit/Model/Product/PriceModifierTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function setUp()
5656

5757
/**
5858
* @expectedException \Magento\Framework\Exception\NoSuchEntityException
59-
* @expectedMessage This product doesn't have tier price
59+
* @expectedExceptionMessage Product hasn't group price with such data: customerGroupId = '1', website = 1, qty = 3
6060
*/
6161
public function testRemoveWhenTierPricesNotExists()
6262
{
@@ -72,7 +72,7 @@ public function testRemoveWhenTierPricesNotExists()
7272

7373
/**
7474
* @expectedException \Magento\Framework\Exception\NoSuchEntityException
75-
* @expectedMessage For current customerGroupId = '10' with 'qty' = 15 any tier price exist'.
75+
* @expectedExceptionMessage Product hasn't group price with such data: customerGroupId = '10', website = 1, qty = 5
7676
*/
7777
public function testRemoveTierPriceForNonExistingCustomerGroup()
7878
{
@@ -83,7 +83,7 @@ public function testRemoveTierPriceForNonExistingCustomerGroup()
8383
->will($this->returnValue($this->prices));
8484
$this->productMock->expects($this->never())->method('setData');
8585
$this->productRepositoryMock->expects($this->never())->method('save');
86-
$this->priceModifier->removeTierPrice($this->productMock, 10, 15, 1);
86+
$this->priceModifier->removeTierPrice($this->productMock, 10, 5, 1);
8787
}
8888

8989
public function testSuccessfullyRemoveTierPriceSpecifiedForAllGroups()

app/code/Magento/Catalog/Test/Unit/Model/Product/TierPriceManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function testSuccessDeleteTierPrice()
191191

192192
/**
193193
* @expectedException \Magento\Framework\Exception\NoSuchEntityException
194-
* @message Such product doesn't exist
194+
* @expectedExceptionMessage No such entity.
195195
*/
196196
public function testDeleteTierPriceFromNonExistingProduct()
197197
{

app/code/Magento/Checkout/Test/Unit/Model/SidebarTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testCheckQuoteItem()
9797

9898
/**
9999
* @expectedException \Magento\Framework\Exception\LocalizedException
100-
* @exceptedExceptionMessage We can't find the quote item.
100+
* @expectedExceptionMessage We can't find the quote item.
101101
*/
102102
public function testCheckQuoteItemWithException()
103103
{

app/code/Magento/ConfigurableProduct/Controller/Adminhtml/Product/Initialization/Helper/Plugin/Configurable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected function getVariationMatrix()
158158
$configurableMatrix = json_decode($configurableMatrix, true);
159159

160160
foreach ($configurableMatrix as $item) {
161-
if ($item['newProduct']) {
161+
if (isset($item['newProduct']) && $item['newProduct']) {
162162
$result[$item['variationKey']] = $this->mapData($item);
163163

164164
if (isset($item['qty'])) {

app/code/Magento/Customer/Controller/Account/ForgotPassword.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,17 @@ public function __construct(
4040
/**
4141
* Forgot customer password page
4242
*
43-
* @return \Magento\Framework\View\Result\Page
43+
* @return \Magento\Framework\Controller\Result\Redirect|\Magento\Framework\View\Result\Page
4444
*/
4545
public function execute()
4646
{
47+
if ($this->session->isLoggedIn()) {
48+
/** @var \Magento\Framework\Controller\Result\Redirect $resultRedirect */
49+
$resultRedirect = $this->resultRedirectFactory->create();
50+
$resultRedirect->setPath('*/*/');
51+
return $resultRedirect;
52+
}
53+
4754
/** @var \Magento\Framework\View\Result\Page $resultPage */
4855
$resultPage = $this->resultPageFactory->create();
4956
$resultPage->getLayout()->getBlock('forgotPassword')->setEmailValue($this->session->getForgottenEmail());

app/code/Magento/Customer/Model/Authentication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function authenticate($customerId, $password)
167167
{
168168
$customerSecure = $this->customerRegistry->retrieveSecureData($customerId);
169169
$hash = $customerSecure->getPasswordHash();
170-
if (!$this->encryptor->validateHash($password, $hash)) {
170+
if (!$hash || !$this->encryptor->validateHash($password, $hash)) {
171171
$this->processAuthenticationFailure($customerId);
172172
if ($this->isLocked($customerId)) {
173173
throw new UserLockedException(__('The account is locked.'));

app/code/Magento/Customer/view/frontend/web/js/password-strength-indicator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ define([
8383
} else {
8484
isValid = $.validator.validateSingleElement(this.options.cache.input);
8585
zxcvbnScore = zxcvbn(password).score;
86-
displayScore = isValid ? zxcvbnScore : 1;
86+
displayScore = isValid && zxcvbnScore > 0 ? zxcvbnScore : 1;
8787
}
8888
}
8989

app/code/Magento/Downloadable/Test/Unit/Helper/DownloadTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function testSetResourceInvalidPath()
8989

9090
/**
9191
* @expectedException \Magento\Framework\Exception\LocalizedException
92-
* @exectedExceptionMessage Please set resource file and link type.
92+
* @expectedExceptionMessage Please set resource file and link type.
9393
*/
9494
public function testGetFileSizeNoResource()
9595
{

0 commit comments

Comments
 (0)