robertdoo / red5

Automatically exported from code.google.com/p/red5
0 stars 0 forks source link

Faulty settings in TomcatLoader results in realm not working #404

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Write your own realm class extending existed realm class(JAASRealm for 
example)
2.Use your own realm class in TomcatLoader's realm property
3.Print the stack trace

What is the expected output? What do you see instead?
The expected output should be: in the stack trace, your own realm class should 
be used

What version of the product are you using? On what operating system?
TomcatLoader r4565

Please provide any additional information below.
It is faulty in the TomcatLoader class in line 425 and 432.

embedded.setRealm(realm); should be replaced with engine.setRealm(realm);

Original issue reported on code.google.com by Stif...@gmail.com on 9 Jun 2013 at 7:21

GoogleCodeExporter commented 9 years ago
Another thing is , if the realm is instanceof JAASRealm , TomcatLoader should 
set the container property and then invoke start() method of realm, otherwise 
it won't work.

Original comment by Stif...@gmail.com on 9 Jun 2013 at 7:22

GoogleCodeExporter commented 9 years ago

Original comment by mondain on 9 Jun 2013 at 4:27