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 <[email protected]>
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) {

Reply via email to