Python table JS polling is borked - multiple errors

Bug #1544990 reported by Rob Cresswell on 2016-02-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
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
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?

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

Changed in horizon:
status: Confirmed → In Progress
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.

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  Edit
Everyone can see this information.

Other bug subscribers