Re: Error when enter to Guacamole Web version 1.2.0

2020-08-04 Thread Nick Couchman
On Mon, Aug 3, 2020 at 6:32 AM Tim Worcester 
wrote:

> Guacamole deploys itself with the guacamole.min.js and guacamole.js
> files.  As far as I know there is no way to load the page with guacamole.js
> pulled.
>
> I usually exec into the docker container and copy guacamole.js over
> guacamole.min.js and that enables me to be able to drop javascript
> breakpoints :).
>
>
I believe you should be able to do at least some of this from within the
Developer Console of your preferred browser.  In Chrome, you can load the
Sources tab and then find the app.js source which contains the combined JS
files.  You should be able to set watches and breakpoints within that
file.  Obviously it becomes a little harder because the code is made
generic, so variables names are removed and shortened to single letters,
and some other optimization is run on the JS code as its loaded in there.

-Nick

>


Re: Error when enter to Guacamole Web version 1.2.0

2020-08-03 Thread Tim Worcester
Guacamole deploys itself with the guacamole.min.js and guacamole.js files.
As far as I know there is no way to load the page with guacamole.js pulled.

I usually exec into the docker container and copy guacamole.js over
guacamole.min.js and that enables me to be able to drop javascript
breakpoints :).

On Sun, Aug 2, 2020 at 10:30 PM Gabriel Huerta Araujo
 wrote:

> I fixed the trouble I had. Getting the last version with git instead of
> using guacamole-client-1.2.0.tar.gz
>
>
>
> By the way any guidance to debug Angular JS code?
>
>
>
> Regards
>
>
>
> *De:* Gabriel Huerta Araujo
> *Enviado el:* miércoles, 29 de julio de 2020 10:18 p.m.
> *Para:* user@guacamole.apache.org
> *Asunto:* RE: Error when enter to Guacamole Web version 1.2.0
>
>
>
> Ok Mike
>
>
>
> Is there any guidance to do that? Any URL which indicates the steps to
> make it? Or how can I debug Angular code during execution time?
>
>
>
> Regards.
>
>
>
> *De:* Mike Jumper 
> *Enviado el:* miércoles, 29 de julio de 2020 08:26 p.m.
> *Para:* user@guacamole.apache.org
> *Asunto:* Re: Error when enter to Guacamole Web version 1.2.0
>
>
>
> On Wed, Jul 29, 2020, 17:41 Gabriel Huerta Araujo <
> huert...@globalhitss.com.invalid> wrote:
>
> These are the URL’s
>
> Request URL:
> http://10.93.5.144:8080/guacamole/api/session/data/mysql/users/gabriel?token=39FAFDC19262B0EAE881EDDEFDD88B46F77846F8E7C83174A34BBBCCF78246F6
>
> Request URL:
> http://10.93.5.144:8080/guacamole/api/session/data/mysql-shared/users/gabriel?token=39FAFDC19262B0EAE881EDDEFDD88B46F77846F8E7C83174A34BBBCCF78246F6
>
> Regarding what you told me, is then correct the responses that application
> generates has generated?
>
>
>
> Yes.
>
>
>
> Are you able to see where in the code the original error occurs? Or which
> REST API request it corresponds to? That might give us more to go on.
>
>
>
> - Mike
>
>
>


RE: Error when enter to Guacamole Web version 1.2.0

2020-08-02 Thread Gabriel Huerta Araujo
I fixed the trouble I had. Getting the last version with git instead of using 
guacamole-client-1.2.0.tar.gz

By the way any guidance to debug Angular JS code?

Regards

De: Gabriel Huerta Araujo
Enviado el: miércoles, 29 de julio de 2020 10:18 p.m.
Para: user@guacamole.apache.org
Asunto: RE: Error when enter to Guacamole Web version 1.2.0

Ok Mike

Is there any guidance to do that? Any URL which indicates the steps to make it? 
Or how can I debug Angular code during execution time?

Regards.

De: Mike Jumper mailto:mjum...@apache.org>>
Enviado el: miércoles, 29 de julio de 2020 08:26 p.m.
Para: user@guacamole.apache.org<mailto:user@guacamole.apache.org>
Asunto: Re: Error when enter to Guacamole Web version 1.2.0

