Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1155

Hard-coded /syncope-enduser HTTP subcontext

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.5, 2.1.0
    • Component/s: enduser
    • Labels:
      None

      Description

      Several files in the Enduser JS sources contain references like as follows:

                  any.getAuxClasses = function () {
                    return  $http.get("/syncope-enduser/api/auxClasses")
                            .then(function (response) {
                              return response.data;
                            }, function (response) {
                              console.error("Something went wrong during auxiliaryClasses retrieval, exit with status: ",
                                      response);
                              return $q.reject(response.data || response.statusText);
                            });
                  };
      

      e.g. static references to /syncope-enduser.

      This would cause troubles when there is need to deploy the WAR file with a different name, or behind a reverse proxy.

        Attachments

          Activity

            People

            • Assignee:
              skylark17 Matteo Alessandroni
              Reporter:
              ilgrosso Francesco Chicchiriccò
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: