Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356910

Summary: ServletContext#getRealPath() different in RAP 1.4 and 1.5 also security dialog issues
Product: [RT] RAP Reporter: ANS <ans.mail>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description ANS CLA 2011-09-07 06:36:56 EDT
Build Identifier: rap-runtime-1.5.0-M1-20110816-0926 

see: http://www.eclipse.org/forums/index.php/mv/msg/238854/722900/#msg_722900

Two different behaviors of RAP 1.4 und 1.5 M1.

1) There is code snippet below.

ServletContext sc = RWT.getRequest().getSession().getServletContext();
System.out.println("<<<>>> RealPath /WEB-INF: " + sc.getRealPath("/WEB-INF"));
System.out.println("<<<>>> RealPath /: " + sc.getRealPath("/"));

After deploying in Tomcat the console shows the following:

--> RAP 1.4
<<<>>> RealPath /WEB-INF: ...\tomcat\webapps\test14\WEB-INF
<<<>>> RealPath /: ...\tomcat\webapps\test14\

--> RAP 1.5 M1
<<<>>> RealPath /WEB-INF: .../tomcat/work/Catalina/localhost/test15/eclipse/workspace/.metadata/.plugins/org.eclipse.rap.ui/context/WEB-INF
<<<>>> RealPath /: .../tomcat/work/Catalina/localhost/test15/eclipse/workspace/.metadata/.plugins/org.eclipse.rap.ui/context/


2) Trying to implement security like shown in http;//wiki.eclipse.org/RAP/Equinox_Security_Integration.
In RAP 1.4 the application continues starting after pressing the Login-button, in 1.5 the dialog disappears and nothing more happens.

Reproducible: Always

Steps to Reproduce:
Creating and deploying war file on Tomcat with different RAP versions
Comment 1 RĂ¼diger Herrmann CLA 2011-10-04 06:29:10 EDT
This is a duplicate of bug 359388

*** This bug has been marked as a duplicate of bug 359388 ***