question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PortalAlias Settings Not Correctly Observed

See original GitHub issue

Description of bug

We just experienced this on the dnncommunity.org website. Basically, we installed under one URL, upgraded a couple of times, then added a new URL as primary and the original URL was still being used. From what I could tell, the first URL in the database was being used, despite a different domain name being specified as IsPrimary and Site Alias Mapping Mode being set to Redirect.

IMPORTANT: If this is indeed a bug, it could have massive impacts on the ecosystem. Websites may be incorrectly serving out the wrong domain names and the website owners may not have any clue that it’s happening.

Steps to reproduce

List the steps to reproduce the behavior:

  1. Install DNN 9.1.1 and use a specific URL (e.g., domain1.org, and www.domain1.org)
  2. Upgrade to DNN 9.2.2
  3. Upgrade to DNN 9.3.2
  4. Add another domain, and set it to be the primary site alias now (e.g., domain2.org (primary), and www.domain2.org)
  5. View the website using the new URL/portal alias

Current result

Originally, it was redirecting to the correct primary URL, but a lot of time, it doesn’t.

Expected result

The primary URL should be used when the setting exists and a HTTP 301 redirect should be performed is Redirect is the mapping mode.

Additional context

We managed to fix this by deleting the original primary alias (that was no longer primary) and adding it to the end.

Screenshots

image

Affected version

  • 9.3.2
  • 9.3.1
  • 9.2.2
  • 9.2.1
  • 9.2
  • 9.1.1
  • 9.1
  • 9.0

Affected browser

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer
  • Edge

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:32 (28 by maintainers)

github_iconTop GitHub Comments

1reaction
skamphuiscommented, Jun 3, 2020

Thanks. I’ll be trying to do some more testing and submit a pull request this friday.

1reaction
Timo-Breumelhofcommented, Mar 23, 2020

Many hosting control panels have a built-in feature to redirect www versions, could this be the case?

No, this is on a pure windows server, no CP involved. I “fixed” it by removing the portalalias and re-adding it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Portal Alias Error - DNN Creative Magazine for DotNetNuke
Hi, I've setup a DNN Site using DNN Community 5.06.00. ... address so DNS settings are not an issue - Portal alias settings...
Read more >
Portal alias not redirecting after upgrade to 9.9.1
On my PortalAlias table in the db, the HTTPALias is 'abc.winc.com.au/addis'. So I believe it is setup correctly. I have checked IIS server...
Read more >
Empty Portals and PortalAlias table after installing DNN on ...
I was having the same problem and found a solution. Login as Host, and add a Portal Alias under "Admin > Site Setting";...
Read more >
DNN Forums - ERR_TOO_MANY_REDIRECTS
This issue normally occurs because of something configuration-related. Double-check the existence and spelling of everything in the database ...
Read more >
Portal System Connectivity Test Error
When doing the test, got the following error: Could not retrieve default alias. Make sure the system object has at least one alias....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found