• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2120
  • Last Modified:

Domino Web Access Problem: I cannot download attachments with spaces in the file name

Here is an overview of my system configuration:

- Domino 6.5.3 is installed on an Intel box running Server 2003.  This machine is on our "inside" and is not accessible from the internet.
- IIS 6.0's SMTP server is running on a seperate machine in our DMZ.  It is accessible from the internet.
- Domino is configured to send and receive mail through the IIS machine.

- The IIS machine is also configured as a reverse proxy for Domino Web Access.  This was accomplished by using the WebSphere plugin that shipped with Domino and the Web Access Redirect database. (iwaredir.nsf)

Web Access works flawlessly until you try to download an attachment that has a space in the file name.  In Firefox, I this error message:
"Http Status Code: 400
Reason: Unknown or unsupported protocol version."  Also, the URL gets reformated.  The spaces in the file name have been replaced with "%20."  Manually editing the URL to the proper file name does nothing.  It just replaces the spaces with %20.

Internet Explorer just declares that it is unable to open the file.

I can rename the attachment inside of the Notes client and remove the spaces.  This fixes the problem but it is obviously not the solution!  

I have spent several hours on the phone with IBM and been shuffled to different departments.  The end result is always a followup e-mail with a link to Websphere installation / configuration instructions (which I have read and followed).  They also choose to blame IIS.  Right now, I am out of ideas.

I appreciate any help that you folks can give.


0
pervisanathema
Asked:
pervisanathema
  • 6
  • 4
  • 3
  • +1
1 Solution
 
Bozzie4Commented:
It's actually normal that spaces in the filename are translated to %20 - that's how it should be.   The rest of your problem is probably a bit more difficult  :-)
0
 
p_parthaCommented:
If you construct the URL for th eattachments , then better do a @replace of all spaces with +. Just create a computed text and put this formula

@If(!@Attachments; @Return("There are no attachments on this document."); "");
@Implode("<img src=\"/icons/vwicn005.gif\"><a href=\"" + @Text(@DocumentUniqueID) + "/$file/" + @replace(@AttachmentNames;" ";"+") + "\">"+@AttachmentNames + "</a>" + @Text(@Round(@AttachmentLengths/1024)) + " (Kbytes)";@NewLine)
0
 
pervisanathemaAuthor Commented:
I do not understand how to construct the URL for the attachments.  Could you expand on that?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Sjef BosmanGroupware ConsultantCommented:
Hi pervisanathema,

> I can rename the attachment inside of the Notes client and remove the
> spaces.  This fixes the problem but it is obviously not the solution!  

But it IS the solution! Add a check in the PostSave (not QuerySave, for it is RichText) on the names of attachments. If there are spaces in it, convert the name of the atttachment using %20 instead of the space.

Cheers!
   Sjef
0
 
pervisanathemaAuthor Commented:
I should have mentioned that everything works great if I do not use the reverse proxy.  That leads me to believe it is a websphere or IIS issue.  
0
 
Sjef BosmanGroupware ConsultantCommented:
Do you have a log of the URL's (e.g. domlog.nsf)? If you do, check the differences in the URL's in that log.
0
 
pervisanathemaAuthor Commented:
It looks like the GET request has spaces in the file name instead of the %20.

Date:      05/03/2005 08:17:09 AM
User Address:      192.168.1.30
Authenticated User:
Status:      400
Content Length:      161
Content Type:      text/html
Request:      GET /mail/*.nsf/0/A2EDC4CE224D25B185256FF2005175C2/$File/Dell Test ~1.zip?OpenElement HTTP/1.1
Browser Used:      Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Error:      
Referring URL:      https://mail.*.*/mail/ablackmo.nsf/($Inbox)/A2EDC4CE224D25B185256FF2005175C2/?OpenDocument&PresetFields=s_ViewName;(%24Inbox),s_FromMail;1,s_SortBy;4,s_UnreadOnly;0
Server Address:
Elapse Time (ms):      0
Translated URI:      
Cookie:      Shimmer=ui:I&SI_TLM:20050503T050042%2C16Z&V_TLM:20050503T050042%2C16Z&MOFolder:(%24Inbox)&MOFolderLabel:Inbox&PSLP:1&DNIDate:20050503&CalIDate:2005050
0
 
Bozzie4Commented:
The solution Partha proposes would help you in normal applications.  In iNotes/DWA, this won't work (too difficult to implement).

What your reverse proxy should do, is translate the url correctly : change spaces to %20

cheers,

Tom
0
 
Sjef BosmanGroupware ConsultantCommented:
They are rare, these "normal" applications... ;-)
0
 
pervisanathemaAuthor Commented:
" translate the url correctly : change spaces to %20"

Any pointers on implementing that?
0
 
Bozzie4Commented:
Yeah, Sjef :-)  But you know what I mean, an application over which you have control as a designer, I mean.

To do the translation of the spaces, I would think a reverse proxy would do that "automatically".  But you may have to look into subjects like url rewriting -> see the help of your reverse proxy...
But maybe that is not the problem - are you use Session Authentication or Simple authentication on your Domino server ?

cheers,

Tom
0
 
pervisanathemaAuthor Commented:
I am not using session authentication.  It is set to "disabled."    Internet authentication is set to more name variations with lower security.
0
 
pervisanathemaAuthor Commented:
I resolved my issue.  The problem was iisWASPlugin_http.dll   I was using version 5.0.0.0

I installed version 5.0.2.10 and the issue was resolved.

Thanks to sjef_bosman.  I did as you suggested and started looking through my log files.  That is how I traced the problem to the WebSphere plugin.
0
 
Sjef BosmanGroupware ConsultantCommented:
Wll done! And thanks :)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 4
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now