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

Large PageID results System.Int32 overflow #191

Closed
robertcranendonk opened this issue May 12, 2021 · 3 comments
Closed

Large PageID results System.Int32 overflow #191

robertcranendonk opened this issue May 12, 2021 · 3 comments

Comments

@robertcranendonk
Copy link

When running "Get-ConfluencePage" on a specific page with ID "2456223776" the script exits with the following error:
System.Management.Automation.RuntimeException: Cannot create object of type "ConfluencePS.Page". Cannot convert value "2456223776" to type "System.Int32". Error: "Value was either too large or too small for an Int32." ---> System.Management.Automation.PSInvalidCastException: Cannot create object of type "ConfluencePS.Page". Cannot convert value "2456223776" to type "System.Int32". Error: "Value was either too large or too small for an Int32." ---> System.Management.Automation.PSInvalidCastException: Cannot convert value "2456223776" to type "System.Int32". Error: "Value was either too large or too small for an Int32." ---> System.OverflowException: Value was either too large or too small for an Int32.

This error also happens when running "Get-ConfluenceSpace", the table populates with pages up to this page resulting in the same crash (see attached image).

image

@ztrhgf
Copy link

ztrhgf commented May 19, 2021

I modified ConfluencePS module to fix this issue..Check https://github.com/ztrhgf/useful_powershell_functions/tree/master/modules/ConfluencePS/2.5.0

@lipkau
Copy link
Member

lipkau commented May 19, 2021

This was already reported in #186 and fixed.
The release of the fixed failed. I am redeploying right now.
verstion 2.5.1 fixes this problem.

@lipkau lipkau closed this as completed May 19, 2021
@robertcranendonk
Copy link
Author

Ah, I checked only the open issues for duplicates.
It works after updating! Thank you for the quick resolution and thank you for your work on this module!

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

No branches or pull requests

3 participants