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

Fix issue #4470: import.xsd doesn't allow numbers in vendor name and class name #5420

Closed
wants to merge 5 commits into from

Conversation

nhp
Copy link

@nhp nhp commented Jul 2, 2016

It was possible to have model definitions that were not parsable
in the xml because it validated the xsd specificatons.
There was no Problem in adding those Models and use them but
not with that .xsd file.

It was possible to have model definitions that were not parsable
in the xml because it validated the xsd specificatons.
There was no Problem in adding those Models and use them but
not with that .xsd file.
I do not know if those make sense now, but at least the look
like it could be ok.
@pquerner
Copy link

pquerner commented Jul 3, 2016

Probably needs some fixing in test files aswell..?

@nhp
Copy link
Author

nhp commented Jul 5, 2016

will do that asap. They did not pop up for me because of beeing from 5.6 tests it looks like.

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Aug 31, 2016

CLA assistant check
All committers have signed the CLA.

@tkn98
Copy link
Contributor

tkn98 commented Mar 28, 2017

I suggest to do the fix similarly to ced639a <xs:pattern value="[a-zA-Z]+[a-zA-Z0-9\\]+" / and also to check the other incarnations of this flaw.

We have digits in the vendor name N98 for Netz98 GmbH and also some of our customers or shops have digits in the vendor name which is perfectly valid so I would consider this blocking.

tkn98 added a commit to tkn98/magento2 that referenced this pull request Mar 29, 2017
The solidusbackslash character ("\")  was put more than once in the same
regex character class across some XSD files. Per each character class
there is no need to specify it twice.

I ran over this while looking into an issue with class-name validation
which do not allow digits within class names.

Refs:

- https://www.w3.org/TR/xmlschema11-2/#cces

- magento#4470

- magento#5420

- magento#8307
@okorshenko okorshenko assigned okorshenko and unassigned BaDos Apr 11, 2017
@okorshenko
Copy link
Contributor

okorshenko commented Apr 11, 2017

@nhp thank you for your contribution. Could you please resolve the conflicts so that I can proceed with PR acceptance if this PR is still relevant.
Thank you

@okorshenko okorshenko changed the title Fix issue #4470 Fix issue #4470: import.xsd doesn't allow numbers in vendor name and class name Apr 19, 2017
@okorshenko
Copy link
Contributor

Closing this PR due to inactivity

@okorshenko okorshenko closed this May 9, 2017
@okorshenko okorshenko added this to the May 2017 milestone May 9, 2017
magento-cicd2 pushed a commit that referenced this pull request Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants