saveourtool / save-cloud

Cluster-based cloud mechanism for running SAVE framework
https://cosv.gitlink.org.cn
MIT License
38 stars 3 forks source link

If owner and project values are separated by spaces Save can create duplicated projects #387

Open orchestr7 opened 2 years ago

orchestr7 commented 2 years ago
20:40:16.649 [reactor-http-nio-1] ERROR o.s.b.a.w.r.e.AbstractErrorWebExceptionHandler - [7222bc73-1]  500 Server Error for HTTP GET "/getProject?name=a%20a%20a&owner=a%20a%20a"
org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2
        at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:385)
        Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
orchestr7 commented 2 years ago

Problem is not related to spaces, it should be the same to #389