default to schema v4#55
Conversation
|
I am still getting the 400 error with this change. I can get rid of the 400 error using the
Edit: After deleting the cached tree in |
|
This fixes the empty-cache path but there's a second case that still fails: when The PR #56 takes the same approach but unconditionally defaults to v4 regardless of |
|
To clarify who is affected: any account that has synced at least once with a version of rmapi that read a v3 root will have a populated cache with This is why |
|
Thank you for the clarification. |
|
Following removing the tree.cache, I attempt a list command with:
and I receive the following error: I've removed the token, hash, and file list, and have never subscribed to the beta programme but can see the discrepancy between the V4 URLs and operation, but schemaVersion seems to be V3. Is there something I'm missing? |
|
@froggleston Maybe delete |
|
Hey @lapwat - I removed the tree.cache and rmapi.config, and ran the same command:
I re-logged in successfully, there's a load of activity getting the files and metadata, and then same error occurs. |
|
Ok I can reproduce your error.
but |
|
Oh boy - that's my bad. I can confirm that using the correct ls command and a put operation with the RMAPI_FORCE_SCHEMA_VERSION=4 setting worked. Sorry for the noise! |
|
#56 seems to be a more complete fix. |
After some user reports of 400s on PUTs, it looks like the rM cloud is no longer allowing any v3 root.docSchema files.
This PR changes the default from v3 to v4 when SchemaVersion is unset in the cache. It retains the env
RMAPI_FORCE_SCHEMA_VERSIONto override if needed for old rmfakecloud versions, etc.The only case this doesn't cover is if the cloud provides a v3 root, which I haven't caught it doing yet.