Repository navigation
Fix etag propagation for single file shares - #17082
Conversation
|
8.1? breaks sync |
|
Wow, infinite loop! @icewind1991 please have a look |
aaabf64 to
3712628
Compare
|
Added a unit test and changed to approach to prevent the infinite loop |
There was a problem hiding this comment.
Was this missing ? Or is it an additional optimization ?
Or required for this fix ?
There was a problem hiding this comment.
required for this fix, also small optimization
|
@icewind1991 mind explaning the change a little bit ? (the commit comment is a bit sparse) |
|
It is also unclear to me why single file share require special handling, and also I don't understand in what way your change makes it work. |
|
Before this etag propagation hooks into the change propagation (which is responsible for updating etag/mtime for parent folders) but the change propagator only emits hooks for the parent folders of changed files. This is nice with shared folders or more complex share setups but doesn't work if the file changed itself is shared |
There was a problem hiding this comment.
Is that the part that detects if this is a file share ?
Will the change also affect folder shares ?
There was a problem hiding this comment.
only if the subject of the write hook has a share entry.
So only for single file shares
There was a problem hiding this comment.
Mind adding a small inline comment for that ?
Thanks 😄
|
👍 |
|
@icewind1991 please rebase for oracle ci - thx |
3712628 to
c87ab65
Compare
|
A new inspection was created. |
|
@schiesbn @nickvergessen @DeepDiver1975 second reviewer please |
|
👍 |
Fix etag propagation for single file shares
|
Regression: #18034 |

To test:
cc @DeepDiver1975 @PVince81