Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed process title on creating symbolic link in the home directory of a user #6178

Open
henning-gerhardt opened this issue Aug 9, 2024 · 3 comments
Labels

Comments

@henning-gerhardt
Copy link
Collaborator

henning-gerhardt commented Aug 9, 2024

Describe the bug
On calling the used script_createSymLink script the second parameter contains the name of the to be used link. In former times this was the process title but now it is a transformed process.

Some examples:

process title generated link name
DasNeRu_47771594X-19270110 DasNeRu_47771594X_19270110__[process_id]
denuor._32521638X denuor__32521638X__[process_id]

I ommitted the real process ids here as they are not part of the issue.

Its look to me that everything in the processtitle which is not a character sign, number or _ get replaced by _. This is may be useful for . character but even for - character? Is there a list which characters got replaced and which not?

Is this a indented behaviour or or can this be adjusted by an other configuration option or just a bug?

Expected behavior
The process title should be taken as a link name or at least should be unmodified used on the script call to it can be changed inside the script if different characters are causing problems

Release
3.6.0

@henning-gerhardt
Copy link
Collaborator Author

This behaviour is still existing in release 3.7.0.

@BartChris
Copy link
Collaborator

It seems like we are explicitely replacing everything which is not a a number or a letter by underscore ("_")

if (propertyValue.isEmpty()) {
return Helper.getNormalizedTitle(process.getTitle()).replaceAll("[^A-Za-z0-9]", "_") + "__[" + process.getId() + "]";
} else {
return Helper.getNormalizedTitle(propertyValue.replaceAll("[^A-Za-z0-9]", "_") + "_" + process.getId());
}

@henning-gerhardt
Copy link
Collaborator Author

Thank you @BartChris for pointing me in the right direction. Hard coded replacements in depending on a process property value which results different link names. I don't know why this was introduced but this is a good explanation for the current behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants