@@ -3619,7 +3619,7 @@ def __init__(self, collection):
36193619 self .service = collection .service
36203620 self .collection = collection
36213621 self .owner , self .app , self .sharing = collection ._proper_namespace ()
3622- self .path = 'storage/collections/data/' + UrlEncoded (self .collection .name ) + '/'
3622+ self .path = 'storage/collections/data/' + UrlEncoded (self .collection .name , encode_slash = True ) + '/'
36233623
36243624 def _get (self , url , ** kwargs ):
36253625 return self .service .get (self .path + url , owner = self .owner , app = self .app , sharing = self .sharing , ** kwargs )
@@ -3657,7 +3657,7 @@ def query_by_id(self, id):
36573657 :return: Document with id
36583658 :rtype: ``dict``
36593659 """
3660- return json .loads (self ._get (UrlEncoded (str (id ))).body .read ().decode ('utf-8' ))
3660+ return json .loads (self ._get (UrlEncoded (str (id ), encode_slash = True )).body .read ().decode ('utf-8' ))
36613661
36623662 def insert (self , data ):
36633663 """
@@ -3693,7 +3693,7 @@ def delete_by_id(self, id):
36933693
36943694 :return: Result of DELETE request
36953695 """
3696- return self ._delete (UrlEncoded (str (id )))
3696+ return self ._delete (UrlEncoded (str (id ), encode_slash = True ))
36973697
36983698 def update (self , id , data ):
36993699 """
@@ -3709,7 +3709,7 @@ def update(self, id, data):
37093709 """
37103710 if isinstance (data , dict ):
37113711 data = json .dumps (data )
3712- return json .loads (self ._post (UrlEncoded (str (id )), headers = KVStoreCollectionData .JSON_HEADER , body = data ).body .read ().decode ('utf-8' ))
3712+ return json .loads (self ._post (UrlEncoded (str (id ), encode_slash = True ), headers = KVStoreCollectionData .JSON_HEADER , body = data ).body .read ().decode ('utf-8' ))
37133713
37143714 def batch_find (self , * dbqueries ):
37153715 """
0 commit comments