Implemented
0
Provide a more secure method of obtaining the revision id from a Node when file versioning is used.
Source: nextcloud/server#52092 · opened by @bdovaz
Is your feature request related to a problem? Please describe.
IMetadataVersionBackend requires a revision which is not easy to know where to get this data from.
Initially I got it by calling getVersionsForFile from IVersionBackend which returns instances of Version that have this field:
But then looking at this class I see that it is much simpler than that, you can do a node->getMTime() directly and this is precisely what is not easy to know:
That is why I ask if there would be a possibility of passing a Node to return the "last revisionId" of the same one and that this detail falls in a method and the user does not have to know it.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
IMetadataVersionBackend requires a revision which is not easy to know where to get this data from.
Initially I got it by calling getVersionsForFile from IVersionBackend which returns instances of Version that have this field:
But then looking at this class I see that it is much simpler than that, you can do a node->getMTime() directly and this is precisely what is not easy to know:
That is why I ask if there would be a possibility of passing a Node to return the "last revisionId" of the same one and that this detail falls in a method and the user does not have to know it.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
No pledges yet. Be the first to back this.
Comments
Similar requests
Ability to disable Versioning for External Storage (or select folders)
2 votes · 0 comments
Webdav propfind: use revision similar like caldav
0 votes · 0 comments
Controller method annotation to be able to call a controller's method before verifying two factor challenge for 2FA
0 votes · 0 comments
File versioning priority
1 vote · 0 comments
Versioning: show restore in activity stream
3 votes · 0 comments
No comments yet.