Addition of x-static smart-table cause UncompressableFileError

Bug #1409420 reported by Lawrance
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Lawrance

Bug Description

 How to reproduce

1. `git pull` and we will get the latest horizon
2. `pip install -r requirements.txt` to install required packages
3. login the horizon, it will raise UncompressableFileError, just like the below screenshot

the bug is introduced by the commit d7df6378a356d19c190440e6446919a58dc7809b

https://github.com/openstack/horizon/commit/d7df6378a356d19c190440e6446919a58dc7809b

the smart-table.js path is not correct.

the xstatic smart-table.js path is : ./.venv/lib/python2.7/site-packages/xstatic/pkg/angular_smart_table/data/smart-table.js

https://github.com/openstack/horizon/blob/master/horizon/templates/horizon/_conf.html#L11

above line should be
<script src="{{ STATIC_URL }}horizon/lib/smart-table/smart-table.js" type="text/javascript" charset="utf-8"></script>

Changed in horizon:
assignee: nobody → Lawrance (jing)
status: New → In Progress
Wu Hong Guang (whg)
Changed in horizon:
status: In Progress → Confirmed
Changed in horizon:
importance: Undecided → High
milestone: none → kilo-2
summary: - The lastest horizon code will cause UncompressableFileError
+ Addition of x-static smart-table cause UncompressableFileError
Revision history for this message
Matthias Runge (mrunge) wrote :

Ugh, I missed this bug report and went ahead to fix this:
https://review.openstack.org/#/c/146414/

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

Reviewed: https://review.openstack.org/146316
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=12c37e3af0a95cb793ad1fb7e055276da049e5ac
Submitter: Jenkins
Branch: master

commit 12c37e3af0a95cb793ad1fb7e055276da049e5ac
Author: jing.liuqing <jing.liuqing@99cloud.net>
Date: Sun Dec 28 23:22:51 2014 +0800

    Fix UncompressableFileError for latest horizon code

    When pulling the latest horizon code and update required packages,
    then login it, it will raise UncompressableFileError because of the
    incorrect smart-table.js path, the patch will fix it.

    Change-Id: I4600ed1a290976b9ab1f5a4f4f5287392c018d30
    Closes-Bug: 1409420

Changed in horizon:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-2 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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