Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125955 - "Add Archs" does nothing because add_arches() does not find addarches list.
Summary: "Add Archs" does nothing because add_arches() does not find addarches list.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeffrey Forman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-12 10:29 UTC by Martin von Gagern
Modified: 2011-10-30 23:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
enter_bug.cgi?product=Gentoo%20Linux (enter_bug.cgi-product-Gentoo_Linux.html,16.57 KB, text/html)
2006-03-12 13:44 UTC, Martin von Gagern
Details
Screenshot of "Add Archs" button without a list of archs next to it (snapshot21.png,3.87 KB, image/png)
2006-03-13 02:51 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2006-03-12 10:29:29 UTC
I don't know if it is because I'm not in expert mode, but for me the "Add Archs" button on enter_bug.cgi does nothing, because the addarches list referenced from add_arches() does not exist.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-12 12:47:37 UTC
Works fine here (I assume you mean http://bugs.gentoo.org/enter_bug.cgi?product=Gentoo%20Linux)

<duh mode on>
- You need javascript enabled in your browser :)
- You need to actually select something before clicking on the button :)
<duh mode off>

Otherwise, probably a browser bug, but you didn't include any info about your browser.
Comment 2 Martin von Gagern 2006-03-12 13:44:34 UTC
Created attachment 81996 [details]
enter_bug.cgi?product=Gentoo%20Linux

Yes, I'm talking about adding a bug to e.g. Gentoo Linux.
This is mozilla-firefox-1.5.0.1.
I do have javascript enabled.
There is this function add_arches() in the source code of the page.

> for(i=0;i<document.Create.addarches.options.length;i++) {

document.Create is the main bug submission form, all right there. But this form does not contain an element named "addarches". So I get this JavaScript error message: "document.Create.addarches has no properties". I attached the HTML page as it is displayed for me.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-03-13 02:27:38 UTC
(In reply to comment #2)

Works just fine here with exactly the same browser. Maybe you are using some broken plugin that breaks javascript?
Comment 4 Martin von Gagern 2006-03-13 02:51:17 UTC
Created attachment 82019 [details]
Screenshot of "Add Archs" button without a list of archs next to it

(In reply to comment #3)
> Works just fine here with exactly the same browser.

What does work, only the live page, or the attachment as well?

> Maybe you are using some broken plugin that breaks javascript?

I just tried with konqueror, same thing happens.

And as I explained, I also had a look at the HTML and JS sources and agree that this cannot work, so the problem is server sided, not client sided.

Maybe it's got to do with permissions. Maybe you have some privileges I don't have, and the list of archs is only included in the page if you have this privilege, but the "Add Arch" button is always displayed?

I /suppose/ that there should be a list of archs right next to the "Add Archs" button. For me there is no such list, I documented this in the attached screenshot. I would think this is the place where I "need to actually select something" (comment #1), correct?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-20 00:39:03 UTC
(In reply to comment #4)
> Created an attachment (id=82019) [edit]
> Maybe it's got to do with permissions. Maybe you have some privileges I don't
> have, and the list of archs is only included in the page if you have this
> privilege, but the "Add Arch" button is always displayed?

Ah, looks like that, I tried w/ a fresh test account and see the same thing. Funny.
Comment 6 Jeffrey Forman (RETIRED) gentoo-dev 2006-03-22 14:57:45 UTC
This was my fault. I had the "if/then" blocks not encompassing enough. Should be good to go now.