microsoftgraph / microsoftgraph/msgraph-sdk-python-core

FileSizeDisplay in item content returned in DateTime format not in int value

Open
#780 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:serialization P1 priority:p1 type:bug
Dominant language
Python
Stars
288
Forks
52
Avg merge
8h 10m
Merged PRs (30d)
1

Description

Describe the bug

Using MSGRAPH to retrieve specific item information using functions client().sites.by_site_id(site_id).lists.by_list_id(folder.id).items.get() some files have DateTime format in FileSizeDisplay field, using main HTTP API this value is correct

Expected behavior

FileSizeDisplay in int/float value

How to reproduce

Some specific files have this issue

SDK Version

1.1.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the client().sites.by_site_id(site_id).lists.by_list_id(folder.id).items.get() call with an affected file and compare its FileSizeDisplay value with the main HTTP API response. Trace how the item response is deserialized, then verify that affected items retain a numeric FileSizeDisplay value and add coverage for the discrepancy.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.