projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document issue with OSGi base URIs
[lgpl/argeo-commons.git]
/
org.argeo.cms
/
src
/
org
/
argeo
/
cms
/
internal
/
runtime
/
KernelUtils.java
diff --git
a/org.argeo.cms/src/org/argeo/cms/internal/runtime/KernelUtils.java
b/org.argeo.cms/src/org/argeo/cms/internal/runtime/KernelUtils.java
index 943c06f4ec44a6914e73a41e0530c7e61aed5381..b35b4be09311b8392531f1fe2e6ae306bc88adf9 100644
(file)
--- a/
org.argeo.cms/src/org/argeo/cms/internal/runtime/KernelUtils.java
+++ b/
org.argeo.cms/src/org/argeo/cms/internal/runtime/KernelUtils.java
@@
-138,6
+138,7
@@
class KernelUtils implements KernelConstants {
if (uri == null)
throw new IllegalArgumentException("URI cannot be null");
try {
if (uri == null)
throw new IllegalArgumentException("URI cannot be null");
try {
+ // FIXME does not work if URI contains illegal characters (such as spaces, etc.)
return new URI(uri);
} catch (URISyntaxException e) {
throw new IllegalArgumentException("Badly formatted URI " + uri, e);
return new URI(uri);
} catch (URISyntaxException e) {
throw new IllegalArgumentException("Badly formatted URI " + uri, e);