-
Notifications
You must be signed in to change notification settings - Fork 0
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
Make Binary
behaviour extensible which might also be used for mysql adapter
#105
Conversation
c47065f
to
d274f90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's discuss this PR tomorrow, please.
d274f90
to
d1203e3
Compare
d1203e3
to
3a15c14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update PR title and description as this change actually allows for subclassing the behavior.
Binary
behaviour extensible which might also be used for mysql adapter.
Binary
behaviour extensible which might also be used for mysql adapter.Binary
behaviour extensible which might also be used for mysql adapter
We discussed offline with @nilmerg and agreed not to consider all characters that are not prefixed with |
This is bytea hex format.
No. Didn't even notice that this is already the case in the certificate monitoring module. If you really want to show that this is a hex string, prefix it with
Please elaborate. Using hex strings worked perfectly before with the recent fixes I made in this PR. Of course only without the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bytea is a PostgreSQL type, which uses We need a prefix. Be it |
Yes, the unit tests did run successfully, but in which use cases would |
My point was that Nothing must stop me from inserting hex values like |
Let's discuss this in person. Should prevent any further misunderstandings....... |
64ec539
to
bb361e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't test, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for the records, do we use a prefix now or not? I have no problem not using a prefix. In the rare case that actual hex values are stored in the database and filters are composed manually, the user has to hex hex 😆. But this is fine for me.
@yhabteab Don't forget to adjust X.509 to not add the \x
prefix for value suggestions in the search bar.
Only for |
d79c091
to
1a26879
Compare
This now makes it possible to extend the
Binary
behaviour and to additionally apply other behaviours to the mysql adapter as well, such as theIP
behaviour of thex509
module.fixes Icinga/icingaweb2-module-x509#172