Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349929 - [prefs] 404 on /prefs/user/plugins when opening index.html
Summary: [prefs] 404 on /prefs/user/plugins when opening index.html
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: 9.0   Edit
Assignee: Anthony Hunter CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-21 06:37 EDT by Tomasz Zarna CLA
Modified: 2015-06-10 15:48 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2011-06-21 06:37:29 EDT
Commits pulled this morning but I've been seeing it for a while.

Steps:
1. Start Orion
2. Open Firebug console
3. Go to http://localhost:8080/index.html
=>
GET http://localhost:8080/org.dojotoolkit/... 200 OK
GET http://localhost:8080/auth2 200 OK
GET http://localhost:8080/defaults.pref 304 Not Modified
GET http://localhost:8080/prefs/user/plugins 401 Unauthorized <= is this expected?
POST http://localhost:8080/login 200 OK
POST http://localhost:8080/login/form 200 OK
POST http://localhost:8080/login 200 OK
GET http://localhost:8080/prefs/user/plugins 404 Not Found <= is this expected?
...

I haven't noticed any side effects.
Comment 1 Tomasz Zarna CLA 2011-06-21 06:43:14 EDT
(In reply to comment #0)
> I haven't noticed any side effects.

Well, this is not quite true. Opening the welcome page takes a little longer on my box comparing to Szymon.

Refreshing with Ctrl+Shift+R and doing localStorage.clear() didn't help.
Comment 2 Simon Kaegi CLA 2011-06-21 09:33:12 EDT
This is expected but we might see if there is something we can do to prevent a console message.
Comment 3 Rafael Chaves CLA 2012-08-14 20:42:15 EDT
I am seeing this on my instance of Orion as well (http://develop.cloudfier.com/). Is this really expected? What is involved? How to address it? Cheers.
Comment 4 Rafael Chaves CLA 2012-08-15 01:11:38 EDT
Note that in my case, the site never loads. It seems that is not expected in this report, so there may be something else at play.
Comment 5 John Arthorne CLA 2012-09-13 16:28:05 EDT
The 401 and 404 on /prefs/user/plugins is expected and does no harm. If you have no extra plugins installed then you get a 404 attempting to get the plugins preference. We should be able to suppress it. I believe the 401 is a timing issue that we haven't authenticated yet and we are trying to get the plugin list too early. If no user is logged in then 401 on getting plugins is correct. If you have seeing problems with the site not loading at all I think you are seeing something else and these messages are unrelated.
Comment 6 Anthony Hunter CLA 2015-01-22 11:02:00 EST
I am marking this major as it is becoming increasingly irritating to keep seeing the 404 errors in the console when trying to debug the Orion client. When I toggle on the console in Chrome it should be clean of anything at all times.

GET http://localhost:8080/prefs/user/cm/configurations 404 (Not Found)
GET http://localhost:8080/prefs/user/common-nav 404 (Not Found)
GET http://localhost:8080/prefs/user/sectionsOrder 404 (Not Found)

If there are no user preferences, can we not just return an empty list and not a 404?
Comment 7 Anthony Hunter CLA 2015-06-10 13:45:14 EDT
(In reply to Anthony Hunter from comment #6)
> If there are no user preferences, can we not just return an empty list and
> not a 404?

We now return an empty JSON Object. We walked the client code and there are no issues with the change.

Fixed with commit
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=70521691731f26c0f76dbeac4dc6ddb708f04d19