Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356910 - ServletContext#getRealPath() different in RAP 1.4 and 1.5 also security dialog issues
Summary: ServletContext#getRealPath() different in RAP 1.4 and 1.5 also security dial...
Status: RESOLVED DUPLICATE of bug 359388
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 06:36 EDT by ANS CLA
Modified: 2011-10-04 06:29 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***