Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Froms Authentication (Read 9899 times)
vk23942
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Oct 18th, 2007
Froms Authentication
Oct 22nd, 2007 at 8:10am
Print Post  
Hi,
This is not strictly related to the Mindfusion and is probably a general problem. I am facing an issue of applet not getting initialized when I am using forms authentication in ASP.Net.
Kindly suggest.

Regards,

Vikas Kapoor
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Froms Authentication
Reply #1 - Oct 22nd, 2007 at 9:07am
Print Post  
Hi,

It might be related to redirecting to the login page and back, but I am not sure why that would be a problem. Could you email your test project to support@mindfusion.eu, and our developer will run the applet-loading code through a debugger?

Stoyan
  
Back to top
 
IP Logged
 
vk23942
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Oct 18th, 2007
Re: Froms Authentication
Reply #2 - Oct 23rd, 2007 at 3:33am
Print Post  
Hi,
Just now I sent the test project.

Thanks and regards,

Vikas Kapoor
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Froms Authentication
Reply #3 - Oct 23rd, 2007 at 9:12am
Print Post  
Hi,

Thank you, we have received it. Our developer will test this shortly.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Froms Authentication
Reply #4 - Oct 24th, 2007 at 12:48pm
Print Post  
Hi,

There is an "Incompatible magic value 218762506 in class file" displayed in the Java console, and we have found this report related to that message:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4975146

From what we can see in your Web.Config file, there is a section related to custom error headers, which leads to that error as described in the page linked above. Our guess is that when using Forms Authentication, ASP.NET changes all GET request URLs in the web application. The web server receives a request for the ".jar" but cannot find the file due to the changed URL. Then it returns a "Not found" error code, which combined with the custom error pages leads to the applet error.

Unfortunately removing the custom error pages won't help. That will just prevent the JRE from trying to load the applet, because it will recognize the "404 not found" response.

We will investigate this further in the following few days. Meanwhile, if you have more knowledge on Forms Authentication than us, you might try to add some Web.Config directive to exclude ".jar" files from the Forms Authentication mechanism.

Stoyan
« Last Edit: Oct 24th, 2007 at 4:13pm by Stoyo »  
Back to top
 
IP Logged
 
vk23942
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Oct 18th, 2007
Re: Froms Authentication
Reply #5 - Oct 25th, 2007 at 4:08am
Print Post  
Hi,
Thanks. I will also investigate at our end and let u know if we fugure out some thing.

Regards,

Vikas Kapoor
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Froms Authentication
Reply #6 - Oct 25th, 2007 at 7:50am
Print Post  
Hi,

We have run this once with enabled authentication, and next time with disabled. The ASP.NET logs are below:

enabled authentication
Code
Select All
09:27:50 127.0.0.1 GET /NetworkChart/Default.aspx 401
09:27:50 127.0.0.1 GET /NetworkChart/Default.aspx 302
09:27:57 127.0.0.1 GET /NetworkChart/login.aspx 200
09:28:00 127.0.0.1 POST /NetworkChart/login.aspx 302
09:28:02 127.0.0.1 GET /NetworkChart/Default.aspx 200
09:28:02 127.0.0.1 GET /NetworkChart/WebResource.axd 200
09:28:02 127.0.0.1 GET /NetworkChart/com/mindfusion/jdiagram/FlowChartApplet.class 401
09:28:03 127.0.0.1 GET /NetworkChart/com/mindfusion/jdiagram/FlowChartApplet.class 404
 



disabled authentication
Code
Select All
09:33:56 127.0.0.1 GET /NetworkChart/Default.aspx 200
09:33:56 127.0.0.1 GET /NetworkChart/WebResource.axd 200
09:33:57 127.0.0.1 GET /NetworkChart/JDiagram.jar 200
09:34:14 127.0.0.1 GET /NetworkChart/Default.aspx 401
09:34:14 127.0.0.1 GET /NetworkChart/Default.aspx 200
09:34:14 127.0.0.1 GET /NetworkChart/JDiagram.jar 401
09:34:14 127.0.0.1 GET /NetworkChart/JDiagram.jar 200
 



Apparently the JRE does not download the ".jar" file at all while using authentication, but directly tries to download the class files. So we have just unzipped the .jar file in the project's folder, and now the application runs fine when using the ASP.NET server.

Unfortunately, it still has the same problem when using the VS2005 development web server. I will let you know if we find a way to run it from the development server too.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Froms Authentication
Reply #7 - Oct 26th, 2007 at 6:04am
Print Post  
Hi,

It works fine with the VS development server too when the .jar file is unzipped and using cookieless authentication:

<authentication mode="Forms">
     <forms loginUrl="login.aspx" cookieless="UseUri">
     ...

We haven't found yet why the Java plugin does not attempt to download the jar first.

Stoyan
  
Back to top
 
IP Logged
 
sutek99
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Jan 15th, 2008
Re: Froms Authentication
Reply #8 - Mar 27th, 2008 at 7:35pm
Print Post  
Hello, has there been any progress made on this?  I'd very much like to purchase the NetDiagram control for use in our upcomming project, but I'm afraid having an ASP.Net solution that can't use Forms Authentication is simply not going to cut it.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Froms Authentication
Reply #9 - Mar 27th, 2008 at 8:20pm
Print Post  
Hi,

We haven't investigated this further. As a work-around, unzip the class files from the jar archive as described above, or if you know of some way to disable authentication for selected files, do that for JDiagram.jar.

Stoyan
  
Back to top
 
IP Logged
 
dsimoes
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Aug 13th, 2010
Re: Froms Authentication
Reply #10 - Aug 13th, 2010 at 3:02pm
Print Post  
Hi,

I'm currently evaluating this control for my PhD project, and found an easy way to avoid this problem altogether.

The root folder of my web application is accessible to all, and I keep my authenticated web forms (including the ones with the diagramming applet) in the "Authenticated" folder.

You only have to put the .jar file in the root folder, and set the control's "jarlocation" property accordingly.

It just works.

Regards,
David



  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint