• 3
    • Severity 3 - Minor
    • 1
    • Confluence

      Issue Summary

      Get an error while trying to add Confluence Search Engine into the Firefox search bar.

      Steps to Reproduce

      1. Enable the search bar in firefox settings
      2. Go to a Confluence Cloud Site
      3. Click at the search bar
      4. Hit the Add "Confluence" option

      Expected Results

      Confluence search engine should be installed into firefox settings,

      Actual Results

      Get an error when hitting the  Add "Confluence" option that is:

      "Firefox could not install the search engine from: https:/instance.atlassian.net/wiki/opensearch/osd.action"

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

            [AI-927] Failed to add Confluence Search Engine in to Firefox

            3 years passed, None.get() done πŸ€·πŸ»β€β™‚οΈ

            Sergii Molchanov added a comment - 3 years passed, None.get() done πŸ€·πŸ»β€β™‚οΈ

            Daniel Hauswirth added a comment - - edited

            Workaround without addon, credits to: https://superuser.com/a/1756774/715210

            1. about:config
            2. create browser.urlbar.update2.engineAliasRefresh
            3. set it true
            4. about:preferences#search
            5. Click on "Add"
              1. Search engine name: Choose a name
              2. Engine URL: https://$YOURWIKINAME.atlassian.net/wiki/search?text=%s
              3. Alias: w (or what prefix you love for your Firefox)

            Daniel Hauswirth added a comment - - edited Workaround without addon, credits to: https://superuser.com/a/1756774/715210 about:config create browser.urlbar.update2.engineAliasRefresh set it true about:preferences#search Click on "Add" Search engine name: Choose a name Engine URL: https://$YOURWIKINAME.atlassian.net/wiki/search?text=%s Alias: w (or what prefix you love for your Firefox)

            Workaround is helpful, but would also be happy to have this work as expected.

            Jamin Peckham added a comment - Workaround is helpful, but would also be happy to have this work as expected.

            Just install extension "add custom search engine" and configure it like this:

            Name: Confluence
            Search URL: https://<company>.atlassian.net/wiki/search?text=%s
            Icon: https://<company>.atlassian.net/wiki/images/logo/confluence_128_white.png
            Input Encoding: UTF-8
            Description: Atlassian Confluence Search Provider

            Sebastian Michalak added a comment - Just install extension "add custom search engine" and configure it like this: Name: Confluence Search URL: https://<company>.atlassian.net/wiki/search?text=%s Icon: https://<company>.atlassian.net/wiki/images/logo/confluence_128_white.png Input Encoding: UTF-8 Description: Atlassian Confluence Search Provider

            Jens added a comment -

            For our confluence cloud installation, the opensearch xml seems to be just fine. I believe the problem is that Firefox doesn't send cookies when requesting the opensearch xml, so the request gets redirected to the login page which, of course, cannot be parsed as opensearch xml. See https://bugzilla.mozilla.org/show_bug.cgi?id=1624457.

             

            Our workaround is to host the confluence opensearch xml ourselves on a site without authentication.

            Jens added a comment - For our confluence cloud installation, the opensearch xml seems to be just fine. I believe the problem is that Firefox doesn't send cookies when requesting the opensearch xml, so the request gets redirected to the login page which, of course, cannot be parsed as opensearch xml. See https://bugzilla.mozilla.org/show_bug.cgi?id=1624457.   Our workaround is to host the confluence opensearch xml ourselves on a site without authentication.

            Could this be moved to short term backlog ?

             

            Frederic Marius added a comment - Could this be moved to short term backlog ?  

            Looks like this should be an easy fix, just update the xml file with the correct namespaces.
            Assume there is not much we can do when using Confluence cloud...

            Frederic Marius added a comment - Looks like this should be an easy fix, just update the xml file with the correct namespaces. Assume there is not much we can do when using Confluence cloud...

            Frederic Marius added a comment - - edited

            Same problem here. Adding some more details:
            https://<instance>.atlassian.net/wiki/opensearch/osd.action actually returns an xml with missing namespaces..

            Looking at the Firefox browser console (ctrl-shift-j), you can see the error: (error on namespace not matching)

            The opensearch xml file : https://advara.atlassian.net/wiki/opensearch/osd.action looks like this for me:

            URL is valid. However the SearchForm url is invalid and returns a 404.

            The root problem seems to be that the name space is missing from the osd.action url (cf
            https://developer.mozilla.org/en-US/docs/Web/OpenSearch)
             
            OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"xmlns:moz="http://www.mozilla.org/2006/browser/search/">

             

            Frederic Marius added a comment - - edited Same problem here. Adding some more details: https://<instance>.atlassian.net/wiki/opensearch/osd.action actually returns an xml with missing namespaces.. Looking at the Firefox browser console (ctrl-shift-j), you can see the error: (error on namespace not matching) The opensearch xml file : https://advara.atlassian.net/wiki/opensearch/osd.action looks like this for me: URL is valid. However the SearchForm url is invalid and returns a 404. The root problem seems to be that the name space is missing from the osd.action url (cf https://developer.mozilla.org/en-US/docs/Web/OpenSearch)   OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"xmlns:moz="http://www.mozilla.org/2006/browser/search/">  

              Unassigned Unassigned
              63acbe2277aa Eric Ribeiro (Inactive)
              Affected customers:
              48 This affects my team
              Watchers:
              37 Start watching this issue

                Created:
                Updated: