Skip to content

byDriveItemId method items() works different in some cases in version 6.1.0 #1804

@ihudedi

Description

@ihudedi

Hi
I found the the method byDriveItemId ask for different path every time:
To get drive item for item in root
graphServiceClient.drives().byDriveId("driveId").items().byDriveItemId("root:/fileName").get()

To get drive item children in root :
graphServiceClient.drives().byDriveId("driveId").items().byDriveItemId("root:/fileName:").get()
Added colon in the end.
same for when trying to upload file use with extra colon in the end
graphServiceClient.drives().byDriveId(driveId).items().byDriveItemId("root:/fileName:).content().put(fileContent)
Didn't understand why there is a change in the logic....
Morethan it When transfer large item using
UploadSession uploadSession = graphServiceClient.drives()
.byDriveId("driveId")
.items()
.byDriveItemId("root:/fileName")
.createUploadSession().post(uploadSessionPostRequestBody);
Nothing is working with colon or without colon.
Would like to know the logic
Thanks,
Itay

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions