@@ -167,7 +167,7 @@ func (n *RevisionUInt64) MarshalVPack() (velocypack.Slice, error) {
167
167
// GetRevisionTree retrieves the Revision tree (Merkel tree) associated with the collection.
168
168
func (c * client ) GetRevisionTree (ctx context.Context , db Database , batchId , collection string ) (RevisionTree , error ) {
169
169
170
- req , err := c .conn .NewRequest ("GET" , path .Join ("_db" , db .Name (), "_api/replication/revisions/tree" ))
170
+ req , err := c .conn .NewRequest ("GET" , path .Join ("_db" , pathEscape ( db .Name () ), "_api/replication/revisions/tree" ))
171
171
if err != nil {
172
172
return RevisionTree {}, WithStack (err )
173
173
}
@@ -196,7 +196,7 @@ func (c *client) GetRevisionTree(ctx context.Context, db Database, batchId, coll
196
196
func (c * client ) GetRevisionsByRanges (ctx context.Context , db Database , batchId , collection string ,
197
197
minMaxRevision []RevisionMinMax , resume RevisionUInt64 ) (RevisionRanges , error ) {
198
198
199
- req , err := c .conn .NewRequest ("PUT" , path .Join ("_db" , db .Name (), "_api/replication/revisions/ranges" ))
199
+ req , err := c .conn .NewRequest ("PUT" , path .Join ("_db" , pathEscape ( db .Name () ), "_api/replication/revisions/ranges" ))
200
200
if err != nil {
201
201
return RevisionRanges {}, WithStack (err )
202
202
}
@@ -233,7 +233,7 @@ func (c *client) GetRevisionsByRanges(ctx context.Context, db Database, batchId,
233
233
func (c * client ) GetRevisionDocuments (ctx context.Context , db Database , batchId , collection string ,
234
234
revisions Revisions ) ([]map [string ]interface {}, error ) {
235
235
236
- req , err := c .conn .NewRequest ("PUT" , path .Join ("_db" , db .Name (), "_api/replication/revisions/documents" ))
236
+ req , err := c .conn .NewRequest ("PUT" , path .Join ("_db" , pathEscape ( db .Name () ), "_api/replication/revisions/documents" ))
237
237
if err != nil {
238
238
return nil , WithStack (err )
239
239
}
0 commit comments