Skip to content

Change all URLs returned by tsd to be relative instead of absolute.#509

Closed
apech wants to merge 1 commit into
OpenTSDB:masterfrom
apech:master
Closed

Change all URLs returned by tsd to be relative instead of absolute.#509
apech wants to merge 1 commit into
OpenTSDB:masterfrom
apech:master

Conversation

@apech

@apech apech commented May 5, 2015

Copy link
Copy Markdown
Contributor

This is necessary to root tsd under another path when it's sharing the
domain with another application.

@tsuna

tsuna commented May 5, 2015

Copy link
Copy Markdown
Member

LGTM, thanks for doing this.

Comment thread src/tsd/GraphHandler.java Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work, instead of removing /q? it removes /q and leaves the ? behind. I guess we need something along the lines of uri = uri.replaceFirst("q\?", "#") or something of that effect.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it's more complex than that. I'm not sure it's possible to make this one relative, which might mean that TSD might need to know the path it's rooted under. Maybe we should consider adding a setting so that TSD itself is serving all the URLs under a certain prefix.

This is necessary to root tsd under another path when it's sharing the
domain with another application.
@manolama

Copy link
Copy Markdown
Member

Merged in 432d1ea. Thanks!

@manolama manolama closed this Aug 27, 2015
johann8384 added a commit that referenced this pull request Sep 1, 2016
Relative URI (continuing the work done in PR #509)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants