fixing(gateway)

This commit is contained in:
2025-08-14 00:35:51 +02:00
parent b67d75543e
commit d0232c23a0
11 changed files with 50 additions and 26 deletions
@@ -79,7 +79,7 @@ class JwtService(
permissionStrings?.mapNotNull {
try {
BerechtigungE.valueOf(it)
} catch (e: Exception) {
} catch (_: Exception) {
null
}
} ?: emptyList()
@@ -8,7 +8,6 @@ import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.KotlinModule
import org.slf4j.LoggerFactory
import java.util.UUID
import java.util.concurrent.ConcurrentHashMap
/**
@@ -1,10 +1,11 @@
package at.mocode.infrastructure.eventstore.redis
import at.mocode.core.domain.event.BaseDomainEvent
import at.mocode.core.domain.model.*
import at.mocode.core.domain.model.AggregateId
import at.mocode.core.domain.model.EventType
import at.mocode.core.domain.model.EventVersion
import at.mocode.infrastructure.eventstore.api.ConcurrencyException
import at.mocode.infrastructure.eventstore.api.EventSerializer
import com.benasher44.uuid.Uuid
import com.benasher44.uuid.uuid4
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
@@ -2,10 +2,11 @@ package at.mocode.infrastructure.eventstore.redis
import at.mocode.core.domain.event.BaseDomainEvent
import at.mocode.core.domain.event.DomainEvent
import at.mocode.core.domain.model.*
import at.mocode.core.domain.model.AggregateId
import at.mocode.core.domain.model.EventType
import at.mocode.core.domain.model.EventVersion
import at.mocode.infrastructure.eventstore.api.EventSerializer
import at.mocode.infrastructure.eventstore.api.EventStore
import com.benasher44.uuid.Uuid
import com.benasher44.uuid.uuid4
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
@@ -57,7 +57,7 @@ class GatewaySecurityTests {
@BeforeEach
fun setUpClient() {
// Ensure absolute base URL with scheme to satisfy CORS processor
// Ensure absolute base URL with a scheme to satisfy the CORS processor
webTestClient = webTestClient.mutate()
.baseUrl("http://localhost:$port")
.build()