Hi all,

I'm a bit surprised by the restrictions on the NodeIDs:

    # check NodeID, if does not match is impossible to continue
if ( $Self->{NodeID} !~ m{ \A \d+ \z }xms && $Self->{NodeID} > 0 && $Self->{NodeID} < 1000 ) {
        $Kernel::OM->Get('Kernel::System::Log')->Log(
            Priority => 'error',
            Message  => "NodeID '$Self->{NodeID}' is invalid!",
        );
        return;
    }

I'd love to use the hostname as the default NodeID, because then it would automatically work both in single node and cluster setups, and there would be no hassle allocating unique, integer node IDs, but the current restrictions disallow that.

What's the motivation for restricting the NodeIDs thusly? If security is a concern (and I see it is used as a cache key), maybe using md5hex($NodeID) would be a good solution?

Cheers,
Moritz

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to