Skip to content
Advertisement

Tag: java

Groovy createCriteria issue with joined table

I have a domain class Coach which has a has many relationship to another domain class CoachProperty. Hibernate/Grails is creating a third joined table in the database. In the example below I am trying to fetch the coaches which both have foo AND bar for their text value. I have tried different solutions with ‘or’ and ‘and’ in Grails which

How do i sort a Multi in smallrye mutiny

Other reactive libraries like project reactor offer sort methods for Publishers but there is no such method in mutiny. Their documentation doesn’t even talk about it. https://smallrye.io/smallrye-mutiny Right now i’m achieving the said functionality by doing this Is there a better way to do the same ? Answer I don’t believe there is a built-in/better way to do this. Mutiny

Firebase authentication works only on debug version

I have an app on google play: https://play.google.com/store/apps/details?id=com.conta.ftof and I have a big problem. I can’t get firebase authentication with phone number to work on the signed version. in fact, it works only with the debug version (when in the release version I insert the number and click the send button, the toast is returned: unknown error) … Precisely for

Spring Security returns 403 instead of 401 and creates invalid Redis session cookie

I’m using Spring Security and Spring Data Redis to keep track of user sessions with custom roles and entitlements. When I try to hit a PreAuthorized endpoint without a session cookie in my browser, it should return a 401. Instead a new (invalid) session cookie is created and the endpoint returns a 403. Here’s my SecurityConfig: I’m also using MethodSecurityConfig

Glassfish 5.1 missing modules from previous versions

We have an application running on Glassfish 5.0.1 and before that 4.1.1 versions. Recently server is updated to Glassfish 5.1.0 and our application can not be compiled due to the missing of javax.inject.Inject. This relevant jar was in the previous Glassfish versions (in the module folder). So I’d like to hear that in glassfish 5.1 should we add this jar

Advertisement