Bug 11140 - patchwork: Web UI throws an error instead of series view when user is not authenticated
Summary: patchwork: Web UI throws an error instead of series view when user is not aut...
Status: RESOLVED FIXED
Alias: None
Product: Patchwork/Patchtest
Classification: Yocto Project Subprojects
Component: Patchwork (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: High major
Target Milestone: 2.3 M4
Assignee: Jose Lamego
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-03-09 14:55 UTC by Jose Lamego
Modified: 2017-12-06 17:26 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
OE-patchwork server error for series view (8.04 KB, message/rfc822)
2017-03-09 14:55 UTC, Jose Lamego
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Lamego 2017-03-09 14:55:07 UTC
Created attachment 3644 [details]
OE-patchwork server error for series view

Series view from any project cannot be seen, instead a "Server Error (500)" message is displayed. For example:
https://patchwork.openembedded.org/series/5715/

This behavior is only present at patchwork.openembedded.org, while patchwork-staging.openembedded.org is displaying the series view as expected (both instances are using same patchwork code).

I'm attaching the error log from server.
Comment 1 Jose Lamego 2017-03-09 15:00:44 UTC
Update: This behavior is only present when user is not authenticated.
Comment 2 Jose Lamego 2017-03-09 15:45:03 UTC
Error was caused by attempting to access the database to filter bundle objects by user, while not authenticated. A fix was developed to return an empty bundle list for unauthenticated users:

https://lists.yoctoproject.org/pipermail/yocto/2017-March/035010.html

This change is already pushed to the yocto-patchwork repository and queued to be implemented in oe-patchwork.
Comment 3 Jose Lamego 2017-03-09 18:00:32 UTC
The fix is now implemented in OE-Patchwork. Thanks to Michael for the quick response.