Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Redirect URL

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> Outlook Web Access >> Redirect URL Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
Limited time MSExchange.org offer! -- 1.Sep.2008 1:00:00 PM
TechGenix and SolarWinds have partnered to provide free copies of SolarWinds Exchange Monitor to all visitors who join the MSExchange.org Forums. SolarWinds Exchange Monitor is a handy desktop dashboard that continuously monitors Microsoft Exchange to deliver real-time insight into Exchange services, mail queue sizes, and host server health. Learn more about Exchange Monitor and the free offer!
Redirect URL - 10.Jun.2008 5:08:06 PM   
tsx

 

Posts: 11
Joined: 10.Jun.2008
Status: offline
Hello,

I'm sorry if this has been asked earlier. I've a URL that's in Exchange 2003 format.

https://myserver/exchange/administrator/Inbox/exchange2007testemail.EML

I'm getting it using WebDAV. When I try the URL on my Exchange 2007 server, Exchange redirects and fails. The server generates following URL.

https://myserver/owag%8%F9administrator@exchange2007.development.local/?id=<THE_ID>&t=IPM.Note

The id generated is correct and if I modify the URL to

https://myserver/owa/administrator@exchange2007.development.local/?id=<THE_ID>&t=IPM.Note&ae=item

things work as expected.

Is there a way to fix this so the redirect works correctly?

Any help would be appreciated.

-t
Post #: 1
RE: Redirect URL - 11.Jun.2008 8:44:13 AM   
leederbyshire

 

Posts: 968
Joined: 4.Jan.2006
Status: offline
How are you using the URL?  If you type it into your browser's address bar, then the browser will send a GET request to the server, which will always cause OWA 2007 to redirect to /owa .  The only time it will not redirect is if you send a proper WebDAV verb such as PROPFIND, etc.

_____________________________

Lee.
___________________________________

Outlook Web Access for PDA and WAP:
www.leederbyshire.com
___________________________________

(in reply to tsx)
Post #: 2
RE: Redirect URL - 11.Jun.2008 10:07:11 AM   
tsx

 

Posts: 11
Joined: 10.Jun.2008
Status: offline
You are right. I am using URL as a link on a web page.

I was wondering if there was a way to modify the URL and make it redirect to the correct page as it seems that currently isn't happening.

The only thing I can't get is the ID that OWA URL uses, I've been trying to create one using the method described here

http://www.infinitec.de/post/2007/03/Constructing-OWA-2007-item-ids-from-WebDAV-items.aspx

but haven't been successful so far. I'm using Java and I'm new to WebDAV.

(in reply to tsx)
Post #: 3
RE: Redirect URL - 11.Jun.2008 10:39:11 AM   
leederbyshire

 

Posts: 968
Joined: 4.Jan.2006
Status: offline
Where is the changed URL coming from?  Are you saying that when you type the /exchange/ URL into your browser, OWA itself is redirecting you to the /owa/ URL?  Or do you have some sort of application doing it for you?

_____________________________

Lee.
___________________________________

Outlook Web Access for PDA and WAP:
www.leederbyshire.com
___________________________________

(in reply to tsx)
Post #: 4
RE: Redirect URL - 11.Jun.2008 11:25:21 AM   
tsx

 

Posts: 11
Joined: 10.Jun.2008
Status: offline
Yes, when I type the /exchange URL in the browser OWA is redirecting me to /owa by itself.

(in reply to leederbyshire)
Post #: 5
RE: Redirect URL - 11.Jun.2008 11:35:24 AM   
leederbyshire

 

Posts: 968
Joined: 4.Jan.2006
Status: offline
Hm.  I've never seen it produce a redirect URL with anything after the /owa/ .  I've no idea where the %8%F9 (and everything after it) comes from.  I assume that if you go to http://server/exchange , you simply get redirected to /owa/ ?

(in reply to tsx)
Post #: 6
RE: Redirect URL - 11.Jun.2008 2:41:28 PM   
tsx

 

Posts: 11
Joined: 10.Jun.2008
Status: offline
Yeah, I tried https://server/exchange and it's redirecting to https://server/owag1%85%F9 automatically.

Is there some setting that might be doing this? I'm testing it on Firefox 3 RC2. I can't even open https://server/exchange on IE7.

(in reply to leederbyshire)
Post #: 7
RE: Redirect URL - 11.Jun.2008 2:54:34 PM   
leederbyshire

 

Posts: 968
Joined: 4.Jan.2006
Status: offline
That's clearly wrong - although I've no idea where those extra characters are coming from.  Have a look at the properties of the OWA Virtual Directory in the Exchange Management Console, and see if a value has been configured for its FQDN.  There may be something strange in there.

(in reply to tsx)
Post #: 8
RE: Redirect URL - 12.Jun.2008 10:02:44 AM   
tsx

 

Posts: 11
Joined: 10.Jun.2008
Status: offline
Thanks, there was indeed some configuration issue that our System Administrator was able to fix. The URL no longer have "g1%85%F9"and for a https://myserver/exchange it now redirects properly to https://myserver/owa.

My original issue still remains though, a URL that points to a message still isn't redirecting properly.

https://myserver/exchange/administrator/Inbox/exchange2007testemail.EML

Redirects to

https://myserver/owa/administrator@exchange2007.development.local/?id=<THE_ID>&t=IPM.Note

Is there way specify it to redirect it to

https://myserver/owa/administrator@exchange2007.development.local/?id=<THE_ID>&t=IPM.Note&ae=Item

Once again, I really appreciate all your help.

(in reply to leederbyshire)
Post #: 9
RE: Redirect URL - 13.Jun.2008 8:40:29 AM   
leederbyshire

 

Posts: 968
Joined: 4.Jan.2006
Status: offline
To be honest, I wouldn't even expect it to have supplied anything like a complete URL, let alone one that almost works.  The only thing that is missing is the last parameter &ae=item ?

(in reply to tsx)
Post #: 10
RE: Redirect URL - 13.Jun.2008 2:35:12 PM   
tsx

 

Posts: 11
Joined: 10.Jun.2008
Status: offline
Yes. If I add that manually, everything works.

(in reply to leederbyshire)
Post #: 11
RE: Redirect URL - 13.Jun.2008 4:20:40 PM   
leederbyshire

 

Posts: 968
Joined: 4.Jan.2006
Status: offline
And what do you see when it's missing?  Does it produce some kind of error message?

(in reply to tsx)
Post #: 12
RE: Redirect URL - 16.Jun.2008 1:43:03 PM   
tsx

 

Posts: 11
Joined: 10.Jun.2008
Status: offline
Here is the error message I get


Request
Url: https://exchange2007:443/owa/forms/basic/BasicMessageView.aspx?id=RgAAAAAH0T7pVYypSp4EMOpf4q/aBwBI46Z0ZyabTJ0PxnU1pTBcAAAAABRlAABI46Z0ZyabTJ0PxnU1pTBcAC%2BglKFUAAAA&t=IPM.Note
User host address: 192.168.0.103
User: Administrator
EX Address: /o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Administrator
SMTP Address: Administrator@exchange2007.development.local
OWA version: 8.0.685.24
Mailbox server: exchange2007.exchange2007.development.local

Exception
Exception type: System.ArgumentException
Exception message: The ID is not a folder ID. ID = RgAAAAAH0T7pVYypSp4EMOpf4q/aBwBI46Z0ZyabTJ0PxnU1pTBcAAAAABRlAABI46Z0ZyabTJ0PxnU1pTBcAC+glKFUAAAA

Call stack
Microsoft.Exchange.Data.Storage.Folder.InternalBind[T](StoreSessionstoreSession, StoreId folderId, PropertyDefinition[] propsToReturn) Microsoft.Exchange.Data.Storage.Folder.Bind(StoreSession session, StoreId folderId, PropertyDefinition[] propsToReturn) Microsoft.Exchange.Clients.Owa.Basic.ListViewPage.OnLoad(EventArgs e) Microsoft.Exchange.Clients.Owa.Basic.MessageView.OnLoad(EventArgs e) System.Web.UI.Control.LoadRecursive() System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

< Message edited by tsx -- 16.Jun.2008 1:45:47 PM >

(in reply to leederbyshire)
Post #: 13
RE: Redirect URL - 17.Jun.2008 8:20:22 AM   
leederbyshire

 

Posts: 968
Joined: 4.Jan.2006
Status: offline
Where do you get the document name exchange2007testemail.EML from?  Is that just a guess that if the subject is simple, then the URL should be predictable?  Or is there an application providing it for you?

(in reply to tsx)
Post #: 14
RE: Redirect URL - 17.Jun.2008 9:44:43 AM   
tsx

 

Posts: 11
Joined: 10.Jun.2008
Status: offline
I'm getting the entire URL using WebDAV. A similar URL works on Exchange 2003. The actual URL might also contain white spaces if there are any.

https://myserver/exchange/administrator/Inbox/exchange 2007 test email.EML

(in reply to leederbyshire)
Post #: 15
RE: Redirect URL - 17.Jun.2008 9:50:24 AM   
leederbyshire

 

Posts: 968
Joined: 4.Jan.2006
Status: offline
So, you have an application that displays a WebDAV URL.  You then copy/paste the URL into your browser.  You then get redirected to /owa/ , but the display fails until you add an extra parameter to the URL and try again.  Is that something like how it goes?

(in reply to tsx)
Post #: 16
RE: Redirect URL - 17.Jun.2008 9:56:55 AM   
tsx

 

Posts: 11
Joined: 10.Jun.2008
Status: offline
You understand the problem.

I have an application that looks up for the URL of an e-mail using WebDAV. When I use that URL on my Exchange 2007 server I get redirected to /owa/, but the URL doesn't work without an extra parameter.

(in reply to leederbyshire)
Post #: 17
RE: Redirect URL - 17.Jun.2008 10:03:21 AM   
leederbyshire

 

Posts: 968
Joined: 4.Jan.2006
Status: offline
Are you able to change the application?  It might be possible to get it to produce the correct /owa/ URL in the first place.

(in reply to tsx)
Post #: 18
RE: Redirect URL - 17.Jun.2008 10:10:39 AM   
tsx

 

Posts: 11
Joined: 10.Jun.2008
Status: offline
I can change the application. That was my first approach. I've been trying to, but haven't been able to generate the ID that's on OWA URL. Exchange generates that ID only on redirect.

(in reply to leederbyshire)
Post #: 19
RE: Redirect URL - 17.Jun.2008 10:17:44 AM   
leederbyshire

 

Posts: 968
Joined: 4.Jan.2006
Status: offline
You could try getting the application to send its own GET request to the URL.  The requesting object (WinHTTPRequest ?) will probably be redirected to the /owa/ URL.  You can inspect the objects new location, split the string up to get the ID, and then construct a URL that should work okay.

Or you could try this:
http://www.infinitec.de/post/2007/03/Constructing-OWA-2007-item-ids-from-WebDAV-items.aspx

(in reply to tsx)
Post #: 20

Page:   [1] 2   next >   >> << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> Outlook Web Access >> Redirect URL Page: [1] 2   next >   >>
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts