[mapguide-internals] MG CreateSession

Jason Birch jason at jasonbirch.com
Mon Jun 7 17:13:34 EDT 2010


Makes sense to me.

Maybe create an enhancement request and attach a patch? ;)

Jason

On 4 June 2010 01:46, Haris Kurtagic <haris at sl-king.com> wrote:

> It is not important what IP it is. It would be important that server
> returns IP which was used to connect to that server at first place.
>
> For example you could have current web extension talking to internal
> MG server on machine e.g. 192.168.0.3.
> Server would accept that connection and command but when creating
> session id would use default 127.0.0.1 to pack inside session id
> string.
> Next command using that session id would fail.
> To make this scenario work you would need to set in server config IP
> (192.168.0.3) of machine to be used in session id.
>
> It would be much more cleaner that server would simple use IP of TCP
> connection which was used to execute create session command and then
> pack that IP into session id string.
>
> Haris
>
> On Fri, Jun 4, 2010 at 10:36 AM, Jason Birch <jason at jasonbirch.com> wrote:
> > I'm not sure if there's a way of fixing this. The IP address that my
> > host knows itself as is not the same as the ip address the world sees.
> > Internally, it's sitting in a local subnet, with an external NAT IP
> > assigned at the firewall.
> >
> > On 2010-05-31, Haris Kurtagic <haris at sl-king.com> wrote:
> >> Hi,
> >>
> >> I ran into issue with Server CreateSession
> >> command. CreateSession will embed IP of server into session id. Issue I
> ran
> >> into was that embedded IP would be 127.0.0.1 ( if not changed
> >> in serverconfig.ini) regardless that server command was executed trough
> >> another machine.
> >>
> >> So, for example If I ran GeoREST on one machine and execute command to
> MG
> >> server which is on another IP  (e.g. 192.168.0.3), MG server would
> return
> >> 127.0.0.1 in session id (should be 192.168.0.3 ). Then that sessionid
> would
> >> be invalid and further commands would fail which use the sessionid.
> >>
> >> I know that solution would be to set IP in serverconfig but as MG would
> >> accept CreateSession command on one IP address it would be nice that it
> >> returns the same IP in session id
> >>
> >> Haris
> >> _______________________________________________
> >> mapguide-internals mailing list
> >> mapguide-internals at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
> >>
> > _______________________________________________
> > mapguide-internals mailing list
> > mapguide-internals at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapguide-internals
> >
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>


More information about the mapguide-internals mailing list