Bug 11140

Summary: patchwork: Web UI throws an error instead of series view when user is not authenticated
Product: [Yocto Project Subprojects] Patchwork/Patchtest Reporter: Jose Lamego <jose.a.lamego>
Component: PatchworkAssignee: Jose Lamego <jose.a.lamego>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: High    
Version: 2.4   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
OE-patchwork server error for series view none

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.