Comments (2)
Can you please provide a sample app?
from micronaut-core.
This is the method that trigger the exception:
@Slf4j
@Validated
@Controller("/api/v1/executions")
public class ExecutionController {
@Delete(uri = "/by-ids")
@ExecuteOn(TaskExecutors.IO)
@Operation(tags = {"Executions"}, summary = "Delete a list of executions")
@ApiResponse(responseCode = "200", description = "On success", content = {@Content(schema = @Schema(implementation = BulkResponse.class))})
@ApiResponse(responseCode = "422", description = "Deleted with errors", content = {@Content(schema = @Schema(implementation = BulkErrorResponse.class))})
public MutableHttpResponse<?> deleteByIds(
@Parameter(description = "The execution id") @Body List<String> executionsId,
@Parameter(description = "Specificies whether to delete non-terminated executions") @Nullable @QueryValue(defaultValue = "false") boolean includeNonTerminated
) {
List<Execution> executions = new ArrayList<>();
Set<ManualConstraintViolation<String>> invalids = new HashSet<>();
for (String executionId : executionsId) {
Optional<Execution> execution = executionRepository.findById(tenantService.resolveTenant(), executionId);
if (execution.isPresent() && (execution.get().getState().isTerminated() || includeNonTerminated)) {
executions.add(execution.get());
} else {
invalids.add(ManualConstraintViolation.of(
"execution not found",
executionId,
String.class,
"execution",
executionId
));
}
}
if (!invalids.isEmpty()) {
return HttpResponse.badRequest()
.body(BulkErrorResponse
.builder()
.message("invalid bulk delete")
.invalids(invalids)
.build()
);
}
executions
.forEach(execution -> executionRepository.delete(execution));
return HttpResponse.ok(BulkResponse.builder().count(executions.size()).build());
}
}
Sorry, I didn't have the time to create a reproducer project but the issue is trigger by the compilation of this method in this class.
from micronaut-core.
Related Issues (20)
- Inability to inject `Collection<Provider<MyInterface>>`
- Endpoint with int pathvariable returns 403 even if security is not enabled HOT 1
- Bean mappers - Updating existing bean instances
- Mybatis integration with mybatis HOT 1
- Annotations on beans not propagated to their intercepted classes
- docs: remove GORM
- Need add more information for introspected FieldElement HOT 4
- Unexpected behaviours with cron expression HOT 2
- Declarative HTTP client methods with primitive return types fail after upgrading to Micronaut 4 HOT 2
- Documentation should syntax highlight JavaScript
- After update MN version to 4.3.8 it can't be compiled in Intellij, but compiles with maven HOT 1
- After upgrade to 4.3.7 route match is randomly null in the SecurityFilter HOT 11
- Unable to retrive a JSON request body as Byte[] or String in Graalvm build HOT 1
- No bean of type exists when importing beans from external libs HOT 3
- support json-schema media type
- Groovy VisitorContext does not support reading annotation processor options
- Object Storage doesn't work with environment variables HOT 1
- Endpoint Logger is not allowing to change default log level HOT 2
- Document how to workaround Project Reactor blocking operations throwing an exception when they are done on an event loop thread HOT 1
- Micronaut Controller not working with lombok HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micronaut-core.