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

Update to Magento 1.9.4 #70

Merged
merged 1 commit into from
Dec 3, 2018

Conversation

treestonemedia
Copy link
Contributor

No description provided.

@spinsch
Copy link

spinsch commented Nov 29, 2018

Same result. Looks fine!

# my local test
wget https://github.com/treestonemedia/magento-mirror/archive/magento-1.9.4.zip ; 
unzip -q magento-1.9.4.zip ; 
diff -r ~/Downloads/magento/ magento-mirror-magento-1.9.4/ ; 
touch magento-mirror-magento-1.9.4/difftest.txt ; 
echo "difftest" > magento-mirror-magento-1.9.4/difftest.txt ; 
diff -r ~/Downloads/magento/ magento-mirror-magento-1.9.4/ ; 
rm -rf magento-1.9.4.zip magento-mirror-magento-1.9.4/

@JeroenBoersma
Copy link
Contributor

Will download from Magento.com and verify...

@JeroenBoersma
Copy link
Contributor

Same result;

  • Went to Magento.com, downloaded archive magento-1.9.4.0-2018-11-28-04-26-04.tar.bz2
  • extracted
  • removed all files
  • copied into workdir
  • compared and same result

@BassemN
Copy link

BassemN commented Dec 1, 2018

Please merge and tag

@NikoGrano
Copy link

Same results, verified. Please merge.

@JosephMaxwell
Copy link
Collaborator

@treestonemedia, @spinsch, @JeroenBoersma, @BassemN, @Niko9911:

Until this gets merged, feel free to use: https://github.com/SwiftOtter/magento-mirror

@NikoGrano
Copy link

@JosephMaxwell Good try, but due many of scripts are tight into this repo, that is no use 😢

@drobinson
Copy link
Collaborator

drobinson commented Dec 3, 2018 via email

@drobinson drobinson merged commit fe6a94e into OpenMage:magento-1.9 Dec 3, 2018
@BassemN
Copy link

BassemN commented Dec 3, 2018

Thanks allot
But I think the tag name should be 1.9.4.0 instead of 1.9.4 to match the same version number on https://magento.com/tech-resources/download#download2259

@davidwindell
Copy link

Yes, please tag as 1.9.4.0 instead @drobinson thanks :)

@drobinson
Copy link
Collaborator

drobinson commented Dec 3, 2018 via email

@EricSeastrand
Copy link
Contributor

I would be hesitant to make a change like that unless there's a clear benefit that we aren't already getting.

For me, it would create a little bit of extra work. I have a script that uses this github repo (and the tags inside it) to do a 3-way merge between the new version, client's customized store and the un-modified old version. Changing the way versions are tagged would require updating of any scripts like mine. I wonder if others are in that same boat.

Of course, if there's a problem to be solved with that labeling change, and it would benefit the community in other ways, I'd think folks would be receptive.

@BassemN
Copy link

BassemN commented Dec 3, 2018

I agree with @willcodeforfood

@NikoGrano
Copy link

I highly disagree to add v due everybody knows already we are talking about the version. This would create more work to fix scripts etc. Not creating any benefit at the end.

@davidwindell
Copy link

@drobinson any chance you can tag this ASAP as 1.9.4.0 as it is holding up our builds at the moment. (p.s. 1.9.3.0 was tagged with the .0)

@royduin
Copy link

royduin commented Dec 4, 2018

I'm considering maintaining my own Magento mirror, this update is finally merged after 5 days with the wrong tag... I needed it day 1. No offence but if you don't have the time maybe add some more maintainers so the one first available can take care of the update?

@davidwindell
Copy link

Yes, please add some more maintainers. Our customers expect upgrades to be available from day 1 also.

@EricSeastrand
Copy link
Contributor

I am happy to volunteer as a maintainer.

I'll be stuck maintaining legacy M1 stores through the June 2020 EoL and have previously made a few contributions to this repo (#69 #66 #61 #54).

I usually end up working in my own fork so that I can get the update out more quickly, so it's no extra work to just do that in this repo instead.

@BassemN
Copy link

BassemN commented Dec 4, 2018

👍 for @willcodeforfood

@drobinson
Copy link
Collaborator

Hi -

Tag is updated.

RE: more maintainers - Agreed this repo is not getting updated fast enough. I'm not personally using this repository in my day-to-day work. However, I'm apprehensive to add more maintainers given recent events in the JS community and the increased focus from MageCart hacks, etc.

Additionally, if you have strong dependencies on this repository in scripts then I'd suggest forking (if you'd like the rich history from this repo) and self maintaining through the 2020 EOL, or scripting download and extraction directly from Magento.

Tagging @LeeSaferite for any additional commentary.

@LeeSaferite
Copy link
Contributor

