[ 
https://issues.apache.org/jira/browse/SCB-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16522191#comment-16522191
 ] 

ASF GitHub Bot commented on SCB-695:
------------------------------------

little-cui closed pull request #379: SCB-695 Fix lengthy value error in 
testSchema
URL: https://github.com/apache/incubator-servicecomb-service-center/pull/379
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/frontend/app/scripts/modules/serviceCenter/controllers/schemaCtrl.js 
b/frontend/app/scripts/modules/serviceCenter/controllers/schemaCtrl.js
index 746b96be..ac0ebfc6 100644
--- a/frontend/app/scripts/modules/serviceCenter/controllers/schemaCtrl.js
+++ b/frontend/app/scripts/modules/serviceCenter/controllers/schemaCtrl.js
@@ -146,6 +146,7 @@ angular.module('serviceCenter.sc')
                 httpService.apiRequest(url, method, null, headers, 
"nopopup").then(function(response) {
                     if (response && response.data && response.data.schema) {
                         $scope.template = response.data.schema;
+                        $scope.template =  $scope.template.replace(/\\/g, "");
                         $scope.json = YAML.parse($scope.template);
                         const ui = SwaggerUIBundle({
                             spec: $scope.json,
@@ -269,6 +270,7 @@ angular.module('serviceCenter.sc')
                                         var ip = highway[1].substring(2, 
highway[1].length) + ":" + highway[2].substring(0, 4);
                                     }
                                     var schema = response.data.schema;
+                                    schema = schema.replace(/\\/g, "");
                                     var json = YAML.parse(schema);
                                     json.basePath = "/testSchema" + 
json.basePath;
                                     json.instanceIP = ip;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> When the any value in the swagger is long then testSchema/Download fails
> ------------------------------------------------------------------------
>
>                 Key: SCB-695
>                 URL: https://issues.apache.org/jira/browse/SCB-695
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Service-Center
>    Affects Versions: service-center-1.0.0-m2
>            Reporter: Mohammad Asif Siddiqui
>            Assignee: Mohammad Asif Siddiqui
>            Priority: Minor
>             Fix For: service-center-1.0.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to