Closed chetanmeh closed 5 years ago
Seems like for ResourceType.Media
has no handling in PathsHelper.generatePath
. In v2.3.0 path was directly constructed from the RxDocumentServiceRequest and now it uses PathHelper which results in error thrown
@chetanmeh not fully supporting ResourceType.Media
is a bug however we are planning to deprecate attachment APIs and remove them in upcoming releases. Are you using these APIs in prod?
We support two modes
Prod usage is based on 1. However we have testcases and implementation logic for 2 also.
we are planning to deprecate attachment APIs and remove them in upcoming releases
So CosmosDB would remove support for attachment altogether or only SDK would not support it?
I suggest you go with option 1.
For now we are planning to deprecate/remove attachments support across SDKs.
Cleaning up issues. Closing as won't fix for now. Recommend using blob storage or some other external store. We won't be continuing support in newer versions of the SDK and once the old SDKs retire, it will be retired in the backend as well. Message us at AskCosmoDB@microsoft.com if that's a bigger issue.
Upon reading attachments following exception is seen
This is being seen since update to 2.4.0 release (see apache/incubator-openwhisk#4283). Currently only test which uses the
readMedia
api inReadFeedAttachmentsTest#readAndUpdateEmbededAttachments
is commented out. If the test is enabled then same error is seenEnvironment summary SDK Version: 2.4.0 Java JDK version: 1.8 OS Version (e.g. Windows, Linux, MacOSX) MacOSX