-
Notifications
You must be signed in to change notification settings - Fork 195
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
Get SiteCollection properties throws ArgumentOutOfRangeException #803
Comments
@FlorianLabranche , @Sean-LM, @TheRealDrNick: I can reproduce this issue, seems that we're getting following datetime string back: |
@FlorianLabranche , @Sean-LM, @TheRealDrNick: issue has been fixed and will be part of the next nightly build, version 1.6.7 or higher. Closing this issue now, feel free to re-open or create a new one when the issue is still not fixed in your setup. |
@jansenbe: Thank you for the update but I think there's an issue with the date parser. In #703, we had a 0 for month value for a site created/modified in january. As documented here, month value MUST be in the range 0–11. When I do a quick comparison between a call using PnPCore and CSOM, for the same site, the date from PnP call is a month before the one returned by CSOM. So, my guess is the datetime conversion doesn't implement the right rule set for month value. |
@FlorianLabranche : nice research done @FlorianLabranche , that explains things! I'll update the implementation accordingly. |
@FlorianLabranche , @Sean-LM, @TheRealDrNick: I've aligned the CSOM datetime parsing code to what is used inside CSOM itself + added updated test cases. Datetime parsing should now support all cases and be slightly faster as well. The fix will be part of the next nightly build, version 1.6.8 or higher. Closing this issue now, feel free to re-open or create a new one when the issue is still not fixed in your setup. |
Thank you @jansenbe ! |
Category
Describe the bug
Getting site collection properties throw the following exception :
Steps to reproduce
Below code snippet can be used to repro the issue:
Environment details (development & target environment)
Additional context
Related issue: #703
Fails since 28/03/2022.
Stack trace:
The text was updated successfully, but these errors were encountered: