[GH-ISSUE #3959] [Bug]: Mailbox Archive Size Incorrect #1780

Closed
opened 2026-03-02 13:47:02 +03:00 by kerem · 5 comments
Owner

Originally created by @Zacgoose on GitHub (Apr 14, 2025).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/3959

Originally assigned to: @rvdwegen on GitHub.

Required confirmations before submitting

  • I can reproduce this issue on the latest released versions of both CIPP and CIPP-API.
  • I have searched existing issues (both open and closed) to avoid duplicates.
  • I am not requesting general support; this is an actual bug report.

Issue Description

Mailbox archive size is incorrect. You can tell that by looking at the message count of 3 and in the Exchange Portal.
I have seen this behavour a couple times in the past but this particular user has had this issue since online archive was enabled.

Environment Type

Non-sponsored user

Front End Version

v7.5.0

Back End Version

v7.5.0

Relevant Logs / Stack Trace

Tan Stack Info:
TotalArchiveItemSize: 82.14
TotalArchiveItemCount: 3
ArchiveMailBox: true
Originally created by @Zacgoose on GitHub (Apr 14, 2025). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/3959 Originally assigned to: @rvdwegen on GitHub. ### Required confirmations before submitting - [x] **I can reproduce this issue on the latest released versions** of both CIPP and CIPP-API. - [x] **I have searched existing issues** (both open and closed) to avoid duplicates. - [x] I am **not** requesting general support; this is an actual bug report. ### Issue Description Mailbox archive size is incorrect. You can tell that by looking at the message count of 3 and in the Exchange Portal. I have seen this behavour a couple times in the past but this particular user has had this issue since online archive was enabled. ### Environment Type Non-sponsored user ### Front End Version v7.5.0 ### Back End Version v7.5.0 ### Relevant Logs / Stack Trace ```plaintext Tan Stack Info: TotalArchiveItemSize: 82.14 TotalArchiveItemCount: 3 ArchiveMailBox: true ```
kerem 2026-03-02 13:47:02 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Apr 14, 2025):

Thank you for reporting a potential bug. If you would like to work on this bug, please comment:

I would like to work on this please!

Thank you for helping us maintain the project!

<!-- gh-comment-id:2800248612 --> @github-actions[bot] commented on GitHub (Apr 14, 2025): Thank you for reporting a potential bug. If you would like to work on this bug, please comment: > I would like to work on this please! Thank you for helping us maintain the project!
Author
Owner

@Zacgoose commented on GitHub (Apr 14, 2025):

Further to this it seems its actually to do with the storage value returned by MS as when its gets over 1GB in size the CIPP interface is correct. We noticed with about 800MB of data in the archive CIPP formatted it as 800GB rather than 0.8GB or 800MB

<!-- gh-comment-id:2800996804 --> @Zacgoose commented on GitHub (Apr 14, 2025): Further to this it seems its actually to do with the storage value returned by MS as when its gets over 1GB in size the CIPP interface is correct. We noticed with about 800MB of data in the archive CIPP formatted it as 800GB rather than 0.8GB or 800MB
Author
Owner

@rvdwegen commented on GitHub (Apr 14, 2025):

Hi, could you share a few screenshots and use the "View API response" button to copy an example of a result object where its displaying correctly and where its displaying incorrectly? You can blank out any identifying information.

<!-- gh-comment-id:2801845432 --> @rvdwegen commented on GitHub (Apr 14, 2025): Hi, could you share a few screenshots and use the "View API response" button to copy an example of a result object where its displaying correctly and where its displaying incorrectly? You can blank out any identifying information.
Author
Owner

@Zacgoose commented on GitHub (Apr 16, 2025):

Here is an image, you can clearly see that the numbers are not correct (Size that is) but once the actual usage is more than 1GB it correctly shows the usage.

It might be a while before I can get API reponces for you but I am confident that you will be able to replicate it in your test environment.

Image

<!-- gh-comment-id:2807876391 --> @Zacgoose commented on GitHub (Apr 16, 2025): Here is an image, you can clearly see that the numbers are not correct (Size that is) but once the actual usage is more than 1GB it correctly shows the usage. It might be a while before I can get API reponces for you but I am confident that you will be able to replicate it in your test environment. ![Image](https://github.com/user-attachments/assets/2a713d3d-6ea0-45cf-addd-1dd6b1da9f5c)
Author
Owner

@rvdwegen commented on GitHub (Apr 17, 2025):

That was a fun wild goose chase haha. Fixed in dev with thanks to @kris6673

<!-- gh-comment-id:2813526990 --> @rvdwegen commented on GitHub (Apr 17, 2025): That was a fun wild goose chase haha. Fixed in dev with thanks to @kris6673
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#1780
No description provided.