pcs icon indicating copy to clipboard operation
pcs copied to clipboard

fix bug 1899519

Open mengfansheng-git opened this issue 3 years ago • 4 comments
trafficstars

fix bug 1899519

mengfansheng-git avatar Apr 25 '22 01:04 mengfansheng-git

Can one of the admins verify this patch?

knet-ci-bot avatar Apr 25 '22 01:04 knet-ci-bot

Thank you very much for the pull request. However, we decided not to accept it in its current form.

The proposed change makes pcs silently drop characters from user input, which leads to saving a different value to CIB than the requested one, all of that without notifying users in any way. Such behavior is very confusing and is considered to be a bug.

The proper way would be to print an error that an entered value is not valid. Even that may no longer be necessary, though, as bug 1899519 seems to only be reproducible with Python 2, which is no longer supported by pcs.

tomjelinek avatar Apr 25 '22 09:04 tomjelinek

Could you provide a reproducer using pcs? We're still investigating if this is a pcs issue, and your screenshot of a traceback doesn't seem to be related.

Your new commit reports an error, that's an improvement in the right direction. But it disallows storing all characters with ord < 128 to meta attribute values. However, the original issue in bug 1899519 states that it is required to store such characters.

tomjelinek avatar Apr 28 '22 10:04 tomjelinek

Can add an exception catch, not to the user input the node name is not standardized without prompting directly report an error

mengfansheng-git avatar Apr 29 '22 01:04 mengfansheng-git