-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Invalid signature check for XML files #1916
Comments
christof-b
pushed a commit
to christof-b/PhpSpreadsheet
that referenced
this issue
Mar 11, 2021
Replace the unrequired product signature by the required namespace definition for XML Spreadsheet.
First detected in issue #522 |
christof-b
pushed a commit
to christof-b/PhpSpreadsheet
that referenced
this issue
Mar 11, 2021
MarkBaker
pushed a commit
that referenced
this issue
Mar 13, 2021
* Fix SpreadsheetML (xml) detection (#1916) Replace the unrequired product signature by the required namespace definition for XML Spreadsheet. * Add summary to changelog (#1916) Co-authored-by: Christof Bachmann <[email protected]>
Does the push mentioned above solve this problem, and is it okay to close this ticket now? |
That push should resolve the problem. You can test against the master branch to confirm |
Fixed by PR 1917. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is:
What is the expected behavior?
The PhpOffice\PhpSpreadsheet\Reader\Xml class should read all valid SpreadsheetML (xml) files.
What is the current behavior?
<?mso-application progid="Excel.Sheet"?>
, which is not a requirement or part of the schemaxmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
, which will also fail later, as the current implementation works only for this namespaceWhat are the steps to reproduce?
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
Which versions of PhpSpreadsheet and PHP are affected?
all
Further Information
The currently supported SpreadsheetML as XML does not require the
<?mso-application progid="Excel.Sheet"?>
to be present, but it requires the namespacexmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
to be present. The part<?mso-application progid="Excel.Sheet"?>
is only be added by Excel themselfs, exports from other tools will not contain this information.See https://docs.microsoft.com/en-us/previous-versions/office/developer/office-xp/aa140062(v=office.10)#excel-xml-schema-namespaces
and for an example: https://de.wikipedia.org/wiki/SpreadsheetML
Fix
Replace
with
I will create a pull request for this.
The text was updated successfully, but these errors were encountered: