profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/witi83/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Witold Czaplewski witi83 MobiLab Solutions Germany http://50226.de

witi83/akka-jwt 3

JWT related directives for akka-http

witi83/akka-http-skeleton 1

Simple akka http application

witi83/Blog 1

Code created for my blog http://50226.de/

witi83/FB 1

FRITZ!Box JS-Controller

witi83/akka-http 0

The Streaming-first HTTP server/module of Akka

witi83/akka-http-json 0

Supplementary JSON support for Akka HTTP

witi83/auto-copy 0

A small Java application which monitors a directory and moves new detected files to another destination.

witi83/csv-to-xml 0

CSV to XML converter in Java 8 and JavaFX

issue commentAzure/azure-sdk-for-java

[BUG][Spring Data Cosmos] PartitionKey of type UUID broken since 3.7.0

@kushagraThapar Thanks for the explanation. It makes sense to me!

witi83

comment created time in 6 days

issue commentAzure/azure-sdk-for-java

[BUG][Spring Data Cosmos] PartitionKey of type UUID broken since 3.7.0

@chenrujun any news?

witi83

comment created time in 17 days

issue openedAzure/azure-sdk-for-java

[BUG][Spring Data Cosmos] PartitionKey of type UUID broken since 3.7.0

Describe the bug This change broke the support for queries with PartitionKey of type UUID.

Exception or Stack Trace

java.lang.IllegalArgumentException: Unable to construct PartitionKeyInternal from objects array

        at com.azure.cosmos.implementation.routing.PartitionKeyInternal.fromObjectArray(PartitionKeyInternal.java:137)

        at com.azure.cosmos.implementation.routing.PartitionKeyInternal.fromObjectArray(PartitionKeyInternal.java:100)

        at com.azure.cosmos.models.PartitionKey.<init>(PartitionKey.java:31)

        at com.azure.spring.data.cosmos.core.CosmosTemplate.lambda$findItemsAsFlux$28(CosmosTemplate.java:860)

To Reproduce


class User(
    val id: String,
    @PartitionKey val partitionKey: UUID
)

@Repository
interface UserRepository : CosmosRepository<User, String> {
    fun findByPartitionKey(partitionKey: UUID): Optional<User>
}

When you try to query it using repository.findByPartitionKey(UUID.randomUUID()) you get the above mentioned exception.

Additional information Please note that IDs of type UUID are still not supported by azure-spring-data, which is really sad given the fact that UUIDs are handled as simple Strings in CosmosDB

created time in a month