Python table JS polling is borked - multiple errors

Bug #1544990 reported by Rob Cresswell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
In Progress
Medium
Diana Whitten

Bug Description

GET http://localhost:8000/project/volumes/?action=row_update&table=volumes&obj_id=fdd57453-035d-4862-aea7-ef3b505acf13 404 (NOT FOUND)

GET http://localhost:8000/project/volumes/?action=create&table=volumes 500 (INTERNAL SERVER ERROR)

There are two issues here: the data_table is looking for a template that doesn't exist, and the polling is trying to iterate over a row that doesnt exist as it has been deleted.

Easiest way to recreate this is to create an item in an empty table (such as volumes). When it is created, delete it and look at the console.

description: updated
Changed in horizon:
assignee: nobody → Diana Whitten (hurgleburgler)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Diana Whitten (hurgleburgler) wrote :

The template that doesn't exist is definitely a problem, but it looks like the 404 is the expected behavior. Looking at the horizon.tables.js: 34 --> they are even expecting a 404 to update the table. Thoughts?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/281450

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

I tried to fix 404 issue some time ago, but got an impression that it's essentially how it's supposed to work in browser console (mostly StackOverflow answers) :(. The problem is still waiting for the AJAX magician.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/281450
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=7c705536f585a88c40b8ad325649b5e35f82d526
Submitter: Jenkins
Branch: master

commit 7c705536f585a88c40b8ad325649b5e35f82d526
Author: Diana Whitten <email address hidden>
Date: Fri Feb 12 08:49:57 2016 -0700

    Python table is returning invalid template name

    The data_table is looking for a template that doesn't exist. This
    has been fixed.

    partial-bug: #1544990
    Closes-bug: #1531982

    Change-Id: Id0c16aa26f18461a807166af2c5b347a130d72a8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.