Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » File upload issue with RAP 3.5.0 (Photon)
File upload issue with RAP 3.5.0 (Photon) [message #1791307] Thu, 28 June 2018 03:20 Go to next message
Fabrice Teichteil Koenigsbuch is currently offline Fabrice Teichteil KoenigsbuchFriend
Messages: 8
Registered: September 2017
Junior Member
Hello,

I just upgraded my target runtime from RAP 3.2.0 to RAP 3.5.0 (Photon) and I am facing some problems with file upload: my upload dialog (custom one, not the rap file upload one) is hanging.

After some debugging I noticed the following change:

- With 3.2.0, everything is working fine, the FileUploadServiceHandler receives a POST request:

POST //127.0.0.1:50100/myapp/?servicehandler=org.eclipse.rap.fileupload&cid=e5db989c&token=9d5d72fe257b96

- With 3.5.0, the FileUploadServiceHandler receives a GET request:

GET //127.0.0.1:50100/myapp/?servicehandler=org.eclipse.rap.fileupload&cid=e5db989c&token=9d5d72fe257b96

The request is rejected as the upload service is expecting a POST request:

if( !"POST".equals( request.getMethod().toUpperCase() ) ) {
String message = "Only POST requests allowed";
response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, message );
}

Any idea of what's going wrong?

Many thanks!
Fabrice
Re: File upload issue with RAP 3.5.0 (Photon) [message #1791637 is a reply to message #1791307] Tue, 03 July 2018 08:36 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2289
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
I can reproduce the issue with RAP Exmaples demo and RWT file upload. Please open a bugzilla to track the progress there.
Regards,
Ivan
Re: File upload issue with RAP 3.5.0 (Photon) [message #1791652 is a reply to message #1791637] Tue, 03 July 2018 10:35 Go to previous message
Fabrice Teichteil Koenigsbuch is currently offline Fabrice Teichteil KoenigsbuchFriend
Messages: 8
Registered: September 2017
Junior Member
Hi Ivan,

Here is the bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=536620

Regards
Fabrice
Previous Topic:Eclipse 4 dynamic menu: direct menu item or handler are not executed
Next Topic:Application-defined themes
Goto Forum:
  


Current Time: Tue Nov 13 19:02:29 GMT 2018

Powered by FUDForum. Page generated in 0.02039 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top