Bug 7995

Summary: Incorrect redirects from project builds to all builds
Product: [Build System, Metadata & Runtime] Toaster Reporter: Michael Wood <michael.g.wood>
Component: toasterAssignee: Belen Barros Pena <belen.barros.pena>
Status: VERIFIED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Medium+ CC: alexandru.damian, belen.barros.pena, bogdanx.a.voiculescu, cristiana.voicu, jessica.zhang
Version: 1.9   
Target Milestone: 1.9 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Michael Wood 2015-07-14 13:22:54 UTC
Toaster incorrectly redirects /project/x/builds/ to /builds/

I think this has something to do with an exception handled in the _template_render decorator.
Comment 1 Michael Wood 2015-07-17 15:34:51 UTC
We also don't get a proper response from this view after POSTing to it

libtoaster.startABuild expects

{ error : "ok" }

on success 

meaning that although the build is successfully triggered the client side things it's failed because "ok" isn't present.
Comment 2 Alexandru Damian 2015-07-24 17:01:23 UTC
Fixed posted for review on:

https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=adamian/bug_fixes
Comment 4 Mihail Stanciu 2015-09-03 07:10:26 UTC
Verified.