Alternate ports are not honored in breadcrumbs

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/28/2011 10:54:08 AM
Gravatar
Total Posts 9

Alternate ports are not honored in breadcrumbs

Hi, I just reported an issue with alternate ports not being honored in the EventDetails.aspx page.  I give lots of detail there about the issue.  I just want to report the same issue with breadcrumbs:

Home > Events

When I click on my Events page the URL contains my port :50012, but when I click on "Home" in the breadcrumbs it drops the port.   Note that when I hit "Home" up in the top (small font) menu it works fine.

Keith

5/28/2011 10:58:41 AM
Gravatar
Total Posts 9

Re: Alternate ports are not honored in breadcrumbs

Just wanted to add O/S, etc:

Windows Server 2008 R2 Standard SP1; SQL Server 2008 R2 SP2; mojoPortal latest from source code download and build

 

5/29/2011 12:10:25 PM
Gravatar
Total Posts 18439

Re: Alternate ports are not honored in breadcrumbs

When I test it on my machine using the Visual Studio web server which launches the site on a random port, it works fine, the port is always included in the url.

Are you proxying it to another port on the web server or really running and accessing it on that port?

Might I ask why use an non standard port in the first place? Often I see people doing that because they have another site running on port 80 on the same machine and ip address, but there are better alternatives such as using host headers to run multiple sites on the same ip address and using standard ports keeps everything more clean.

Best,

Joe

5/31/2011 8:25:52 AM
Gravatar
Total Posts 9

Re: Alternate ports are not honored in breadcrumbs

Hi Joe,

Back from Memorial Day festivities, sorry slow on the reply.  The alternate port is a client requirement.  A simple test is to deploy a test web site to an alternate port.  Some pages honor the alternate ports, some do not.  I understand what you are saying about VS web server.

We have to deal with this issue with hand-coded web sites frequently. 

Keith

5/31/2011 8:35:14 AM
Gravatar
Total Posts 18439

Re: Alternate ports are not honored in breadcrumbs

Running in VS Web Server on an alternate port is also testing it on an alternate port and it works correctly.

Just to be sure it was not a difference between the VS Web server and IIS, I tested it just now using IIS Express which also launches on an alternate port and it worked correctly for me there to.

I wonder if you really have the latest code, where did you get it from?

5/31/2011 8:48:30 AM
Gravatar
Total Posts 9

Re: Alternate ports are not honored in breadcrumbs

Here is where we got the code:

http://www.mojoportal.com/download

We had difficulty running the installer so we downloaded and deployed from a Dev PC. It probably makes sense to lobby the customer to use standard ports.  When we are on the clean side of the firewall everything works well.   When we are outside coming in the port gets dropped periodically in mojoPortal, depending on the URL.  I will talk to the client about just going standard.

Really appreciate your help so far.

Keith

5/31/2011 9:50:15 AM
Gravatar
Total Posts 18439

Re: Alternate ports are not honored in breadcrumbs

Hi Keith,

It sounds to me like your IIS site is not really running on port 50012, but instead your firewall acts as a proxy server and routes requests from port 50012 to an internal machine with a site running on port 80. Maybe the current site runs on port 80 so you are trying to run the mojoportal site on a different port from the firewall to keep the official site working while you work on the new mojoportal version of the site. Just guessing here.

This would work as long as all the internal links are relative but in a few places we use fully rooted urls starting with http for internal links and since the web server is really running on port 80 it does not correctly build links with port 50012 because from its perspective it runs on port 80 and it doesn't know anything about the proxy server.

To me the best solution would be to setup an alternate host name like dev.yourdomain.com and point it to your firewall ip address and route both the official domain and the dev host name to the same internal IIS server with 2 sites configured on port 80 and using the same internal ip address but differentiated by the host headers so that the requests go to the correct site. 

Alternatively you could configure your dev site to actually run on port 50012 so that it is not mapping across ports from the firewall/proxy server and the internal links will be built correctly with the port 50012

Hope that helps,

Joe

5/31/2011 1:02:58 PM
Gravatar
Total Posts 9

Re: Alternate ports are not honored in breadcrumbs

Joe, that is excellent support, thank you.  I agree with you fully here: <<<but in a few places we use fully rooted urls starting with http for internal links and since the web server is really running on port 80 it does not correctly build links with port 50012>>>.   It's the fully rooted URLs that are getting us.  I had my guys code around that for one specific customer.  Every page URL was built with the same helper class that made sure all URLs were built the same. 

We will definitely put one of your suggestions to work.

Thank you very much.

Keith

1/23/2012 1:04:52 PM
Gravatar
Total Posts 8

Re: Alternate ports are not honored in breadcrumbs

I'd just like to add my own comments to this to anyone else experiencing similar issues.

I've just deployed a site running mojoportal where a cisco router is in front of the wan connection.

Port forwarding for said router was set up so that inbound traffic on port 8080 of the router was redirected to port 80 on the actual server.

For MOST of the instalation this was not an issue.  Pages & links in general seemed to work fine.

However, the blog and forum modules in-particular kept on not putting the '8080' part in the URL.

The solution was to alter the router config so 8080 went to 8080, then tell the mojo portal app to listen on 8080 in IIS7.

I've also kept it listening on the standard port of 80 as the site is also accessed from internal clients.

You must sign in to post in the forums. This thread is closed to new posts.