Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dennis Milandt 190 posts 517 karma points
    Jan 04, 2010 @ 11:48
    Dennis Milandt
    0

    Possible bug? - localLink replace between websites does not work

    Hello everyone,

    Please help me reproduce this issue, which I am having at a customer and are able to reproduce on a new install.

    I am running my site on IIS 7.5. The site Application Pool have Managed Pipeline Mode set to Classic.

    Please follow these steps:

    1. Unzip umbraco_403.zip to a directory
    2. Give NETWORK SERVICES full access to that directory
    3. Create a new IIS website for that folder with the hostnames site1.local and site2.local
    4. Add site1.local and site2.local to your hosts file pointing to 127.0.0.1
    5. Create a new empty SQL Server Database
    6. Add the connectionstring to umbracoDbDSN in web.config
    7. Edit the config/umbracoSettings.config and set useDomainPrefixes to "true"
    8. Open your website at http://site1.local and run the install wizard
    9. In the umbraco settings section, create two document types, "home" and "page" and create matching templates
    10. For the "home" doctype, add a bodyText property of the type RichText Editor and allow "page" to be created as a child under this doctype
    11. for the "page" doctype, add a bodyText property of the type RichText Editor and allow "page" to be created as a child under this doctype
    12. In the "home" and the "page" templates, add an umbraco:item for the field bodyText
    13. Create the following page structure:
      Site1 (doctype: home, hostname: site1.local)
      - Page1 (doctype: page)
      - Page2 (doctype: page)
      Site2 (doctype: home, hostname: site2.local)
      - Page1 (doctype: page)
      - Page2 (doctype: page)
      - - Page2.1 (doctype: page)
    14. Edit the "Site1/Page1" page bodyText content field, and add the following text: Here is a link to Site2 Page1 and another link to Site2 Page2.1.
    15. Create a link to Site2 Page1 and Site2 Page2.1 in the text just added, using the TinyMCE Add/Edit link dialog
    16. Publish all pages and child pages
    17. View http://site1.local/page1.aspx in your browser

    I did the exact steps described above, and the HTML rendered in my browser for Site1.local/page1.aspx is the text on the page with two links, the first link is linking to http://site2.local/page1.aspx as it should, but the other link is linking to /page1/page2.1.aspx which does not exist on the current domain of the page we are currently looking at (site1.local)

    My test shows that links between sites on different domains linking to a page on a level higher than level 2 will not include the domain name when {localLink<nodeId>} is replaced.

     

    Another interesting and related thing to notice, is the links generated for each page in the Generic Properties tab. Log in to umbraco at http://site1.local/umbraco/umbraco.aspx:

    For the Site2 / Page2 page there are two links:
    - Link to document: http://site2.local/page2.aspx
    - Alternative Links: http://site2.local/page2.aspx

    For the Site2 / Page2 / Page2.1 page there are two links:
    - Link to document: /page2/page2.aspx
    - Alternative Links: http://site2.local/page2/page2.1.aspx

    It seems that below the second level in the navigation umbraco doesn't recognize that the domain for the page is not the same as we are currently at, which causes the first link to be wrong.

     

    Can anyone please reproduce this and confirm this imo very serious bug?

    All the best
    Dennis Milandt

  • Dennis Milandt 190 posts 517 karma points
    Jan 05, 2010 @ 09:34
    Dennis Milandt
    0

    Do anyone have time to try this out? Remember, it only takes 5 minutes (or less in fact) to set up a new umbraco website.

    /Dennis

  • Laurence Gillian 600 posts 1219 karma points
    Jan 05, 2010 @ 13:46
    Laurence Gillian
    1

    I'll try and have a look at this tomorrow for you. /Lau

  • Dennis Milandt 190 posts 517 karma points
    Jan 05, 2010 @ 14:56
    Dennis Milandt
    0

    Thank you very much. Looking forward to your result :-)

    /Dennis

  • Dennis Milandt 190 posts 517 karma points
    Jan 07, 2010 @ 15:56
    Dennis Milandt
    0

    Lau, did you have any success reproducing this bug?

    /Dennis

  • Dennis Milandt 190 posts 517 karma points
    Jan 17, 2010 @ 21:11
    Dennis Milandt
    0

    Anyone else?

    Added this as a issue on CodePlex -> http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=25975

    /Dennis

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jan 17, 2010 @ 21:20
    Morten Bock
    1

    I've seem to remember having seen this behavior before, but I don't recall finding a solution for it, because it was not a vital part of that solution.

    So it is not just you :)

  • Dennis Milandt 190 posts 517 karma points
    Jan 17, 2010 @ 21:26
    Dennis Milandt
    0

    If the procedure I describe causes this bug to appear, it is a serious bug. It makes it impossible to create a link from one website to another in the same umbraco instance. Please vote for the issue in CP.

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft