Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
stevewood  
#1 Posted : Wednesday, February 20, 2008 6:00:42 AM(UTC)
stevewood

Rank: Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 21

I thought I had this licked, but my upload still fails on all Firefox browsers. I've put the entire HTML from my upload page below. I tried hardcoding the Action and Redirect functions (to eliminate the var =<%...%> that has been mentioned elsewhere on this forum), but that did not change anything.

The error I get is that it cannot find any of the POST variables. Since SourceFile_1 is the first variable I try to access on my upload.a5w page, the error is SourceFile_1 not found.

This code and the entire process works perfectly on IE.

The code between the <%a5...%> and the A5W page extensions are Alpha Five syntax, so no one here is going to recognize it, but as I said, it works just fine on IE.



Code:
<html>
<head>
<meta name="generator" content="Alpha Five HTML Editor Version 8 Build 1847-3127">
<META http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">

<title></title>
<script type="text/javascript" src="iuembed.js"></script>

</head>
<body>
<%a5 
myActionUrl   = "upload.a5w?a5w_sess_id="+session.sessionid
myRedirectUrl = "myphotos.a5w"
%>

<table width="740" border="0" bgcolor="#ffffff" cellpadding="5" cellspacing="0" align=center background="" >
  
  <tr>
    <td vAlign=top><font face="Hobo Std"><font 
      size=4 color=#003366>Upload Photos
<%a5 
if eval_valid("session.__protected__album")
	?"for Album <strong>" + lookupc("F",session.__protected__album,"Title","[PathAlias.ADB_Path]\photoalbums","Id") + "</strong>"
end if
%></font>
          
<script language="javascript" src="iuembed.js"></script>
<script language="javascript">

//commented out, hard coded below
var getActionUrl = "<%a5 ?myActionUrl %>";
var getRedirectUrl = "<%a5 ?myRedirectUrl %>";

function
	ImageUploader_BeforeUpload(){
	getImageUploader("ImageUploader").UploadThumbnailAdd("Fit",200,200);
	getImageUploader("ImageUploader").setUploadThumbnailJpegQuality(4,80);
}

var iu =   new ImageUploaderWriter("ImageUploader",650,450);

//Configure License Keys
iu.addParam("LicenseKey", "71050-4F18A-00000-0E804-6E7E9;72050-4F18A-00000-0FD48-09694");


//my otherparams

iu.addParam("MaxConnectionCount", "1");
iu.addParam("FileMask","*.jpg");
iu.addParam("RememberLastVisitedFolder","true");
iu.addParam("PaneLayout","TwoPanes");
iu.addParam("QualityMeterAcceptableQualityColor","#ffc600"); 
iu.addParam("QualityMeterHighQualityColor","#5bc529");
iu.addParam("QualityMeterLowQualityColor","#ececec");
iu.addParam("QualityMeterFormats", "4 x 6,1800,1200,1.5;5 x 7,2100,1500,1.5;8 x 10,3000,2400,1.5;16 x 20,4000,3200,2;30 x20,6000,4000,2");
iu.addParam("MaxFileCount","100");
iu.addParam("MessageMaxFileCountExceededText", "You can select not more then 100 files per upload.");
iu.addParam("MaxFileSize","2048000");
iu.addParam("FileIsTooLargeText", "Exceeds 2MB");
iu.addParam("MessageMaxFileSizeExceededText", "You can select files no larger than 2MB each.");
iu.addParam("MaxTotalFileSize","10485760");
iu.addParam("MessageMaxTotalFileSizeExceededText", "Your selections exceeds the maximum of 10 MB per upload.");
iu.addEventListener("BeforeUpload","ImageUploader_BeforeUpload");
iu.addParam("UploadSourceFile","true");
iu.addParam("AllowRotate","true");

//first thumb
iu.addParam("UploadThumbnail1FitMode","Fit");
iu.addParam("UploadThumbnail1Width","100");
iu.addParam("UploadThumbnail1Height","100");
iu.addParam("UploadThumbnail1JpegQuality","70");

//second thumb
iu.addParam("UploadThumbnail2FitMode","Fit");
iu.addParam("UploadThumbnail2Width","200");
iu.addParam("UploadThumbnail2Height","200");
iu.addParam("UploadThumbnail2JpegQuality","70");

//cause transmission to recover if failed during transmission
iu.addParam("FilesPerOnePackageCount","1");
iu.addParam("AutoRecoverMaxTriesCount","1");
iu.addParam("AutoRecoverTimeOut","5000");

//redirect after upload complete
//iu.addParam("Action","upload.a5w");
//iu.addParam("RedirectUrl","myphotos.a5w?a5w_sess_id=6239e98b0631474aac1e4250ebe1179c");  
iu.addParam("Action",getActionUrl);
iu.addParam("RedirectUrl",getRedirectUrl);  
iu.addParam("AllowLargePreview","true");  
//sends as one batch (-1) or individual(1)
iu.addParam("FilesPerOnePackageCount","1");
iu.addParam("ShowDebugWindow","true");


// If you do not want to use ActiveX or Java version, set the appropriate
// property to false.
iu.activeXControlEnabled = true;
iu.activeXControlCodeBase = "ImageUploader5.cab";
iu.activeXControlVersion = "5,0,40,0";


iu.javaAppletEnabled = true;
iu.javaAppletCodeBase = "./";
//iu.javaAppletCodeBase = "http://www.alphatogohost.com:82/alphatogohost/photo/www";
iu.javaAppletCached=true;
iu.javaAppletVersion="5,0,40,0";

// ... initialize params as described in the next topic...

// As soon as you call this method, all necessary HTML code is inserted
// into the page on the current position. Alternatively, you can       
// get the string with appropriate HTML code using the getHtml method,
// and write it to the necessary position manually (maybe with some modifications).        
iu.writeHtml();
</script>

   </font><font 
      ><font color=#000080></font> 
      </font></font> </td></tr>
	<tr>
		<td vAlign=top background="" >
      <font face="Hobo Std" color=#003366 
     >
      <p><table width="100%" border="1" cellpadding="4" cellspacing="0" >
	<tr>
		<td>
      <p><table width="100%" border="0" cellpadding="0" cellspacing="0" >
	<tr>
		<td>
            <p><font color=#003366>Photo size selection gyuide</font></p>
            <p><font face=Tahoma size=2>Use this handy chart to determine best 
            quality for various sizes:</font>           
      <br></p></td>
		<td>     

           
           
       <img src="formats.gif" ></td>
	</tr>
</table></p></td>
	</tr>
</table></font></p></td>
	</tr>
</table>
</body></html>

Edited by user Tuesday, February 26, 2008 12:04:16 PM(UTC)  | Reason: Not specified

Eugene Kosmin  
#2 Posted : Wednesday, February 20, 2008 3:42:29 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hi Steve,

Could you give me the direct link to your site with login instructions as a PM? I’ll try to check it.
Best regards,
Eugene Kosmin
The Aurigma Development Team
Eugene Kosmin  
#3 Posted : Thursday, February 21, 2008 2:18:29 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hello Steve,

I read in your post that it worked correctly with IU 4.5 DUAL. Please make sure that it does now. If it works, please give me full version number of working Java Uploader, it should be 2.5.x.x.

I don’t know whether Alpha Five supports http-only cookies, but you can try to find out. This is significant difference between ActiveX and Java Uploaders and could be the cause of your issue.

Also you can try to change PostFormat:
Code:
...
iu.addParam("PostFormat", "Rfc1867");
...

This feature is available in 5.0.40.0, maybe it will help.
Best regards,
Eugene Kosmin
The Aurigma Development Team
stevewood  
#4 Posted : Thursday, February 21, 2008 3:15:39 PM(UTC)
stevewood

Rank: Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 21

I burned the ship and don't have 4.5 Dual around anymore. I've been working with the Alpha Five web app developer and emailed about the http-only. Adding the "PostFormat" param didn't change anything.

I do not know if the following has any significance. But I used an HTTP debugger to capture the POST request by ActiveX and Java. They look quite different.

Below are two screenshots from the debugger:

Image 1) Rows 1-3 reprent the successful upload by ActiveX. Row 4 represents the failed attempt using the Java applet. All other factors are the same (same image, browser, etc.). The lower left shows the actual request.

Image 2) Shows the contents of the failed Java request. Note the second stat column for Request Content Size. It's 83000 bytes for Java, zero for ActiveX. I don't know if that is significant, but it sure is different!

http://photo.alphatogohost.com/alpha1.gif
http://photo.alphatogohost.com/alpha2.gif

By the way, the title for my post is inaccurate. It's not Firefox at all, it's the Java version of the uploader. I tested this by forcing Java to be use in IE7.
Eugene Kosmin  
#5 Posted : Thursday, February 21, 2008 3:30:48 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Here is a link to IU 4.6, please try it…

Legacy Downloads

Best regards,
Eugene Kosmin
The Aurigma Development Team
stevewood  
#6 Posted : Thursday, February 21, 2008 4:13:02 PM(UTC)
stevewood

Rank: Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 21

Done - fails also on 4.6 DUAL. I copied the console below.

So, you know how developers are so sure something "worked on a previous version"... Either way, it does not with my current test on version 2.6.30.0.

But I notice something in the console dump below.

network: Connecting socket://photo.alphatogohost.com:80 with proxy=DIRECT

And then right after that, the 500 page error. The Alpha Five server is NOT running on port 80, its on port 81 redirected using Apache which is listening on Port 80.

The URL photo.alphatogohost.com:80 does bring up a valid page, but the page is being served by Alpha on port 81. My upload code page is also served on port 81 which is generating the 500 error.

Is the Java POST method not able to make that transition where the ActiveX method does?

Code:
-----

Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\steve
network: Loading user-defined proxy configuration ...
network: Done.
network: Loading proxy configuration from Internet Explorer ...
network: Done.
network: Loading direct proxy configuration ...
network: Done.
network: Proxy Configuration: No proxy

basic: Cache is enabled
basic: Location: C:\Documents and Settings\steve\Application Data\Sun\Java\Deployment\cache\javapi\v1.0
basic: Maximum size: unlimited
basic: Compression level: 0

----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

basic: Registered modality listener
liveconnect: Invoking JS method: document
liveconnect: Invoking JS method: URL
network: Version checking for ImageUploader2.jar, specified version is 2.6.30.0
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@29428e, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@1193779
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: httpCompression = true
network: Connecting http://photo.alphatogohost.com/ImageUploader2.jar with proxy=DIRECT
network: Connecting http://photo.alphatogohost.com/ImageUploader2.jar with cookie "A5W_Sess_ID=5d5ade96965a4daba236db961d87ceda; A5W_LoadBalance=C33572-44254|82|Fri, 22 Feb 2008 08:00:16 GMT; a5ws_86ddab0a098f4061bdd0a18f738eaecd"
network: Server http://photo.alphatogohost.com/ImageUploader2.jar requesting to set-cookie with "A5W_Sess_ID=5d5ade96965a4daba236db961d87ceda; expires=Sun, 23-Mar-2008 07:45:18 GMT; path=/"
network: Server http://photo.alphatogohost.com/ImageUploader2.jar requesting to set-cookie with "A5W_LoadBalance=C33572-44254|82|Fri, 22 Feb 2008 08:00:18 GMT; expires=Fri, 22-Feb-2008 08:01:18 GMT; path=/"
basic: Downloading http://photo.alphatogohost.com/ImageUploader2.jar to cache
basic: encoding = null for http://photo.alphatogohost.com/ImageUploader2.jar
basic: Cached file name: ImageUploader2.jar-55373f75-41e8032b.zip
security: Loading Root CA certificates from C:\PROGRA~1\Java\JRE15~1.0_0\lib\security\cacerts
security: Loaded Root CA certificates from C:\PROGRA~1\Java\JRE15~1.0_0\lib\security\cacerts
security: Loading Deployment certificates from C:\Documents and Settings\steve\Application Data\Sun\Java\Deployment\security\trusted.certs
security: Loaded Deployment certificates from C:\Documents and Settings\steve\Application Data\Sun\Java\Deployment\security\trusted.certs
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer ROOT certificate store
security: Loaded certificates from Internet Explorer ROOT certificate store
security: Loading certificates from Internet Explorer TrustedPublisher certificate store
security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
security: Checking if certificate is in Deployment permanent certificate store
Aurigma ImageUploader version: 2.6.30.0
Current document URL: http://photo.alphatogohost.com/photoupload.a5w
Reading cookies
liveconnect: Invoking JS method: execScript
liveconnect: Invoking JS method: evalIntermediateValueToReturn
Cookies: A5W_Sess_ID=5d5ade96965a4daba236db961d87ceda; A5W_LoadBalance=C33572-44254|82|Fri, 22 Feb 2008 08:00:18 GMT; a5ws_86ddab0a098f4061bdd0a18f738eaecd
Reading referer
Referer: http://photo.alphatogohost.com/photoupload.a5w
liveconnect: Invoking JS method: ImageUploader_BeforeUpload
liveconnect: Invoking method: public void com.aurigma.imageuploader.ImageUploader.UploadThumbnailAdd(java.lang.String,java.lang.String,java.lang.String)
liveconnect: Needs conversion: java.lang.String --> java.lang.String
liveconnect: Needs conversion: java.lang.Integer --> java.lang.String
liveconnect: Needs conversion: java.lang.Integer --> java.lang.String
liveconnect: Invoking method: public void com.aurigma.imageuploader.ImageUploader.setUploadThumbnailJpegQuality(java.lang.String,java.lang.String)
liveconnect: Needs conversion: java.lang.Integer --> java.lang.String
liveconnect: Needs conversion: java.lang.Integer --> java.lang.String
com.aurigma.imageuploader.errorhandling.h: Can not access to non-existent element: 4
	at com.aurigma.imageuploader.propertymanagement.uploadthumbnail.c.a(Unknown Source)
	at com.aurigma.imageuploader.propertymanagement.uploadthumbnail.c.b(Unknown Source)
	at com.aurigma.imageuploader.propertymanagement.uploadthumbnail.c.f(Unknown Source)
	at com.aurigma.imageuploader.propertymanagement.uploadthumbnail.c.f(Unknown Source)
	at com.aurigma.imageuploader.ImageUploader.setUploadThumbnailJpegQuality(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
	at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
	at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
	at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
	at sun.plugin.com.DispatchClient.nativeInvoke(Native Method)
	at sun.plugin.com.DispatchClient.invoke(Unknown Source)
	at sun.plugin.javascript.ocx.JSObject.invoke(Unknown Source)
	at sun.plugin.javascript.ocx.JSObject.call(Unknown Source)
	at com.aurigma.imageuploader.gw.c(Unknown Source)
	at com.aurigma.imageuploader.fc.ay(Unknown Source)
	at com.aurigma.imageuploader.iy.o(Unknown Source)
	at com.aurigma.imageuploader.b.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Reading additional form content
Uploading to http://photo.alphatogohost.com/upload.a5w?a5w_sess_id=5d5ade96965a4daba236db961d87ceda
Setting HTTP params: Host=photo.alphatogohost.com
basic: Modality pushed
basic: Modality popped
Cookies:<A5W_Sess_ID=5d5ade96965a4daba236db961d87ceda; A5W_LoadBalance=C33572-44254|82|Fri, 22 Feb 2008 08:00:18 GMT; a5ws_86ddab0a098f4061bdd0a18f738eaecd>
Starting upload
network: Connecting socket://photo.alphatogohost.com:80 with proxy=DIRECT
Status =[500]
UploadException occured
basic: Modality pushed
basic: Modality popped
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[4]
[ErrorPage]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>500 Internal Server Error</h1>
"<b>Script Error</b><br />Error:Script: /upload.a5w line:18<br />		tbl.Filename 	= SourceFile_1.filename<br />Not found
<br />SourceFile_1 not found."
</body></html><!-- ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** -->
[EndOfErrorPage]

Edited by user Tuesday, February 26, 2008 12:04:41 PM(UTC)  | Reason: Not specified

stevewood  
#7 Posted : Thursday, February 21, 2008 4:15:49 PM(UTC)
stevewood

Rank: Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 21

I retyped my message as it seemed to be truncated in the first post.

---

Done - fails also on 4.6 DUAL. I copied the console below.

So, you know how developers are so sure something "worked on a previous version"... Either way, it does not with my current test on version 2.6.30.0.

But I notice something in the console dump below.

network: Connecting socket://photo.alphatogohost.com:80 with proxy=DIRECT

And then right after that, the 500 page error. The Alpha Five server is NOT running on port 80, its on port 81 redirected using Apache which is listening on Port 80.

The URL photo.alphatogohost.com:80 does bring up a valid page, but the page is being served by Alpha on port 81. My upload code page is also served on port 81 which is generating the 500 error.

Is the Java POST method not able to make that transition where the ActiveX method does?
Eugene Kosmin  
#8 Posted : Thursday, February 21, 2008 5:00:54 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Possibly it makes sense to set action URL with predefined port, i.e.

Code:
iu.addParam("Action","http://photo.alphatogohost.com:81/upload.a5w");

Now I’m trying to reproduce you configuration. I hope I’ll be able to give you more detailed info later.
Best regards,
Eugene Kosmin
The Aurigma Development Team
stevewood  
#9 Posted : Friday, February 22, 2008 2:22:17 AM(UTC)
stevewood

Rank: Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 21

I've confirmed that the port has nothing to do with the problem. I ensured everything was taking place on port 80 and had same results.

I think the answer is going to come out of the Alpha Five engineers. Here is a quote from the lead engineer:

"I have confirmed that the POST from the Java client fails to parse in our server. I'm still looking through to see where/why."

Eugene Kosmin  
#10 Posted : Monday, February 25, 2008 1:40:48 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Ok,

Please let us know if you will find any issues in IU upload POST format.
Best regards,
Eugene Kosmin
The Aurigma Development Team
stevewood  
#11 Posted : Monday, February 25, 2008 1:56:42 PM(UTC)
stevewood

Rank: Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 21

Thanks, I will make sure I update here when I have a resolution.

To help, tell me if you happen to know of any substantive differences between the POST from your Java client versus the ActiveX client. What is happening is the Alpha web server is not parsing the POST results properly. It parses the ActiveX POST perfectly. I can see* all of the variables from both clients; just not parse them from the Java client. The difference is probably not so much "your client applet" as it is just the nature of Java versus ActiveX.

* By see I mean I can see the list of variables in the Request.
stevewood  
#12 Posted : Monday, February 25, 2008 1:59:33 PM(UTC)
stevewood

Rank: Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 21

I think my posts are hard to read (no word wrap) because I did not properly encode the HTML from previous posts. If you can fix that...?
Fedor  
#13 Posted : Tuesday, February 26, 2008 12:05:12 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
I have fixed it. Just use [code] tag. :)
Best regards,
Fedor Skvortsov
stevewood  
#14 Posted : Wednesday, February 27, 2008 2:20:18 AM(UTC)
stevewood

Rank: Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 21

Code:
It looks like the cause might be that our web server is looking for a boundary string that starts with one or more dashes. I don't know if that is a rule, but it appears to be the norm.

Your boundary for ActiveX looks like this:

Content-Type: multipart/form-data; boundary=---------------------417b

While the boundary for your Java applet looks like this:

Content-Type: multipart/form-data; boundary=UsA6QE4mg1han0mxGMpsYSeNFL5_53ZnJkQz5I
Eugene Kosmin  
#15 Posted : Wednesday, February 27, 2008 12:41:58 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hello Steve,

I’ve reproduced your configuration with my apache. I tried to upload to IIS:8080 through apache:80. The symptoms were the same: successful upload with ActiveX and server error with Java.

It seems like an issue or limitation in Java http Uploader, as I think this behavior does not depend on Alpha Five server.

Now we investigating this problem, possibly there will be a fix for Java Uploader.

I’ll inform you about results.
Best regards,
Eugene Kosmin
The Aurigma Development Team
stevewood  
#16 Posted : Wednesday, February 27, 2008 11:34:57 PM(UTC)
stevewood

Rank: Member

Groups: Member
Joined: 12/17/2007(UTC)
Posts: 21

I'll take a closer look at the MIME spec.
It may be that I've never run into this type of boundary string because it is not
valid. When I quickly reviewed it before, I only noticed that the boundary string
must be a character string that does not appear in the data itself, and IU seem to
satisfy that condition, but there may have been others that I did not see.

Can you tell me more about your test configuration? It sounds like you are using
Apache as a proxy to IIS on port 8080, but I'm curious about how you are doing
that.
Eugene Kosmin  
#17 Posted : Thursday, February 28, 2008 3:16:43 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Steve,

It’s strange, as soon as we started debugging it worked fine. Maybe I’ve changed something in my configuration, I don’t remember what exactly.

Now it works fine for both Java and ActiveX versions.

Yes I configured proxy. Here is a code snippet of apache configuration file:

Code:
ProxyPass /TestUpload/ http://localhost:8080/ExtractFiles.aspx

I’ll place into attachment my entire apache httpd.conf file with upload related scripts.
File Attachment(s):
upload_config.zip (4kb) downloaded 9 time(s).
Best regards,
Eugene Kosmin
The Aurigma Development Team
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.