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)

x86_64
Linux
defect
Not set
normal

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: nobody → scott
I missed a key step in my STRS. Remove the title in step 1.
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-
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)
Attachment #765421 - Flags: review?(pomax) → review+
Can we get this landed please?
Status: NEW → ASSIGNED
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
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.

Attachment

General

Created:
Updated:
Size: