Restore bug on Synology if path has spaces

Looked into it - as expected it was an deescaping-like problem with nginx-proxying and can be fixed as follows (at least it “works for me :tm:”):

  1. sudo vi /etc/nginx/conf.d/dsm.duplicati.conf
  2. change as follows (only last 2 rows) and save the file (ESC:wq):

Original

location ~ ^/webman/3rdparty/Duplicati/((.*)\.cgi|api/(.*))$ {
    proxy_set_header X-Server-IP $server_addr;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Real-HTTPS $https;
    proxy_set_header X-Server-Port $server_port;
    proxy_set_header X-Real-Port $remote_port;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Host $http_host;

    proxy_http_version 1.1;
    proxy_pass http://127.0.0.1:8200/$1$is_args$args;
}

Corrected

location ~ ^/webman/3rdparty/Duplicati/((.*)\.cgi|api/(.*))$ {
    proxy_set_header X-Server-IP $server_addr;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Real-HTTPS $https;
    proxy_set_header X-Server-Port $server_port;
    proxy_set_header X-Real-Port $remote_port;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Host $http_host;
    
    proxy_http_version 1.1;        
    set $query $1;
    proxy_pass http://127.0.0.1:8200/$query$is_args$args;
}
  1. sudo nginx -s reload

Problem solved :grin:

Additional info:

1 Like