When using local charms, the URL used to retrieve charm info is not correct

Bug #1095354 reported by Francesco Banconi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-gui
Won't Fix
High
Nicola Larosa

Bug Description

From the Javascript console of Juju GUI deployed using the charm:

XMLHttpRequest cannot load https://jujucharms.com/charms/precise/juju-gui-17/json. Origin https://ec2-23-22-109-54.compute-1.amazonaws.com is not allowed by Access-Control-Allow-Origin.

It is possible to see this error when trying to retrieve charm info, i.e. going to the Juju GUI service detail, and clicking the "charm" tab.

summary: - https://jujucharms.com does not allow XMLHttpRequests
+ When using local charms, the URL used to retrieve charm info is not
+ correct.
summary: When using local charms, the URL used to retrieve charm info is not
- correct.
+ correct
description: updated
Revision history for this message
Nicola Larosa (teknico) wrote :

According to hazmat on IRC, the right link for the Juju GUI charm right now is https://jujucharms.com/~juju-gui/precise/juju-gui/json .

Revision history for this message
Gary Poster (gary) wrote :

@teknico that's correct but not pertinent AFAICT. Francesco deployed the GUI charm from a local repo, he said. Some code somewhere appears to be guessing that it knows how to create a charm store URL from a local charm. That's a pretty dangerous guess, I think. There's no way to know. I *think* that's what we need to address, but we should try to dupe this and get more information.

Nicola Larosa (teknico)
Changed in juju-gui:
assignee: nobody → Nicola Larosa (teknico)
status: Triaged → In Progress
Revision history for this message
Nicola Larosa (teknico) wrote :

The problem happens when deploying local charms as per the HACKING doc. In that case the charm owner is not set, and the jujucharms.com charm URL is computed incorrectly. It looks like there is no easy fix for this, and we will overhaul the charm tab in the service view page anyway, as per bug #1074278, so we (Gary and I) decided that it's not worth it to spend significant time on fixing this.

Changed in juju-gui:
status: In Progress → Won't Fix
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.