Merge pull request #7629 from DDDHuang/backup_file_43
fix: backup data filename, uri decode
This commit is contained in:
commit
ffdf7fb7b6
|
@ -45,6 +45,7 @@ File format:
|
|||
* Silence grep/sed warnings in docker-entrypoint.sh. [#7520]
|
||||
* Generate `loaded_modules` and `loaded_plugins` files with default values when no such files exists. [#7520]
|
||||
* Fix the configuration `server_name_indication` set to disable does not take effect.
|
||||
* Fix backup files are not deleted and downloaded correctly when the API path has ISO8859-1 escape characters.
|
||||
|
||||
## v4.3.13
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{application, emqx_management,
|
||||
[{description, "EMQ X Management API and CLI"},
|
||||
{vsn, "4.3.11"}, % strict semver, bump manually!
|
||||
{vsn, "4.3.12"}, % strict semver, bump manually!
|
||||
{modules, []},
|
||||
{registered, [emqx_management_sup]},
|
||||
{applications, [kernel,stdlib,minirest]},
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
%% -*- mode: erlang -*-
|
||||
{VSN,
|
||||
[ {<<"4\\.3\\.([0-9]|1[0])">>,
|
||||
[ {<<"4\\.3\\.([0-9]|1[0-1])">>,
|
||||
[ {apply,{minirest,stop_http,['http:management']}},
|
||||
{apply,{minirest,stop_http,['https:management']}},
|
||||
{restart_application, emqx_management}
|
||||
]},
|
||||
{<<".*">>, []}
|
||||
],
|
||||
[ {<<"4\\.3\\.([0-9]|1[0])">>,
|
||||
[ {<<"4\\.3\\.([0-9]|1[0-1])">>,
|
||||
[ {apply,{minirest,stop_http,['http:management']}},
|
||||
{apply,{minirest,stop_http,['https:management']}},
|
||||
{restart_application, emqx_management}
|
||||
|
|
|
@ -177,7 +177,8 @@ dump_to_tmp_file(Content) ->
|
|||
ok = file:write_file(fullname(Filename), Bin),
|
||||
Filename.
|
||||
|
||||
fullname(Name) ->
|
||||
fullname(Name0) ->
|
||||
Name = uri_string:percent_decode(Name0),
|
||||
filename:join(emqx:get_env(data_dir), Name).
|
||||
|
||||
tmp_filename() ->
|
||||
|
|
Loading…
Reference in New Issue