Closed
Bug 885367
Opened 12 years ago
Closed 12 years ago
editing a project and removing the title element causes a crash
Categories
(Webmaker Graveyard :: Thimble, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: thecount, Assigned: thecount)
Details
Attachments
(1 file)
/home/scott/thimble.webmaker.org/node_modules/sqlite3/lib/trace.js:28
throw err;
^
TypeError: Cannot read property 'title' of undefined
STRS:
1. load up an empty project.
2. save it.
3. save it again.
Expected: a published project.
Actual: A crash.
The first save is fine, as it's not an edit. Second save is the one that breaks because our url is now /:id/edit
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → scott
| Assignee | ||
Comment 1•12 years ago
|
||
I missed a key step in my STRS. Remove the title in step 1.
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #765421 -
Flags: review?(pomax)
Comment on attachment 765421 [details] [review]
https://github.com/mozilla/thimble.webmaker.org/pull/149
hmm, concern about leaving the page title empty when there is not title element, since we publish based on the title.
Attachment #765421 -
Flags: review?(pomax) → review-
| Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 765421 [details] [review]
https://github.com/mozilla/thimble.webmaker.org/pull/149
If there is no title element we do what we used to do if there was no title in the element, and that is use the project's id as the title.
Attachment #765421 -
Flags: review- → review?(pomax)
Comment on attachment 765421 [details] [review]
https://github.com/mozilla/thimble.webmaker.org/pull/149
if we're not pushing to /, then this is r+
Attachment #765421 -
Flags: review?(pomax) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
Staged: https://github.com/mozilla/thimble.webmaker.org/commit/c32388573fbe2cd9c66ec73b168fe4be80f4ebb0
Was just landing another ticket, and ensuring they worked together before landing this.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•