SLING-4405 - Unable to install new bundle using the jar upload mechanism

Make sure the bundles uploaded as jar files have a location set.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1660537 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/tooling/support/install/impl/InstallServlet.java b/src/main/java/org/apache/sling/tooling/support/install/impl/InstallServlet.java
index 9eea9e5..8eee97d 100644
--- a/src/main/java/org/apache/sling/tooling/support/install/impl/InstallServlet.java
+++ b/src/main/java/org/apache/sling/tooling/support/install/impl/InstallServlet.java
@@ -136,17 +136,20 @@
                 }
 
                 final String symbolicName = manifest.getMainAttributes().getValue(Constants.BUNDLE_SYMBOLICNAME);
+
                 if (symbolicName == null) {
                     logAndWriteError("Manifest does not have a " + Constants.BUNDLE_SYMBOLICNAME, resp);
                     return;
                 }
 
+                final String version = manifest.getMainAttributes().getValue(Constants.BUNDLE_VERSION);
+
                 // the JarInputStream is used only for validation, we need a fresh input stream for updating
                 rawInput = item.getInputStream();
 
                 Bundle found = getBundle(symbolicName);
                 try {
-                    installOrUpdateBundle(found, rawInput, null);
+                    installOrUpdateBundle(found, rawInput, "inputstream:" + symbolicName + "-" + version + ".jar");
 
                     result = new InstallationResult(true, null);
                     resp.setStatus(200);