oscerd commented on a change in pull request #5529:
URL: https://github.com/apache/camel/pull/5529#discussion_r628267895
##########
File path:
components/camel-openstack/src/main/java/org/apache/camel/component/openstack/swift/producer/ObjectProducer.java
##########
@@ -93,7 +94,17 @@ private void doGetAll(Exchange exchange) {
final String name = msg.getHeader(SwiftConstants.CONTAINER_NAME,
msg.getHeader(OpenstackConstants.NAME, String.class),
String.class);
StringHelper.notEmpty(name, "Container name");
- final List<? extends SwiftObject> out =
os.objectStorage().objects().list(name);
+ final String path = msg.getHeader(SwiftConstants.PATH, String.class);
+
+ List<? extends SwiftObject> out;
+ if (path != null) {
Review comment:
Here you could use ObjectHelper and check for emptiness
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]