-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't rely on instance id oc prefix when parsing file id #6745
Comments
The client does only try to extract the fileid as a fallback, if the PROPFIND fails. or if the server do not support oc:fileid. Since what version of the server can we assume there exist oc:fileid? #5763 (comment) Discuss that we could use oc:fileid instead of oc:id in the database itself. |
The "oc" prefix exists since OC 6. Any install that was setup before that, like mine, still have the old instance id as we don't regenerate it automatically as it could cause side effects. |
But since when do the properties |
The fileid is only extracted from the full id in this way if Use the first 8 byte if the first character is a 0, otherwise scan for the first letter? |
using the first bytes could become unreliable once the fileid becomes longer, see owncloud/core#26901 |
|
This is only for the legacy codepath so I think it's low importance. Nevertheless I will improve the heuristic for extracting the fileid from the id for the legacy case in 2.5.0. In the future we should indeed think about migrating to just using the fileid instead of the id. This will likely need to be done over a long time period to ensure database interoperability: first start storing the numeric id as well in a separate field, then later drop the id. Currently there's no urgent need for it. |
Agreed about low prio. If the 404 is solved in 2.5.0 (I need to test it), then the problem will likely disappear. (ref: #6742) |
Legacy private links where removed in 2.7 |
See #6742 (comment)
In general the client could use the newer "oc:fileid" property and store it separately from the instance id.
If the instance id is needed, we could expose it as well in the capabilities if not already.
The text was updated successfully, but these errors were encountered: