« first day (3407 days earlier)      last day (1758 days later) » 

00:00
All your files have been destroyed (sorry). Paul. (source)
00:35
@Zoe How can she "personally apologize" when she wasn't even around when it all was happening?
 
5 hours later…
Zoe
Zoe
05:49
@Michael lots of people were involved in the writing process. Could be a result of that
USM
USM
Hey Zoe
A user will type the full name say "test user 1234" in a text field. But in DB we store "firstName":"test", "lastName":"user 1234" like this. Is there any way we can do search with full name in these conditions?
Zoe
Zoe
06:02
SELECT * FROM table WHERE firstName="test" AND lastName="user 1234"? The AND is the keyword here. It does exactly what you'd expect - it returns records where both are true. No idea what database you use though, this assumes SQL
USM
USM
@Zoe Hope it was such easy
How do you which one is firstName and lastName?
I typed "test user 1234"
@Zoe I am using solr
Zoe
Zoe
06:26
@USM wdym?
Solr apparently doesn't support select * unless the query has been limited
USM
USM
@Zoe In solr we have stored the value as firstName and lastName
From request we are getting name as text filed
"my name" will work by splitting with space
how can we do for "my name s"
where "my" is firstname and lastname is "name s"
07:08
@Zoe HOLY SHIT ZÖ IS HERE!
Zoe
Zoe
@geisterfurz007 Nah, I'm a ghost :P
USM
USM
07:28
I think i can split on space and search all index with firstName or lastName?
Zoe
Zoe
can't you use SQL?
@USM I guess you can concatenate the strings in the where, no?
SELECT * FROM users WHERE (firstname + lastname) LIKE '%parameter%';
Obviously not in perfect SQL syntax but that's the idea, no?
Or let your user type firstname and lastname in different fields :)
USM
USM
07:45
@geisterfurz007 That wont happen, because that is a wild card search
@Zoe using Solr for data retrieval..
@Zoe with a Ouija board, you can communicate with the dead ;)
USM
USM
@Neil He can communicate with you. :P
who? Zoe?
> Pronouns: she/her or they/them
@USM What about the other suggestion (concatenating the strings in the SQL query)?
or the solr query for what it's worth
Neil because you are a magician: If I make a bean ApplicationScoped will it definitely be created? I was following a baeldung article on how to secure a java ee webapp and it said to create an empty class with all the security annotations on it. IntelliJ still marks it as unused and now I am unsure if it even does anything :/
@geisterfurz007 If i'm not mistaken, there's a parameter eager which says whether or not it will be necessarily created or if it will be lazily created
Zoe
Zoe
07:56
@Neil I never said I was dead! I said I was a ghost
though maybe that's only for session scoped
Zoe
Zoe
There's a difference C:
@Zoe ah, sorry, my apologies then ;)
@geisterfurz007 If there is a parameter eager, then by setting it, you guarantee it will be created.. if there isn't, then it is guaranteed to be created :P
I just don't remember which it is
!
I found a thing called FacesConfig
That at least makes IntelliJ believe it's being used now
Thanks, love you Neil, byee
Ok, still doesn't do what I hoped it does :D
It says in the logs that it does use the CustomFormRubbishMechanism but it doesn't redirect to the login page eventhough it should :D
08:25
well there's a quick way to know if it gets instantiated immediately or not
just log something in the constructor
see if something gets logged upon startup or only after you've sent a request to the server for the first time
There's also ContextListener which is meant to be for things you need to do upon startup
Application scope is more for sharing data between all sessions, like, say, for caching requests
@Zoe Did you hear? Also Madara resigned as mod and is a "ghost"
what are your thoughts?
08:42
At least the configuration applied to the class are respected which is all I care about (according to logs). But it feels like I am heavily missing something because nothing of what I did appears to work. My custom identity store is not called, there is no redirect to the login site and overall nothing really works...
I would love to get this done because I have my reasoned doubts that my coworker will take ages to get this fixed up to a point where this project, the one that I got closest to completion and production will be dropped as well leaving me with exactly nothing that I built here that is being used.
And it's my last day today ._.
having something of yours being used is somewhat overrated
it only means that in 6 months time, you won't be called up asking for help on how to fix a problem you created
motivating
@Zoe 👋
somehow I am smiling when I saw your name
08:45
Literally worked here for 3.5 years without any trace on production servers
🙂
I have this IdentityStore, this AppConfig and this bit in my LoginView that handles the Login mask. The code prints "What the fuck" on login, the IdentityStore functions are not called and there is no redirect when accessing one of the pages that require login. There has to be something huge again that I am missing but I don't know what.
I was using this example repo but I couldn't find any differences to my stuff :/
09:07
Monring
Hey Gem :)
I am so lost with all this security stuff :/
Why does there have to be so much magic going on behind the curtain that I have no clue of
Zoe
Zoe
09:23
@Neil I know, I've stayed on top of resignations and stuff
@KarelG ^^
Guten morgen
@ITmustBE Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
Guten tag
how ya doin
09:27
Wietlol, you know everything, right?
obviously
Niel was doing fine, now, not so much
ITmustBE is also fine, but he could do better
any more questions?
Yes, could you provide me today's lottery numbers?
@Wietlol in what sense?
@geisterfurz007 configuration of linking the implementation to each injection?
09:31
bless you!
What?
@ITmustBE I could, but that would make it less fun for the rest of us
@Neil now that I am here :D
@geisterfurz007 that
... is the first thing that comes to my mind
I thought the thing would do that on its own when it finds an IdentityStore implementation somewhere, no?
the thing being the application server
@Wietlol ah well, that's true
it found something... but it wasnt yours
"Just run our example" FUCK OFF BAELDUNG! I NEED 500 HOURS OF REWRITING YOUR POM.XMLS
AAAAAAAAAAAAAAAAAAAAAAAAARGH
09:46
🤨
Don't mind me, I am just going insane
that info from java ee I linked yesterday did not help it seems
It kinda did. It pushed me in the right direction but the thing I put together following a baeldung article + their example repository straightup doesn't seem to do anything.
And the article you linked was with java ee 6 and I wanted to make it in the "new" java ee 8 API to have it done properly and not brittle.
you could see if such similar page existed in the new version 😛
Zoe
Zoe
10:05
@geisterfurz007 Have you tried using a better site? :GwchadThinkEyes:
> At runtime, an authentication mechanism injects the IdentityStoreHandler and invokes on it. The IdentityStoreHandler, in turn, looks up the available IdentityStores and invokes on them to determine the aggregate result.
Well great! Then tell me why IT DOESN'T FUCKING DO THAT IN MY CASE!
@Zoe some info on baeldung's site are useful
no?
@geisterfurz007 using LDAP or db ?
for that idstore
📞 atm
Zoe
Zoe
@KarelG Some, yeah, but it's still more out of date than SO xd
LDAP, I wrote my own IdentityStore for now because I am not sure about the exact details I need to fill in for the stuff in the annotation
But none of the darn functions is being called
Welp, I changed it to teh Ldap thing but I still get null from the authenticate call. I am done
Thank you, very helpful.
10:30
xD
I am unable to figure out the purpose of LazyCsrfTokenRepository class
@KarelG clearly the name of the class needs to be longer and more descriptive
Ok... Am I missing something or should securityContext#authenticate do something with IdentityStores?
Or asked differently: How the fek does that thing authenticate the user?
1
Q: How does CRSF LazyCsrfTokenRepository work?

