You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by du...@apache.org on 2021/02/09 18:41:47 UTC
[brooklyn-ui] branch encodeStreamType created (now e883ce1)
This is an automated email from the ASF dual-hosted git repository.
duncangrant pushed a change to branch encodeStreamType
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git.
at e883ce1 Encode Stream Type
This branch includes the following new commits:
new e883ce1 Encode Stream Type
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[brooklyn-ui] 01/01: Encode Stream Type
Posted by du...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
duncangrant pushed a commit to branch encodeStreamType
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit e883ce1e55229d87c95643f3658bc622fba70468
Author: Duncan Grant <du...@cloudsoft.io>
AuthorDate: Tue Feb 9 18:39:59 2021 +0000
Encode Stream Type
Stream type may be of form "Main artifact:
classpath://scripts/echos/configure.ps1" which is resovled by cxf as a
path
---
.../app-inspector/app/components/providers/activity-api.provider.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-modules/app-inspector/app/components/providers/activity-api.provider.js b/ui-modules/app-inspector/app/components/providers/activity-api.provider.js
index 82bde1f..cdb3663 100644
--- a/ui-modules/app-inspector/app/components/providers/activity-api.provider.js
+++ b/ui-modules/app-inspector/app/components/providers/activity-api.provider.js
@@ -56,7 +56,7 @@ function ActivityApi($http) {
(maxDepth ? '?maxDepth='+maxDepth : ''), {observable: true, ignoreLoadingBar: true});
}
function getActivityStream(activityId, streamType) {
- return $http.get('/v1/activities/' + activityId + '/stream/' + streamType, {observable: true, ignoreLoadingBar: true, transformResponse: (data)=> {
+ return $http.get('/v1/activities/' + activityId + '/stream/' + encodeURIComponent(streamType), {observable: true, ignoreLoadingBar: true, transformResponse: (data)=> {
try {
return angular.fromJson(data);
} catch (e) {