Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15497

Incorrect port sometimes in external URL generated from a scheduler job

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.6.1
    • Fix Version/s: 10.7-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Same kind of issue than XWIKI-13435 but for the port.

      For some weird reason XWiki#getServerURL get the port from the context URL even when the host comes from the wiki descriptor. When we start rely on the descriptor we should go full descriptor and not mix with something which potentially have nothing to do in a proxied environment. If we really need a port in the wiki descriptor we just need to add it (hard to make `server` field support both for retro compatibility reasons).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: