[MXS-4881] Startup option --basedir mishandled Created: 2023-11-28  Updated: 2023-12-08  Resolved: 2023-11-30

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 22.08.10, 23.02.6, 23.08.3
Fix Version/s: 22.08.11, 23.02.7, 23.08.4

Type: Bug Priority: Major
Reporter: Claudio Nanni Assignee: Esa Korhonen
Resolution: Fixed Votes: 0
Labels: None


 Description   

/mycustom/maxscale/bin/maxscale -d --basedir=/mycustom/maxscale

No longer works since version 23.02.6

failed to read the directory /mycustom/maxscale/mycustom/maxscale"

It looks like it chains the basedir twice



 Comments   
Comment by Claudio Nanni [ 2023-11-28 ]

A test passing ./ for basedir (after switching to it):

# bin/maxscale --user=someuser --basedir=./ --logdir=/var/log/maxscale/ -d &
[1] 123456
# 2023-11-28 16:02:57   notice : MaxScale will be run in the terminal process.
2023-11-28 16:02:57   alert  : Failed to read the directory '/mycustom/maxscale-23.08.3.rhel.8/./mycustom/maxscale-23.08.3.rhel.8/./': No such file or directory

Generated at Thu Feb 08 04:31:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.