Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream merge 1.9.4.1 #639

Merged
merged 4 commits into from
Apr 2, 2019
Merged

Upstream merge 1.9.4.1 #639

merged 4 commits into from
Apr 2, 2019

Conversation

Flyingmana
Copy link
Contributor

as there were issues with the last merge from the mirror, I do provide it now as a PR for an extra review

Schrank and others added 4 commits March 27, 2019 09:38
 Conflicts:
	app/code/core/Mage/Compiler/Block/Process.php
	app/code/core/Mage/Compiler/Helper/Data.php
	app/code/core/Mage/Compiler/Model/Process.php
	app/code/core/Mage/Compiler/controllers/Adminhtml/Compiler/ProcessController.php
	app/code/core/Mage/Compiler/controllers/ProcessController.php
	app/code/core/Mage/Compiler/etc/adminhtml.xml
	app/code/core/Mage/Compiler/etc/compilation.xml
	app/code/core/Mage/Compiler/etc/config.xml
	app/code/core/Mage/Sales/doc/test.php
	app/design/adminhtml/default/default/layout/compiler.xml
	app/design/adminhtml/default/default/template/compiler/process.phtml
	app/etc/modules/Mage_Compiler.xml
	shell/compiler.php
Copy link
Contributor

@edannenberg edannenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issues mentioned in #602 are still present in this PR, so #602 should get merged first. The PR also introduces a new mismatch in lib/phpseclib/bootstrap.php which is not covered by #602. Looks like an issue with how this PR was created.

Issues that popped up during the usual rebase procedure in my fork:

  • only 2 minor merge conflicts related to copyright header changes in deleted files
  • Mage_Compiler was removed in 1.9.4.1, but not as thoroughly as our related commit
  • Wishlist observer regression from 1.9.4.0 is not fixed in 1.9.4.1

To look at the details clone https://github.com/edannenberg/magento-lts and do a directory compare with this PR. Note that 1.9.4.x still has a couple of missing commits from 1.9.3.x that are already in my fork.

@Flyingmana
Copy link
Contributor Author

the bootstrap mismatch did already happen on the 1.9.4.0 import(I probably chose the wrong side for the conflict. So I would push this into a separate PullRequest afterwards

I merged #602

I did forward port the current changes in 1.9.3.x to 1.9.4.x via #645

I remember looking into the wishlist observer thing and discussing it in a slack, sadly the history there is already lost, and it was not yet discussed here in the repository. The change was introduced by the PHP 7.2 patch, but was not included into official releases, so Iam not sure if it can be called a regression. Maybe, as it is about multiple wishlists, it was not meant to be for CE and just accidentally made it into the patch back then. (just writing it down here, so Iam not so confused about this topic the next time)
Am I right, that we dont need to do anything related to the wishlist?

Anything else I missed?

@edannenberg
Copy link
Contributor

edannenberg commented Apr 2, 2019

the bootstrap mismatch did already happen on the 1.9.4.0 import(I probably chose the wrong side for the conflict. So I would push this into a separate PullRequest afterwards

Yea looks like I missed that one when creating #602.

I remember looking into the wishlist observer thing and discussing it in a slack, sadly the history there is already lost, and it was not yet discussed here in the repository. The change was introduced by the PHP 7.2 patch, but was not included into official releases, so Iam not sure if it can be called a regression.

I took another look at it, pretty sure this is a regression. The relevant PHP7.2 patch change:

-if (count($wishlistIds) && $request->getParam('wishlist_next')){
+if (!empty($wishlistIds) && $request->getParam('wishlist_next')){

Then in 1.9.4.0 this changed to:

-if (!empty($wishlistIds) && $request->getParam('wishlist_next')){
+if (empty($wishlistIds) && $request->getParam('wishlist_next')){

Am I right, that we dont need to do anything related to the wishlist?

The regression never made it into this repo when 1.9.4.0 was merged, so right now no further actions are needed.

Anything else I missed?

Looked good otherwise from my end. You can rebase the PR branch and do another directory compare with my fork, if both match everything is in order.

);
$logValidator = new Zend_Validate_File_Extension($_allowedFileExtensions);
$logDir = self::getBaseDir('var') . DS . 'log';
if (!$logValidator->isValid($logDir . DS . $file)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about to change this ... see #646

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another patch another regression, le sigh. Should get addressed in a separate PR though.

Copy link
Contributor

@edannenberg edannenberg Apr 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After digging a bit into the issue the code is actually correct, for some reason Zend_Validate_File_Extension::isValid() also does a file check, which really is none of it's business.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not said its wrong. Finally it does nearly the same as the old check - if the file check is removed :)

@Flyingmana Flyingmana merged commit 77a837a into 1.9.4.x Apr 2, 2019
@sreichel sreichel added the patch label May 21, 2019
@sreichel sreichel deleted the upstream-merge-1.9.4.1 branch June 5, 2020 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants