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
OpenXmlValidator not validating boolean values #887
Comments
Thanks for the issue! I added some better cell validation but apparently didn't handle this case. I'll get a fix in. |
@twsouthwick Hope it's OK if I continue this issue. Else I'll open a new one if required. We have fairly comprehensive test suite in ClosedXML and after upgrading to OpenXML 2.12.2 the problem described above was the cause of the majority of our test failures. Only now, after upgrading to 2.12.3, did I notice there were other, similar validation issues. Sorry, they fell through the cracks previously. For example, this fails the validation too: <c r="C12" s="12">
<x:v>9.999E+307</x:v>
</c> So far, I can't see any other validation issues. |
Thanks! How about we get a fix for that and we'll iterate until you have a clean test suite? |
I added a PR at #901 |
@igitur Sorry I was on vacation last week and been catching up on stuff. We released a beta of 2.13.0 that has this fix. Can you verify with that build? We can get a 2.12.4 out once we've got all your regressions addressed. |
Thanks @twsouthwick . I tested against the beta version and all these kinds of parsing issues seem to be resolved, at least as far as our test suite covers. Just something that I noticed, and it's not really a big issue, but I notice that now all the .xml files in the package have a |
That would be due to #309. It was intentional and allows it to be open by more editors. |
We plan on releasing 2.13.0 end of the month. Is that OK timeframe or would a patch release be better? |
Thanks. Yes, that timeframe is all good. |
I think we can close this issue now. Thanks for the help. |
Before submitting an issue, please fill this out
Is this a:
If you have answered that this is a question, please ask it on StackOverflow instead of here.
This issue tracker is meant to track product issues while StackOverflow excels at answering questions
---------------- Remove this line and above before posting ----------------
Description
This looks like a regression. Values of type boolean, but with values
0
or1
in the OpenXML document fail to validate.Information
This problem doesn't exist in 2.11.3, hence it looks like a regression between 2.11.3 and 2.12.0.
Repro
Test file: test.xlsx
Observed
OpenXmlValidator.Validate()
produces errors.Expected
OpenXmlValidator.Validate()
should not produce errors.The text was updated successfully, but these errors were encountered: