Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358450 - [sites] tell user when site is down when they use a site URL
Summary: [sites] tell user when site is down when they use a site URL
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.3 RC1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 11:41 EDT by Susan McCourt CLA
Modified: 2011-10-07 16:31 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2011-09-21 11:41:27 EDT
Now that the builds are promoted so frequently (YEA!) to orion.eclipse.org, it's pretty common that a site I was running yesterday is not up when I go to use it today.  But what happens, is that everything is redirected back to the original orion instance.  The redirection is great when the site is running, but I found it confusing when the site was down.

In my case I had been running a site Monday to test changes I made.  On Tuesday I made some more changes, refreshed my inner site page, and the changes didn't show.  So I thought my changes were bogus, and after a bit of double checking, I realized the site was down and that I was running the page from the real server.  After starting my site, I got the expected results.

Can we tell the user something like "The site is not running, do you want me to start it?" when a request is received for a site that has been stopped?
Comment 1 Mark Macdonald CLA 2011-09-22 11:53:52 EDT
Agree, this would be really nice to have.

One approach would be to examine the wildcard subdomains (eg. *.orion.eclipse.org) that are set in the server hosting config. If the hostname being accessed resembles a subdomain, but is not actually a running site, we report an error rather than forward the request to the real Orion server. This will at least handle the subdomain case.
Comment 2 Mark Macdonald CLA 2011-10-06 23:42:13 EDT
Implemented the change described in Comment 2:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=f87d5377bb56162820376c678c8d4383a2996dcb

Adding a prompt to start the site would also be nice, but is more complex. For now, you'll get an error message telling you the site is stopped.
Comment 3 Mark Macdonald CLA 2011-10-07 16:31:22 EDT
Marking as fixed, see Comment 2
Opened bug 360282 for the prompt message.