On Wed, Jul 29, 2020, 17:41 Gabriel Huerta Araujo 
mailto:huert...@globalhitss.com.invalid>> 
wrote:
These are the URL’s
Request URL: 
http://10.93.5.144:8080/guacamole/api/session/data/mysql/users/gabriel?token=39FAFDC19262B0EAE881EDDEFDD88B46F77846F8E7C83174A34BBBCCF78246F6
Request URL: 
http://10.93.5.144:8080/guacamole/api/session/data/mysql-shared/users/gabriel?token=39FAFDC19262B0EAE881EDDEFDD88B46F77846F8E7C83174A34BBBCCF78246F6
Regarding what you told me, is then correct the responses that application 
generates has generated?

Yes.

Are you able to see where in the code the original error occurs? Or which REST 
API request it corresponds to? That might give us more to go on.

- Mike



RE: Error when enter to Guacamole Web version 1.2.0

2020-07-29 Thread Gabriel Huerta Araujo
Ok Mike

Is there any guidance to do that? Any URL which indicates the steps to make it? 
Or how can I debug Angular code during execution time?

Regards.

De: Mike Jumper 
Enviado el: miércoles, 29 de julio de 2020 08:26 p.m.
Para: user@guacamole.apache.org
Asunto: Re: Error when enter to Guacamole Web version 1.2.0

On Wed, Jul 29, 2020, 17:41 Gabriel Huerta Araujo 
mailto:huert...@globalhitss.com.invalid>> 
wrote:
These are the URL’s
Request URL: 
http://10.93.5.144:8080/guacamole/api/session/data/mysql/users/gabriel?token=39FAFDC19262B0EAE881EDDEFDD88B46F77846F8E7C83174A34BBBCCF78246F6
Request URL: 
http://10.93.5.144:8080/guacamole/api/session/data/mysql-shared/users/gabriel?token=39FAFDC19262B0EAE881EDDEFDD88B46F77846F8E7C83174A34BBBCCF78246F6
Regarding what you told me, is then correct the responses that application 
generates has generated?

Yes.

Are you able to see where in the code the original error occurs? Or which REST 
API request it corresponds to? That might give us more to go on.

- Mike



Re: Error when enter to Guacamole Web version 1.2.0

2020-07-29 Thread Mike Jumper
On Wed, Jul 29, 2020, 17:41 Gabriel Huerta Araujo
 wrote:

> These are the URL’s
>
> Request URL:
> http://10.93.5.144:8080/guacamole/api/session/data/mysql/users/gabriel?token=39FAFDC19262B0EAE881EDDEFDD88B46F77846F8E7C83174A34BBBCCF78246F6
>
> Request URL:
> http://10.93.5.144:8080/guacamole/api/session/data/mysql-shared/users/gabriel?token=39FAFDC19262B0EAE881EDDEFDD88B46F77846F8E7C83174A34BBBCCF78246F6
>
> Regarding what you told me, is then correct the responses that application
> generates has generated?
>

Yes.

Are you able to see where in the code the original error occurs? Or which
REST API request it corresponds to? That might give us more to go on.

- Mike


RE: Error when enter to Guacamole Web version 1.2.0

2020-07-29 Thread Gabriel Huerta Araujo
These are the URL’s

Request URL: 
http://10.93.5.144:8080/guacamole/api/session/data/mysql/users/gabriel?token=39FAFDC19262B0EAE881EDDEFDD88B46F77846F8E7C83174A34BBBCCF78246F6

Request URL: 
http://10.93.5.144:8080/guacamole/api/session/data/mysql-shared/users/gabriel?token=39FAFDC19262B0EAE881EDDEFDD88B46F77846F8E7C83174A34BBBCCF78246F6

Regarding what you told me, is then correct the responses that application 
generates has generated?

Regards.

De: Gabriel Huerta Araujo 
Enviado el: miércoles, 29 de julio de 2020 07:15 p.m.
Para: user@guacamole.apache.org
Asunto: RE: Error when enter to Guacamole Web version 1.2.0

“The parts of the URL that would provide context are missing above”. That 
information is referred to Headers, Preview and Response which are in Network 
tab?

Regards.

De: Mike Jumper mailto:mjum...@apache.org>>
Enviado el: miércoles, 29 de julio de 2020 07:07 p.m.
Para: user@guacamole.apache.org<mailto:user@guacamole.apache.org>
Asunto: Re: Error when enter to Guacamole Web version 1.2.0

On Wed, Jul 29, 2020, 17:02 Gabriel Huerta Araujo 
mailto:huert...@globalhitss.com.invalid>> 
wrote:
For my user I have two tokens
These are their responses
Token 
gabriel?token=8B05F622CBF6CA36C1AF8A805473BB059DF70B9E245832CED820D554621E402D
{"username":"gabriel","attributes":{"guac-email-address":null,"guac-organizational-role":null,"guac-full-name":"Gabriel
 
Prueba","expired":null,"timezone":null,"access-window-start":null,"guac-organization":"CNS
 
SISTEMAS","access-window-end":null,"disabled":null,"valid-until":null,"valid-from":null},"lastActive":1596065328000}
Token 
gabriel?token=8B05F622CBF6CA36C1AF8A805473BB059DF70B9E245832CED820D554621E402D
{"username":"gabriel","attributes":{}}
Last token generated lost its information.  How can I solve it?

Those aren't two tokens; they are one token, being used for two separate REST 
API requests. The parts of the URL that would provide context are missing 
above, but these are presumably requests which are retrieving user information 
from two distinct data sources.

It is normal and expected that multiple data sources are present and that each 
returns different data.

- Mike



RE: Error when enter to Guacamole Web version 1.2.0

2020-07-29 Thread Gabriel Huerta Araujo
“The parts of the URL that would provide context are missing above”. That 
information is referred to Headers, Preview and Response which are in Network 
tab?

Regards.

De: Mike Jumper 
Enviado el: miércoles, 29 de julio de 2020 07:07 p.m.
Para: user@guacamole.apache.org
Asunto: Re: Error when enter to Guacamole Web version 1.2.0

On Wed, Jul 29, 2020, 17:02 Gabriel Huerta Araujo 
mailto:huert...@globalhitss.com.invalid>> 
wrote:
For my user I have two tokens
These are their responses
Token 
gabriel?token=8B05F622CBF6CA36C1AF8A805473BB059DF70B9E245832CED820D554621E402D
{"username":"gabriel","attributes":{"guac-email-address":null,"guac-organizational-role":null,"guac-full-name":"Gabriel
 
Prueba","expired":null,"timezone":null,"access-window-start":null,"guac-organization":"CNS
 
SISTEMAS","access-window-end":null,"disabled":null,"valid-until":null,"valid-from":null},"lastActive":1596065328000}
Token 
gabriel?token=8B05F622CBF6CA36C1AF8A805473BB059DF70B9E245832CED820D554621E402D
{"username":"gabriel","attributes":{}}
Last token generated lost its information.  How can I solve it?

Those aren't two tokens; they are one token, being used for two separate REST 
API requests. The parts of the URL that would provide context are missing 
above, but these are presumably requests which are retrieving user information 
from two distinct data sources.

It is normal and expected that multiple data sources are present and that each 
returns different data.

- Mike



Re: Error when enter to Guacamole Web version 1.2.0

2020-07-29 Thread Mike Jumper
On Wed, Jul 29, 2020, 17:02 Gabriel Huerta Araujo
 wrote:

> For my user I have two tokens
>
> These are their responses
>
> Token
> gabriel?token=8B05F622CBF6CA36C1AF8A805473BB059DF70B9E245832CED820D554621E402D
>
> {"username":"gabriel","attributes":{"guac-email-address":null,"guac-organizational-role":null,"guac-full-name":"Gabriel
> Prueba","expired":null,"timezone":null,"access-window-start":null,"guac-organization":"CNS
> SISTEMAS","access-window-end":null,"disabled":null,"valid-until":null,"valid-from":null},"lastActive":1596065328000}
>
> Token
> gabriel?token=8B05F622CBF6CA36C1AF8A805473BB059DF70B9E245832CED820D554621E402D
>
> {"username":"gabriel","attributes":{}}
>
> Last token generated lost its information.  How can I solve it?
>

Those aren't two tokens; they are one token, being used for two separate
REST API requests. The parts of the URL that would provide context are
missing above, but these are presumably requests which are retrieving user
information from two distinct data sources.

It is normal and expected that multiple data sources are present and that
each returns different data.

- Mike


RE: Error when enter to Guacamole Web version 1.2.0

2020-07-29 Thread Gabriel Huerta Araujo
For my user I have two tokens

These are their responses

Token 
gabriel?token=8B05F622CBF6CA36C1AF8A805473BB059DF70B9E245832CED820D554621E402D
{"username":"gabriel","attributes":{"guac-email-address":null,"guac-organizational-role":null,"guac-full-name":"Gabriel
 
Prueba","expired":null,"timezone":null,"access-window-start":null,"guac-organization":"CNS
 
SISTEMAS","access-window-end":null,"disabled":null,"valid-until":null,"valid-from":null},"lastActive":1596065328000}

Token 
gabriel?token=8B05F622CBF6CA36C1AF8A805473BB059DF70B9E245832CED820D554621E402D
{"username":"gabriel","attributes":{}}

Last token generated lost its information.  How can I solve it?

And this is the Guacamole.log
[2020-07-29 16:18:50] [info] Loading class `com.mysql.jdbc.Driver'. This is 
deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is 
automatically registered via the SPI and manual loading of the driver class is 
generally unnecessary.
[2020-07-29 16:19:24] [info] WARNING: An illegal reflective access operation 
has occurred
[2020-07-29 16:19:24] [info] WARNING: Illegal reflective access by 
org.apache.ibatis.ognl.OgnlRuntime 
(file:/etc/guacamole/extensions/guacamole-auth-jdbc-mysql-1.2.0.jar) to method 
java.util.Collections$EmptySet.isEmpty()
[2020-07-29 16:19:24] [info] WARNING: Please consider reporting this to the 
maintainers of org.apache.ibatis.ognl.OgnlRuntime
[2020-07-29 16:19:24] [info] WARNING: Use --illegal-access=warn to enable 
warnings of further illegal reflective access operations
[2020-07-29 16:19:24] [info] WARNING: All illegal access operations will be 
denied in a future release
[2020-07-29 16:19:24] [info] 16:19:24.798 [http-nio-8080-exec-10] INFO  
o.a.g.r.auth.AuthenticationService - User "gabriel" successfully authenticated 
from 10.247.236.65.

Regards

De: Mike Jumper 
Enviado el: miércoles, 29 de julio de 2020 06:23 p.m.
Para: user@guacamole.apache.org
Asunto: Re: Error when enter to Guacamole Web version 1.2.0

Have you made any changes to the source code of the web application?

How have you deployed things? Is a proxy involved?

If you open up browser dev tools and then attempt to log in, what do you see in 
the network tab as the body of the successful response from .../api/tokens 
(after this error appears)?

- Mike


On Wed, Jul 29, 2020, 11:53 Gabriel Huerta Araujo 
mailto:huert...@globalhitss.com.invalid>> 
wrote:
Hi Nick

That error is when I try to access to Guacamole Client URL with an user and 
password, it gets frozen and when I click F12 appears that message in Browser 
Console.

When I see the log this is what shows

[2020-07-29 13:50:04] [info] 13:50:04.366 [http-nio-8080-exec-2] INFO  
o.a.g.r.auth.AuthenticationService - User "gabriel" successfully authenticated 
from xx.xx.xx.xx.

And nothing else appears as an error.

Regards.

De: Nick Couchman mailto:vn...@apache.org>>
Enviado el: miércoles, 29 de julio de 2020 08:36 a.m.
Para: user@guacamole.apache.org<mailto:user@guacamole.apache.org>
Asunto: Re: Error when enter to Guacamole Web version 1.2.0

On Tue, Jul 28, 2020 at 10:07 PM Gabriel Huerta Araujo 
mailto:huert...@globalhitss.com.invalid>> 
wrote:
Hi everyone:

When I have tried to access to Guacamole with my user and password I get 
following error

TypeError: Cannot read property 'mysql' of undefined


You'll need to provide us a little more detail and context of this error 
message.  I assume that error is in the Tomcat logs - if so, can you provide 
more detailed log messages surrounding this particular error?  If you're 
receiving that message somewhere else - like a pop-up on the screen or 
something like that - please provide that detail and the log messages.

-Nick


Re: Error when enter to Guacamole Web version 1.2.0

2020-07-29 Thread Mike Jumper
Have you made any changes to the source code of the web application?

How have you deployed things? Is a proxy involved?

If you open up browser dev tools and then attempt to log in, what do you
see in the network tab as the body of the successful response from
.../api/tokens (after this error appears)?

- Mike


On Wed, Jul 29, 2020, 11:53 Gabriel Huerta Araujo
 wrote:

> Hi Nick
>
>
>
> That error is when I try to access to Guacamole Client URL with an user
> and password, it gets frozen and when I click F12 appears that message in
> Browser Console.
>
>
>
> When I see the log this is what shows
>
>
>
> [2020-07-29 13:50:04] [info] 13:50:04.366 [http-nio-8080-exec-2] INFO
> o.a.g.r.auth.AuthenticationService - User "gabriel" successfully
> authenticated from xx.xx.xx.xx.
>
>
>
> And nothing else appears as an error.
>
>
>
> Regards.
>
>
>
> *De:* Nick Couchman 
> *Enviado el:* miércoles, 29 de julio de 2020 08:36 a.m.
> *Para:* user@guacamole.apache.org
> *Asunto:* Re: Error when enter to Guacamole Web version 1.2.0
>
>
>
> On Tue, Jul 28, 2020 at 10:07 PM Gabriel Huerta Araujo <
> huert...@globalhitss.com.invalid> wrote:
>
> Hi everyone:
>
>
>
> When I have tried to access to Guacamole with my user and password I get
> following error
>
>
>
> TypeError: Cannot read property 'mysql' of undefined
>
>
>
>
>
> You'll need to provide us a little more detail and context of this error
> message.  I assume that error is in the Tomcat logs - if so, can you
> provide more detailed log messages surrounding this particular error?  If
> you're receiving that message somewhere else - like a pop-up on the screen
> or something like that - please provide that detail and the log messages.
>
>
>
> -Nick
>


RE: Error when enter to Guacamole Web version 1.2.0

2020-07-29 Thread Gabriel Huerta Araujo
Hi Nick

That error is when I try to access to Guacamole Client URL with an user and 
password, it gets frozen and when I click F12 appears that message in Browser 
Console.

When I see the log this is what shows

[2020-07-29 13:50:04] [info] 13:50:04.366 [http-nio-8080-exec-2] INFO  
o.a.g.r.auth.AuthenticationService - User "gabriel" successfully authenticated 
from xx.xx.xx.xx.

And nothing else appears as an error.

Regards.

De: Nick Couchman 
Enviado el: miércoles, 29 de julio de 2020 08:36 a.m.
Para: user@guacamole.apache.org
Asunto: Re: Error when enter to Guacamole Web version 1.2.0

On Tue, Jul 28, 2020 at 10:07 PM Gabriel Huerta Araujo 
mailto:huert...@globalhitss.com.invalid>> 
wrote:
Hi everyone:

When I have tried to access to Guacamole with my user and password I get 
following error

TypeError: Cannot read property 'mysql' of undefined


You'll need to provide us a little more detail and context of this error 
message.  I assume that error is in the Tomcat logs - if so, can you provide 
more detailed log messages surrounding this particular error?  If you're 
receiving that message somewhere else - like a pop-up on the screen or 
something like that - please provide that detail and the log messages.

-Nick


Re: Error when enter to Guacamole Web version 1.2.0

2020-07-29 Thread Nick Couchman
On Tue, Jul 28, 2020 at 10:07 PM Gabriel Huerta Araujo
 wrote:

> Hi everyone:
>
>
>
> When I have tried to access to Guacamole with my user and password I get
> following error
>
>
>
> TypeError: Cannot read property 'mysql' of undefined
>
>
>

You'll need to provide us a little more detail and context of this error
message.  I assume that error is in the Tomcat logs - if so, can you
provide more detailed log messages surrounding this particular error?  If
you're receiving that message somewhere else - like a pop-up on the screen
or something like that - please provide that detail and the log messages.

-Nick

>