d-manJava 8 - spring 4.3.x While configuring spring security and enable csrf feature i came across two implementations of CsrfTokenRepository one is Lazy another is Cokkie based I know CookieCsrfTokenRepository works using writing a csrf token into cookie and accepts a cookie value in header to ver...

@KarelG hmm, so if it's just accessing the login page and you don't want to create a session yet, you can do so using LazyCsrfTokenRepository
at least that's what I gathered
10:54
Ok Neil, I gotta annoy you real quick because I am completely lost here. I created classes, added seemingly random entries to my web.xml, changed annotations here or there and this authenticate call still returns null. If you have an idea why, would love some input :)
@geisterfurz007 there are several ways to do authentication, and they leave it open-ended
you should look for authentication done without using a database (if anything, you can perform the database fetching yourself)
It should return either Success or failure though, no?
there are examples online that were priceless when I was trying to get that working
you have to implement and register a class which gets called when a user authenticates
I have a complete authentication thing set up! It's just not called eventhough I have everything in the same places like those people with the examples do
and inside your method, you basically determine whether or not that user is authenticated, and everything else is handled for you
11:00
Just with the difference that they apparently don't get a random null shot at them and none of their custom identity stores are ignored without any reason
Yes, if everything else was handled for me, that would be great! But unfortunately said class is fully ignored. Not created and methods are not called either.
what I'm saying is, create a new project.. try to replicate that example in its simplest form..
there's something you're not doing which follows that example
but maybe it's not apparent until you see, at least on a fundamental level, how authentication works
I think the web.xml has to define it
but that may not be the only thing you have to do
It has been a while, so you'll excuse me if I don't remember all the steps
I was literally reading articles yesterday afternoon, yesterday evening prior to dinner, the morning and same thing with examples and blog posts. I defined roles in my web.xml, I defined security constraints and everything. The web.xml at this point looks like the baeldung or whatever examples and nothing works.
Whatever, I don't work here anymore starting tomorrow, should they figure it out.
Yeah, no worries; sorry for my rage. I am just extremely easily pissed when I invest so much time into something, think I have a good grasp of it and still nothing works.
Especially when I can be very sure that my coworker will more likely read her book the next two weeks instead of investing her worktime to fix this properly
Whatever; lunch time. Thanks for the suggestions!
well I find whenever I think I understand something, and it still doesn't work, I sort of have to take a step back and try to recreate it in a different environment
if you can't, well it's your understanding that's lacking. If you can, you have something to compare to
though more often than not it's the first
11:23
@Neil kinda vague :D
@KarelG it's the only way I can be right ;_;
11:46
no I mean... it is just ... weird
I am trying to figure out an appropriate use case.
Anyways, I used it. So
/shrug
¯\_(ツ)_/¯
I think that is the usecase
You think you might get hundreds of users on your website but few will actually login
it's worthwhile to not create a session for every user
12:31
I was missing a four line configuration file specifically for the wildfly that I didn't see documented anywhere but one forum post
It's actually using that damn IdentityStore now!
Can you believe it? O-O
Now I just gotta figure out why this method that returns the groups is not being called and if that works, it might work!
12:47
noice!
@dustytrash start tomcat.exe starts in background. but, when done in ssh, tomcat automatically stops. I guess every bg process started in ssh mode would stop once the session is closed. need to find a better way
@Sara you ideally wouldn't want a batch or shell that just waits for the server to stop
in windows you'd use a service, and then just tell that service to start
or in linux, you'd just start the process and return to console
IT WORKS!
NEIL!
NEEEEEIL!
On a scale from one to ten I am the fucking greatest xD
God I am so happy
fucking greatest/10
well done, sir :)
13:02
It doesn't work 🤔
(╯°□°)╯︵ ┻━┻
There is plenty of exceptions and then I am silently disconnected or something
Maybe I am not 🤔
why does it work the first time then?
No I thought the secure channel from https connection is dropped after a while but I think I just brainlagged and redeployed the thing without noticing
ah ok, that went over my head
13:10
@Neil Thanks :P
And it even automagically redirects to the Login page!
the filter does that fairly effectively
@Neil lol
you just need to ensure the filter only applies to the pages themselves and not, say, images, javascript, everything else
Yeah, no I don't need that filter O-O
Zoe
Zoe
Did someone clone ColdFire while I was gone? xd
13:14
Guys I've just announced my 2 weeks notice this afternoon
I felt so bad about it
then dont announce it?
I don't fit so much as being introvert
@Neil I set the thing to only limit access to /app/. Moved all the pages into that, left the Login outside of it and everything works \(-_\)
and everybody considered me as a arrogant, toxic, uncoorperative employeee
yeah I usually create a /secure/ directory for pages only visible when user is logged in
13:16
what you creating?
Ye, the whole thing shouldn't be accessed without login so I just went with app (and because I drew inspiration from some post I read :') )
@Plain_Dude_Sleeping_Alone It can happen, man. It's not the end of the world
I'm not in the sucb technical company, rather a support company
just try to make a good first impression at your new job
13:17
I know my super fun-extrovert coworkers dislike, I can see from their eyes
part of it is basing yourself on what they say, not what you think they think
I think there are some at my workplace that want ill of me, but they've never said anything bad to me directly, so I'm giving them the benefit of the doubt
Thank you, but this doesn't mean , i don't have such mistakes also
we all make mistakes
in a very literal sense
For example, my parents made me :')
13:20
foreveralone.jpg
It's a struggle every morning just to enter my office.., known that that gossip has been spread around, digest and destroy you like fucking hyna
@geisterfurz007 lmao
do better at your new workspace
I get that. Self-doubt combined with suspecting you're being talked badly about behind your back is an evil combination
it sort of feeds itself
not a healthy way to think
impostor's syndrome is an actual syndrome, and it is very prevalent in our field
the best thing you can do for yourself is to accept that everyone makes mistakes and never put yourself in a position where you felt you could have done more
even if you mess up, you know you did what you could
impostor's syndrome <= hmm, this need more attention from my side
Yes I want to show those people from finance, business analyst , managers, sales. I'm a worthy developer, just a hope not necessarily backup by some real evidents
Bad somehow it turned bad on my side,
13:32
well again, it's not the end of the world. Again, this sort of thing happens
we programmers are not the most extroverted types there are
@Sara Take a look at this answer: https://superuser.com/questions/472811/run-remotely-in-the-background-using-ssh-then-log-out-keep-process-running
It looks like `screen` is what you want
Everybody misintepreted that as sort of 'attention/position seeker/manipulative', they don't understand we wants to do great thing through something within our domain
office politics is a thing
the sooner you learn this the better
it may not seem obvious why overshooting your boss to communicate a good idea could be contrived as a bad thing
Imagine you tell you manager in the open room, 'that's not how you do it', if misintrepeted by non developer, you will be seen as the trouble.
or why saying when an employee does something wrong could be a bad thing
@Plain_Dude_Sleeping_Alone you can say that, just with less edges
like, "I may be mistaken, but I don't believe this is the right approach."
and then have the right approach and its reasons ready to give
13:36
@Plain_Dude_Sleeping_Alone > "I want to show those people from finance, business analyst , managers, sales. I'm a worthy developer"
Please don't do this. The finance cares as much about development as you do taxes...
In case that metaphor doesn't work, they don't care about development. They don't care about anything IT.
^managers are not developers by nature, this most likely seen as attack, not matter which approach you choose to express
if they try to give IT solutions where they shouldn't, then feel free to step in and say that you don't agree. You're the expert, even if only for technical aspects
if they insist, then you have to learn how to take a back seat
don't worry what people think. Just don't call people out on things which aren't your expertise
You suggestion will be understood and as always, turn into gossip
it's only gossip if it's interesting
if you're telling someone that something can't be installed on linux machines, but only Windows machines, nobody's going to gossip about that
not even if it were the big boss, because ultimately, it's okay to contradict someone on something you're 100% sure about and is in your field
Thank you , your insight is really worthy for me, I will find those wolves, the right ones, in the meantime ahh...sort of saving for next few months
13:45
learn how to pick your battles
you can make change, just slowly and without coming across as trying to stir the pot
@geisterfurz007 are you just randomly trying something?
@KarelG No!
I am commiting the changes that I made to get it working!
It really was working for the most part if that four line config wasn't missing!
Then I just needed to split the IdentityStore in two for Authentication and Authorization and now everything works the way I expected it to work this morning already
> split x in two for Authentication and Authorization
you need to check what both means :D
I know what both means
But for some reason the same store isn't being used to check for authorization so I just made a new class out of it
no. Because you won't have to split for both ._.
13:59
I am not entirely retarded Karel :/
okay
not so confident tho 😁
14:15
Welp, I guess that's it then... Last message from my work laptop! I will try to have a look back in here every now and then when I am not at home but I cannot guarantee it! When in doubt, just ping me or invite me in here; I should get a phone notification :P
Where are you going?
sorry internet got disconnected
wb
14:34
by folks, again , thank you for your morale help in my previous talk, I really appreciate it.
@KarelG lmao
I want to have some sleep, it's night already
have a good one, man
tomorrow is another day :)
Zoe
Zoe
15:34
@geisterfurz007 How can we be sure tho?
ZOE!!!
Zoe
Zoe
WIETNAM!
was reading that as vietnam :/
vietlol
Zoe
Zoe
@KarelG Good :P
16:31
I am trying to map json object to protobuf. My json object contains some fields which come as string and should be mapped to proto message as enum. So for other then predefined enum constants in proto message, I have given a default value as UNKNOWN:0, for random strings. I am using mapstruct to map json to proto message. But when any random string comes, it is not mapped to UNKNOWN in proto message, it gives null instead and totally removes the field. Any idea where I am going wrong?s
 
4 hours later…
20:54
Sooooo... im developing a little game server using java... i wanted to use the "Prototype"-Pattern for cloning and spawning mobs... "Cloning", lets say i call .clone() on a Object... does it only "clone" ints, floats, string or also object references like a custom class "Health" ? All i now is that it does not copy arrays... how about "simple" references ?

« first day (3407 days earlier)      last day (1758 days later) »