Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-3296

[Backport to 7.9] channel manager cannot save channel settings when hst:scheme is set to https

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.28.11
    • Component/s: None
    • Labels:
    • Similar issues:

      Description

      If the attribute hst:scheme=https at hst:hosts or hst:root, then is not possible to save the channel manager changes, an error popup will show in the screen and an exception will be thrown: "Illegal channel URL scheme: https. Only 'http' is currently supported"
      The error is generated from the following code.

      class ChannelManagerImpl
      ..
      private URI getChannelUri(final Channel channel) throws ChannelException {
      URI uri;

      try

      { uri = new URI(channel.getUrl()); }

      catch (URISyntaxException e)

      { throw new ChannelException("Invalid channel URL: '" + channel.getUrl() + "'"); }

      if (!"http".equals(uri.getScheme()))

      { throw new ChannelException( "Illegal channel URL scheme: '" + uri.getScheme() + "'. Only 'http' is currently supported"); }

      if (StringUtils.isBlank(uri.getHost()))

      { throw new ChannelException("Channel URL '" + uri + "' does not contain a host name"); }

      return uri;
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aschrijvers Ard Schrijvers
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: