Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4655

wrong ResourceResolverImpl#getMapPath value due Apache Felix HTTP SSLFilter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • Resolver
    • None

    Description

      The ResourceResolverImpl#getMapPath method it is a simple method that looks like

          private static String getMapPath(final String scheme, final String host, int port, final String path) {
              if (port < 0) {
                  port = ("https".equals(scheme)) ? 443 : 80;
              }
      
              return scheme + "/" + host + "." + port + path;
          }
      

      The problem is that due the Apache Felix HTTP SSLFilter (FELIX-4420) this method can produce weird value like

      https/domain.80/active.html !!

      IMHO this method should be somehow aware that the schema was somehow modified in order to avoid producing inconsistent maps.

      fmeschbe WDYT?

      Attachments

        Activity

          People

            Unassigned Unassigned
            asanso Antonio Sanso
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: