The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4432

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Closes #4431.

Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From 9af61b207f3ec4ab8ec66e32a471eaa605bea7a4 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@ubuntu.com>
Date: Mon, 9 Apr 2018 18:43:52 +0200
Subject: [PATCH] containers: fix snapshot deletion

Closes #4431.

Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
---
 lxd/container_snapshot.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lxd/container_snapshot.go b/lxd/container_snapshot.go
index bed3233a52..fc39d03b82 100644
--- a/lxd/container_snapshot.go
+++ b/lxd/container_snapshot.go
@@ -6,6 +6,7 @@ import (
        "fmt"
        "io/ioutil"
        "net/http"
+       "net/url"
        "strings"
 
        "github.com/gorilla/mux"
@@ -161,6 +162,10 @@ func snapshotHandler(d *Daemon, r *http.Request) Response {
                return response
        }
 
+       snapshotName, err = url.QueryUnescape(snapshotName)
+       if err != nil {
+               return SmartError(err)
+       }
        sc, err := containerLoadByName(
                d.State(),
                containerName+
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to