Package: x2gobroker Version: 0.0.0.5
When I have X2GOBROKER_DEBUG=1 in /etc/default/x2gobroker-daemon, it returns the correct information:
$ curl " http://x2go-broker.dsl.lan:8080/plain/inifile/?task=selectsession&sid=term-internal " Access granted SERVER:testterm1.dsl.lan:22
However, when I set X2GOBROKER_DEBUG=0 or completely remove that line, this is what I get: $ curl " http://x2go-broker.dsl.lan:8080/plain/inifile/?task=selectsession&sid=term-internal " 404 Not Found
-- Anders Bruun Olsen It-ansvarlig Det Danske Sprog- og Litteraturselskab (Society for Danish Language and Literature)
tag #126 wontfix thanks
Dear Anders,
On Do 28 Feb 2013 13:06:05 CET Anders Bruun Olsen wrote:
Package: x2gobroker Version: 0.0.0.5
When I have X2GOBROKER_DEBUG=1 in /etc/default/x2gobroker-daemon, it returns the correct information:
$ curl " http://x2go-broker.dsl.lan:8080/plain/inifile/?task=selectsession&sid=term-internal " Access granted SERVER:testterm1.dsl.lan:22
However, when I set X2GOBROKER_DEBUG=0 or completely remove that line, this is what I get: $ curl " http://x2go-broker.dsl.lan:8080/plain/inifile/?task=selectsession&sid=term-internal " 404 Not Found
The above described phenomenon is intended behaviour.
In X2GOBROKER_DEBUG mode (=1) both http request methods (POST, GET)
are possible and deliver a proper result. The curl command issues a
GET request.
Without X2GOBROKER_DEBUG mode (=0) the GET request is disable and
result in 404 Not Found. X2Go Client however, will just work fine, as
it issues a POST request.
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Processing commands for control@bugs.x2go.org:
tag #126 wontfix Bug #126 [x2gobroker] x2gobroker only works in debug-mode Added tag(s) wontfix. thanks Stopping processing here.
126: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=126 X2Go Bug Tracking System Contact git-admin@x2go.org with problems
Hi Mike.
On 2013-02-28 17:05, Mike Gabriel wrote:
The above described phenomenon is intended behaviour.
In X2GOBROKER_DEBUG mode (=1) both http request methods (POST, GET) are possible and deliver a proper result. The curl command issues a GET request.
Without X2GOBROKER_DEBUG mode (=0) the GET request is disable and result in 404 Not Found. X2Go Client however, will just work fine, as it issues a POST request.
What is the rationale for this. While I don't work with the broker this seems odd.
Morty
-- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen
Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : struebe@informatik.uni-erlangen.de WWW : http://www4.informatik.uni-erlangen.de/~morty
2013/2/28 Moritz Struebe <Moritz.Struebe@informatik.uni-erlangen.de>
Without X2GOBROKER_DEBUG mode (=0) the GET request is disable and result in 404 Not Found. X2Go Client however, will just work fine, as it issues a POST request. What is the rationale for this. While I don't work with the broker this seems odd.
It could be related to REST. A POST request is usually what is used for giving input to a REST service. It means that caches do the right thing with the request, if one happens to be in between the service and the client. But it might be nice to have a comment in /etc/default/x2gobroker-daemon warning that enabling debug will enable GET requests to make using a browser for testing possible. Also we need documentation specifying that only POST requests are normally honored, but documentation probably should wait until the product is closer to being finished :)
-- Anders Bruun Olsen It-ansvarlig Det Danske Sprog- og Litteraturselskab (Society for Danish Language and Literature)
tag #126 pending tag #126 - wontfix retitle #126 Provide info in /etc/default config files about broker debug mode thanks
Hi Anders, hi Morty,
On Fr 01 Mär 2013 10:30:11 CET Anders Bruun Olsen wrote:
2013/2/28 Moritz Struebe <Moritz.Struebe@informatik.uni-erlangen.de>
Without X2GOBROKER_DEBUG mode (=0) the GET request is disable and result in 404 Not Found. X2Go Client however, will just work fine, as it issues a POST request. What is the rationale for this. While I don't work with the broker this seems odd.
It could be related to REST. A POST request is usually what is used for giving input to a REST service. It means that caches do the right thing with the request, if one happens to be in between the service and the client. But it might be nice to have a comment in /etc/default/x2gobroker-daemon warning that enabling debug will enable GET requests to make using a browser for testing possible. Also we need documentation specifying that only POST requests are normally honored, but documentation probably should wait until the product is closer to being finished :)
I have just committed an attempt to make the X2GOBROKER_DEBUG usage
more clear:
http://code.x2go.org/gitweb?p=x2gobroker.git;a=commitdiff;h=94323f6767cc8f32...
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, rothenstein 5, 24214 neudorf-bornstein fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Processing commands for control@bugs.x2go.org:
tag #126 pending Bug #126 [x2gobroker] x2gobroker only works in debug-mode Added tag(s) pending. tag #126 - wontfix Bug #126 [x2gobroker] x2gobroker only works in debug-mode Removed tag(s) wontfix. retitle #126 Provide info in /etc/default config files about broker debug mode Bug #126 [x2gobroker] x2gobroker only works in debug-mode Changed Bug title to 'Provide info in /etc/default config files about broker debug mode' from 'x2gobroker only works in debug-mode' thanks Stopping processing here.
126: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=126 X2Go Bug Tracking System Contact git-admin@x2go.org with problems