Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3193

Hardcoded references to "localhost:8080"




      Description of problem:

      There are few resources in BPMS that hard code localhost:8080. When using a port offset this breaks the designer and has some other unknown affects.

      The current workaround to fix the JBPM designer is to set the 'designer.url' property to the appropriate port when using a port offset. The expectation would be detect the main web port instead of having to control it through a property.

      There is a KIE widget that hardcodes localhost:8080 while trying to load a couple javascript and a css file. This should use a relative path instead of hardcoding the full server url. I don't know what functionality this breaks (potentially prevents the ability to save data model).

      1. is backbone used, and will this load?
        ./standalone/deployments/business-central.war/org.kie.workbench.KIEWebapp/defaults/formwidgets/backboneformsinclude.fw:<script src="http://localhost:8080/designer/lib/backbone-forms-min.js" charset="utf-8"></script>
        ./standalone/deployments/business-central.war/org.kie.workbench.KIEWebapp/defaults/formwidgets/backboneformsinclude.fw:<script src="http://localhost:8080/designer/lib/backbone-forms-list-min.js" charset="utf-8"></script>
        ./standalone/deployments/business-central.war/org.kie.workbench.KIEWebapp/defaults/formwidgets/backboneformsinclude.fw:<link href="http://localhost:8080/designer/lib/backbone-forms-default.css" rel="stylesheet" />
      1. Property must be overridden when using a port offset - can this be detected automatically instead?
          1. group.addConfigItem( configurationFactory.newConfigItem( "designer.url", "http://localhost:8080" ) );
            Binary file ./standalone/deployments/business-central.war/WEB-INF/classes/org/kie/workbench/backend/AppSetup.class matches
            ./standalone/deployments/business-central.war/WEB-INF/classes/org/kie/workbench/backend/AppSetup.java: "http://localhost:8080" ) );

      Version-Release number of selected component (if applicable):

      BPMSv6 ER2

      How reproducible:

      100% of the time for designer issue
      Unknown affects for the

      Steps to Reproduce:
      1. Install BPMS on EAP 6.
      2. Start the server with a port offset (ex: bin/standalone.sh -Djboss.socket.binding.port-offset=1)
      3a. Check that you can edit a JBPM process
      3b. Try to create a data model and save it


        Issue Links



              kverlaen@redhat.com Kris Verlaenen
              jowest@redhat.com Josh West
              Cheng Zhang (Inactive), Kris Verlaenen, Lukáš Petrovický, Marek Baluch, paradhya2, Rajesh Rajasekaran
              Marek Baluch Marek Baluch
              0 Vote for this issue
              1 Start watching this issue