Hi, yes, offset can be read from system property (/carbon utility services) but depending on code implementation and use case we need have think those both options.
If you reading from system property then 'wso2server.sh -DportOffset=1' will work. In WSO2 UES we also had some type of such issues some times back. On Fri, Jul 25, 2014 at 3:32 AM, Nuwan Dias <nuw...@wso2.com> wrote: > I presume this must have got broken due to the fix introduced for [1]. > @Udara should be able to shed some light on this. > > @Maduka, I think we have to get the offset from the system property > (portOffset). AFAIK the portOffset is read through the portOffset system > property. > > [1] - https://wso2.org/jira/browse/APIMANAGER-2482 > > Thanks, > NuwanD. > > > On Fri, Jul 25, 2014 at 1:10 AM, Sumedha Rubasinghe <sume...@wso2.com> > wrote: > >> But how did this got broken? >> Is this due to an update from Jaggery? This is a fundamental flaw & we >> are trying to do a patch release. >> >> Madhuka - welcome back ;-) ... >> >> >> On Thu, Jul 24, 2014 at 4:33 AM, madhuka udantha < >> madhukaudan...@gmail.com> wrote: >> >>> Hi, >>> >>> You can used 'loadConfig()' to load carbon config file and read 'offset' >>> value. >>> This can be helpful for the $subject >>> >>> var conf = carbon.server.loadConfig(<config file>) >>> >>> >>> >>> On Thu, Jul 24, 2014 at 3:21 PM, Evanthika Amarasiri <evanth...@wso2.com >>> > wrote: >>> >>>> Hi All, >>>> >>>> With API-M 1.7.1, we noticed that if we set a port offset, we need to >>>> change the site.json files of the publisher jaggery app. If you don't >>>> change these files, when you access the publisher URL, you are redirected >>>> back to https://{default_host}:{default_port}/publisher page. i.e.:- >>>> https://localhost:9443/publisher. >>>> >>>> So every time you set a port offset to your server, a user will have to >>>> change the site.json file manually to access publisher URL. >>>> >>>> My concern is, why are we introducing additional configuration changes >>>> like these? If we introduce changes, we need to make sure that they work >>>> out of the box, without a person having to change any files manually. >>>> >>>> Also, if you set a port offset, API console (Swagger) does not work out >>>> of the box. You need to change the port you give in >>>> *Access-Control-Allow-Origin* parameter. >>>> >>>> Regards, >>>> Evanthika Amarasiri >>>> Senior Technical Lead - Quality Assurance >>>> Mobile: +94773125935 >>>> >>>> wso2.com Lean Enterprise Middleware >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Cheers, >>> Madhuka Udantha >>> http://madhukaudantha.blogspot.com >>> >> >> >> >> -- >> /sumedha >> m: +94 773017743 >> b : bit.ly/sumedha >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Nuwan Dias > > Associate Tech Lead - WSO2, Inc. http://wso2.com > email : nuw...@wso2.com > Phone : +94 777 775 729 > -- Cheers, Madhuka Udantha http://madhukaudantha.blogspot.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev