intermine / intermine/intermine_configurator
Field error in object 'dataFile' on field 'fileFormat'
- Dominant language
- Java
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
```bash
compose | [2020-06-16 09:32:06,533] ERROR in configurator: I AM CALLED... AND NOW I AM CALLING CONFIGURATOR
configurator | 2020-06-16 09:32:07.107 WARN 1 --- [nio-8082-exec-3] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument at index 0 in method: public org.springframework.http.ResponseEntity io.swagger.api.ConfiguratorApiController.detectFileProperties(io.swagger.model.DataFile,java.util.UUID,java.util.UUID), with 1 error(s): [Field error in object 'dataFile' on field 'fileFormat': rejected value [null]; codes [NotNull.dataFile.fileFormat,NotNull.fileFormat,NotNull.io.swagger.model.DataFile$FileFormatEnum,NotNull]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [dataFile.fileFormat,fileFormat]; arguments []; default message [fileFormat]]; default message [must not be null]] ]
compose | [2020-06-16 09:32:07,326] ERROR in configurator: CONFIGURATOR_STATUS_CODE: 400
```
Is it possible that some arg isn't being passed correctly?
@ank - I know we've discussed this in the past and that you've commited code to fix this, so maybe I'm doing something wrong - but I don't know what.
@sergiocontrino it would be nice to know if you're getting the same thing.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with ConfiguratorApiController.detectFileProperties and the logged DataFile argument, then inspect how the request supplies fileFormat and where its NotNull validation is applied. Reproduce the request using the provided log details; done means the missing fileFormat cause is identified and the validation failure is resolved or clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100