uri: fix resolve with only port specification
Supplemented the implementation of the `src/lib/uri` parser. Before this fix a call `uri.parse(uri.format(uri.parse(3301)))` returned an error of 'Incorrect URI'. Now this call return correct `service: '3301'`. As a result, the possibility of using host=localhost by default for `tarantoolctl connect` has been restored now. As well as for `console.connect`. Fixes #7479 NO_DOC=bugfix (cherry picked from commit 96d8dcec)
Showing
- changelogs/unreleased/igrishnov/gh-7479-bug-fix-uri-lib.md 4 additions, 0 deletionschangelogs/unreleased/igrishnov/gh-7479-bug-fix-uri-lib.md
- src/box/lua/net_box.lua 2 additions, 2 deletionssrc/box/lua/net_box.lua
- src/lib/uri/uri.c 13 additions, 9 deletionssrc/lib/uri/uri.c
- test/app-luatest/gh_7479_bug_fix_uri_lib_test.lua 66 additions, 0 deletionstest/app-luatest/gh_7479_bug_fix_uri_lib_test.lua
- test/app-tap/uri.test.lua 6 additions, 1 deletiontest/app-tap/uri.test.lua
Loading
Please register or sign in to comment