jbonofre opened a new pull request, #2515:
URL: https://github.com/apache/karaf/pull/2515

   Empty or whitespace-only `<repository>` elements in feature XML descriptors 
cause a `RuntimeException` from pax-url-mvn (`NullArgumentException: Repository 
spec is empty string`) during boot feature installation.
   
   The `Features.trim()` method only trimmed whitespace but kept empty strings 
in the list. Similarly, `RepositoryImpl.getRepositories()` and 
`getResourceRepositories()` passed blank entries straight to `URI.create()`, 
which then failed downstream in pax-url-mvn.
   
   Changes:
   - `Features.trim()` now removes entries that are empty after trimming
   - `RepositoryImpl.getRepositories()` and `getResourceRepositories()` filter 
out empty strings before URI creation
   - Added test with a feature descriptor containing empty/whitespace-only 
repository entries


-- 
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