Skip to content

[JENKINS-781] Search box in browser toolbar does not work in combination with URL rewriting #13821

Closed

Description

@jenkins-infra-bot

From

http://deadlock.netbeans.org/hudson/

I go to the search box and enter "javadoc-nbms". It works and takes me to

http://deadlock.netbeans.org/hudson/job/javadoc-nbms/

as expected.

If I install the search engine in Firefox (2.0.0.6 on Ubuntu) I get sent to

http://deadlock.netbeans.org:2080/hudson/search/?q=javadoc-nbms

which does not work.

I have Hudson running on port 2080 on the server, but am using lighttpd to
rewrite URLs so as to expose only port 80 to the outside world. Normally this
works fine, but it seems that Hudson is exposing its search engine using an
absolute URL (including host and port information). Is it possible to expose a
relative URL instead, so that after URL rewriting the Firefox search toolbar
would get the correct port (80)?


Originally reported by jglick, imported from: Search box in browser toolbar does not work in combination with URL rewriting
  • status: Closed
  • priority: Minor
  • component(s): core
  • resolution: Fixed
  • resolved: 2007-09-02T17:14:26+00:00
  • votes: 0
  • watchers: 0
  • imported: 2025-11-24
Raw content of original issue

From

http://deadlock.netbeans.org/hudson/

I go to the search box and enter "javadoc-nbms". It works and takes me to

http://deadlock.netbeans.org/hudson/job/javadoc-nbms/

as expected.

If I install the search engine in Firefox (2.0.0.6 on Ubuntu) I get sent to

http://deadlock.netbeans.org:2080/hudson/search/?q=javadoc-nbms

which does not work.

I have Hudson running on port 2080 on the server, but am using lighttpd to rewrite URLs so as to expose only port 80 to the outside world. Normally this works fine, but it seems that Hudson is exposing its search engine using an absolute URL (including host and port information). Is it possible to expose a relative URL instead, so that after URL rewriting the Firefox search toolbar would get the correct port (80)?

  • environment: Platform: All, OS: All

Activity

  1. jenkins-infra-bot commented on Sep 2, 2007

    @jenkins-infra-bot
    Author
    kohsuke:
    • Original comment link
    • Raw content of original comment:

      I believe relative URL doesn't work inside open-search descriptor. I modified code so that it uses the URL you configure in the system config screen, and only use the request URL as the fall back.

      Another way to solve the problem would be to use something like AJP instead of simply HTTP request forwarding.

      This change is in 1.135.

    I believe relative URL doesn't work inside open-search descriptor.
    I modified code so that it uses the URL you configure in the system config
    screen, and only use the request URL as the fall back.

    Another way to solve the problem would be to use something like AJP instead of
    simply HTTP request forwarding.

    This change is in 1.135.

  2. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions