#49883 lib389 CLI - the instance name should not accept non-ASCII characters
Closed: wontfix 3 years ago by spichugi. Opened 5 years ago by spichugi.

Issue Description

Currently, you can create an instance using non-ASCII characters. The instance will be created but systemd won't start it.
We have a validation for r'^[#%:\w@_-]+$') only. We should expand it.

Package Version and Platform

389-ds-base-1.4.0.13 built from master (b14c836) on Fedora 28

Steps to reproduce

  1. Install an instance with 'dscreate' and specify any non-ASCII name - 'мойсервер'

Actual results

The instance will be created but it won't start

Aug 03 08:09:08 host-172-16-36-32 systemd[1]: Reloading.
Aug 03 08:09:13 host-172-16-36-32 systemd[1]: dirsrv@\xd0\xb9\xd1\x86\xd1\x83\xd0\xb9\xd1\x86\xd1\x83.service: Failed to load environment files: No such file or directory
Aug 03 08:09:13 host-172-16-36-32 systemd[1]: dirsrv@\xd0\xb9\xd1\x86\xd1\x83\xd0\xb9\xd1\x86\xd1\x83.service: Failed to run 'start-pre' task: No such file or directory
Aug 03 08:09:13 host-172-16-36-32 systemd[1]: dirsrv@\xd0\xb9\xd1\x86\xd1\x83\xd0\xb9\xd1\x86\xd1\x83.service: Failed with result 'resources'.
Aug 03 08:09:13 host-172-16-36-32 systemd[1]: Failed to start 389 Directory Server \xd0\xb9\xd1\x86\xd1\x83\xd0\xb9\xd1\x86\xd1\x83..

Expected results

The proper error should be reported during the installation and the instance should not be created


Metadata Update from @spichugi:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Custom field type adjusted to None
- Custom field version adjusted to None
- Issue tagged with: lib389

5 years ago

Metadata Update from @mreynolds:
- Issue set to the milestone: 1.4.0

5 years ago

Metadata Update from @mreynolds:
- Issue priority set to: normal
- Issue set to the milestone: 1.4.3 (was: 1.4.0)

4 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2942

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata