You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change parent etag when file metadata changes #16589
This would be required if we really want the etag to represent a fixed state for folders, also for implementing PROPFIND proxy/caching. @DeepDiver1975@butonic
Turns out that changing etag for parent when outgoing shares are created/modified would be important for the desktop client to catch the changes for the overlay icons.
The lack of any indication of meta data changes has several implications for the new iOS client:
Favorites
Changing Favorites doesn't leave any trace in the ETag, so won't be picked up by the periodic scan for changes (using a PROPFIND with depth 0 on root).
For the iOS client that means that favorite information will only be accurate for:
items whose favorite status didn't change since they were last returned by a PROPFIND
items whose favorite status was changed through the new iOS app on the same device (in which case the iOS app updates its metadata locally as well)
It will not be accurate for items whose favorite status was changed by any other means (i.e. web UI, other device) after they were last returned as part of a PROPFIND response.
Impact:
we can currently not implement a view showing all favorited items.
Sharing
Creating, editing or removing a share doesn't leave any trace in the ETag either, so won't be picked up by the periodic scan for changes (using a PROPFIND with depth 0 on root).
We currently try to avoid inconsistencies for the user as much as possible by always performing a depth 1 PROPFIND when a user navigates to a folder - and a depth 0 PROPFIND on items that the user performed any sharing related actions via the app.
However, if the user adds a share to an item via the web UI for a folder they currently view, the change will not be reflected until the user either pulls down to refresh or navigates out of the folder and back into it.
Impact:
we have to do a full depth 1 PROPFIND on every directory the user enters. I'd have loved to do just a depth 0 PROPFIND here instead, and only perform a depth 1 PROPFIND if any indication of changes was found, boosting performance and saving on CPU, battery and bandwidth.
sharing status of items may not always be presented accurately
Currently, to find changed items in a PROPFIND response, the new iOS app needs to compare
ETag to detect file content changes
d:href to detect file name changes
oc:share-types to detect changes to sharing information
oc:permissions to detect changes to permissions
oc:favorite to detect changes to the favorite status
It'd be great to streamline this.
Impact:
code to detect changes is more complex than necessary and - due to lack of documentation - possibly incomplete
Proposal
A solution could be the introduction of a new metadata ETag – let's call it the METag:
it would change for a file once its favorite status, permissions, name or sharing information has changed.
METag changes of files would propagate to parent directories all the way up to the root directory - just like the current ETags do.
Benefits:
a single PROPFIND with depth 0 on the root directory is sufficient to detect any changes
minimized the number of PROPFINDs with depth 1 needed to bring locally cached metadata in sync with the latest metadata changes on the server
a single attribute to check for clients to see if there has been any metadata change to an item, rather than having to compare a (possibly growing) number of attributes.
currently our etag changes also for metadata changes. we could introduce a ctag, which would align with the msgraph definitions:
Property
Type
Description
cTag
String
An eTag for the content of the item. This eTag is not changed if only the metadata is changed. Note This property is not returned if the item is a folder. Read-only.
eTag
String
eTag for the entire item (metadata + content). Read-only.
Activity
PVince81 commentedon May 28, 2015
CC @icewind1991 @DeepDiver1975 FYI
PVince81 commentedon Oct 10, 2016
This would be required if we really want the etag to represent a fixed state for folders, also for implementing PROPFIND proxy/caching. @DeepDiver1975 @butonic
PVince81 commentedon Oct 10, 2016
PVince81 commentedon Oct 24, 2017
Turns out that changing etag for parent when outgoing shares are created/modified would be important for the desktop client to catch the changes for the overlay icons.
PVince81 commentedon Mar 23, 2018
it will be even more useful to detect permission changes and other future metadata like X-bit
cc @moscicki
felix-schwarz commentedon May 15, 2019
The lack of any indication of meta data changes has several implications for the new iOS client:
Favorites
Changing Favorites doesn't leave any trace in the
ETag, so won't be picked up by the periodic scan for changes (using aPROPFINDwith depth 0 on root).For the iOS client that means that
favoriteinformation will only be accurate for:PROPFINDIt will not be accurate for items whose favorite status was changed by any other means (i.e. web UI, other device) after they were last returned as part of a
PROPFINDresponse.Impact:
Sharing
Creating, editing or removing a share doesn't leave any trace in the
ETageither, so won't be picked up by the periodic scan for changes (using aPROPFINDwith depth 0 on root).We currently try to avoid inconsistencies for the user as much as possible by always performing a depth 1
PROPFINDwhen a user navigates to a folder - and a depth 0PROPFINDon items that the user performed any sharing related actions via the app.However, if the user adds a share to an item via the web UI for a folder they currently view, the change will not be reflected until the user either pulls down to refresh or navigates out of the folder and back into it.
Impact:
PROPFINDon every directory the user enters. I'd have loved to do just a depth 0PROPFINDhere instead, and only perform a depth 1PROPFINDif any indication of changes was found, boosting performance and saving on CPU, battery and bandwidth.Related issue: #34666
Change detection
Currently, to find changed items in a
PROPFINDresponse, the new iOS app needs to compareETagto detect file content changesd:hrefto detect file name changesoc:share-typesto detect changes to sharing informationoc:permissionsto detect changes to permissionsoc:favoriteto detect changes to the favorite statusIt'd be great to streamline this.
Impact:
Proposal
A solution could be the introduction of a new metadata ETag – let's call it the
METag:METagchanges of files would propagate to parent directories all the way up to the root directory - just like the currentETags do.Benefits:
PROPFINDwith depth 0 on the root directory is sufficient to detect any changesPROPFINDs with depth 1 needed to bring locally cached metadata in sync with the latest metadata changes on the serverbutonic commentedon Mar 11, 2021
currently our etag changes also for metadata changes. we could introduce a ctag, which would align with the msgraph definitions:
stale commentedon Sep 20, 2021
This issue has been automatically closed.