I'm not adverse to adding some maintainers as long as the process for merging updates is documented, simple, and followed. I mean, technically we could script this process. Similar to @drobinson, I'm not working on any M1 projects and my time is very finite so any help is always appreciated.

I will also echo what @drobinson said about forking this repo. I suggest that you as a service provider fork this repo for your clients. That will allow you to update the repo with the latest version ASAP and then once the mirror is updated and tagged you can use that tag instead to maintain the history. That breaks your client's direct dependance on this repo but allows you to keep the history as well.

Anyway, so I have one volunteer, @willcodeforfood, any others?

@JosephMaxwell do you want to help maintain this mirror? I know you personally so the trust thing is easy enough.

@JosephMaxwell
Copy link
Collaborator

@LeeSaferite: sure, I can help. We still have a couple of M1 merchants, so we do need these updates made quickly.

@NikoGrano
Copy link

NikoGrano commented Dec 4, 2018

@LeeSaferite

We (https://xxxx.fi/) have many Magento 1 shops still in use, see site for references.
I have no previous contributions on this repository tough.

I would like highly keep in mind previous attacks, like flatmap-stream library. If this repository get's infected it will mean probably over 100 shops to be infected. Total sales on these shops are measured in billions. This is the power what we are dealing with here.

I can volunteer to this, if required.

Is there possibility to have x approvals for MR before it can be merged to avoid any malicious code injected into this repository? In other hand this would make still new versions available later, but at least would be a compromise while retaining security of this repository.

@@ -208,10 +208,10 @@ public function saveAction()

//validate attribute_code
if (isset($data['attribute_code'])) {
$validatorAttrCode = new Zend_Validate_Regex(array('pattern' => '/^[a-z][a-z_0-9]{1,254}$/'));
$validatorAttrCode = new Zend_Validate_Regex(array('pattern' => '/[a-z][a-z_0-9]{1,254}[^event]/'));
Copy link
Member

Choose a reason for hiding this comment

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

This will match any string containing only characters in the set 'evnt' which may not spell "event", such as "ten", "vent", etc.

This does not need to be complicated, it should simply be a separate if clause with a string comparison like:

if ('event' == $data['attribute_code']) {
    ...
}

That would have the added benefit of not breaking existing translations for the original message.

Choose a reason for hiding this comment

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

Will not help much due it is magento core. If your PR mismatches from official magento PR it will be rejected, even if the fixes very good cause

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, just noting it here for people that use this repo. Also, the regex change broke the validation that the string must start with a character so now other characters can be injected into the attribute code like "foo.bar/abc" will now validate. Whoever wrote that regex obviously doesn't know anything about regex...

Choose a reason for hiding this comment

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

it doesnt matter as the official magento core have same issue. Please create bug report for magento. This is not correct place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@colinmollenhour I promise it wasn't us that wrote that regex :)

Copy link
Member

Choose a reason for hiding this comment

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

This is such an incredibly obvious bug that I think anyone smart enough to exploit it would have easily found it themselves; it took me about two seconds.

I started a discussion here and got your attention so now you can report it if you so feel inclined. 🤣 As for me, until this link is not a 404 for the general public, I don't report Magento bugs: https://github.com/magento/magento1

Choose a reason for hiding this comment

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

As I told you, there is life outside of GitHub. You do not need repository to report it to them. Be smart, not a dummy who needs hand-to-hand tutorial.

Well, that still passed their review. Whatever, I'm done with you if you cannot use your keyboard to report it. Instead of that you're just writing about it in GitHub repositories.

Copy link
Member

@colinmollenhour colinmollenhour Dec 4, 2018

Choose a reason for hiding this comment

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

Here, will make it easy for you to report: https://regex101.com/r/dRFXLm/2/tests

Choose a reason for hiding this comment

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

@Niko9911 can we keep things civil without personal insults please?

Choose a reason for hiding this comment

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

@davidwindell I'm not insulting, but I'm highly questioning why he cannot create bug report as normal people would do instead spamming about it on GitHub.

@BassemN
Copy link

BassemN commented Dec 5, 2018

@drobinson I think you need to delete this old tag 1.9.4 because now there are two tags 1.9.4 and 1.9.4.0

@Flyingmana
Copy link
Contributor

@royduin @davidwindell
not having merge permissions here, but I put in the past quite some work into this. And even more into the LTS fork which includes bugfixes. (and also depends on this mirror, which is why I put some work into this in the past)
If your customers depend so much on this, you should think about why maintainers who offer a way to pay them back easily, dont get payed by this customers,... or you.
Really interested into Feedback about this, as my Patreon is not looking very motivating
https://www.patreon.com/Flyingmana

cc/ @drobinson @LeeSaferite sorry for plugging into this

regarding composer and version tags, the v in the beginning does not matter much for composer, both is legit. But I would still advice against mixing them and keep with the already used approach.

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.