Croway opened a new pull request, #214:
URL: https://github.com/apache/camel-spring-boot-examples/pull/214

   ## Summary
   - `camel-hashicorp-vault` resolves `{{hashicorp:secret:<path>#<key>}}` using 
`#` to separate the secret path from the field key, not `/`. The datasource 
bean (`cars-datasource.yaml`) used `/`, so the placeholders never resolved and 
the app failed to start against a real Vault.
   - Aligned the README's instructed secret name (`myDatabase`) with the path 
actually used in code (`database`), and flagged the now-stale screenshot.
   - `GET /api/cars` 500'd with `NoTypeConversionAvailableException` converting 
the JDBC SELECT's `ArrayList` result to `InputStream` for the `text/plain` REST 
response. Now marshals the result to JSON (`camel-jackson-starter` added) and 
serves it as `application/json`.
   
   ## Test plan
   - [x] `mvn -pl vault -am compile`
   - [x] Ran real `hashicorp/vault:1.16.1` and `postgres` containers, created 
the `database` secret via the Vault API, started the app with `mvn 
spring-boot:run`
   - [x] `GET /api/cars` → `200 []`
   - [x] `POST /api/cars` with a car payload → `200`
   - [x] `GET /api/cars` → `200 
[{"brand":"Ford","model":"Mustang","year":2024}]`
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01HseDjsECuZhsCXxxioiD1k


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to