This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252343 - "Attach IDE snapshot to bug" fails with "Http error: Moved Temporarily"
Summary: "Attach IDE snapshot to bug" fails with "Http error: Moved Temporarily"
Status: REOPENED
Alias: None
Product: www
Classification: Unclassified
Component: Bugzilla (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Pirek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-11 18:17 UTC by _ gtzabari
Modified: 2015-09-18 19:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (332.00 KB, application/octet-stream)
2015-07-29 17:11 UTC, _ gtzabari
Details
messages.log with bugzilla verbosity (47.63 KB, application/octet-stream)
2015-07-31 15:29 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2015-05-11 18:17:11 UTC
Product Version: NetBeans IDE Dev (Build 201505080001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\dev\Netbeans\user\dev
Cache directory: C:\dev\Netbeans\cache\dev

1. Take IDE snapshot
2. Click "Attach IDE snapshot to bug"
3. Enter bug id and submit.
4. Operation fails with "Http error: Moved Temporarily" and snapshot is never attached to issue.
Comment 1 Tomas Stupka 2015-05-29 12:49:53 UTC
can't reproduce. Sounds like a temporary server side problem. 

thanks
Comment 2 _ gtzabari 2015-07-28 22:13:07 UTC
I just reproduced it again.

I created an IDE snapshot, clicked the "Attach IDE snapshot to bug..." icon (second from left), entered bug id 252343 (this bug) and got "Http error: Moved Temporarily".

Can you please try this again on your end?
Comment 3 _ gtzabari 2015-07-28 22:13:35 UTC
And for reference, my IDE version is:

Product Version: NetBeans IDE Dev (Build 201507270002)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)
User directory: C:\dev\Netbeans\user\dev
Cache directory: C:\dev\Netbeans\cache\dev
Comment 4 Tomas Stupka 2015-07-29 08:39:50 UTC
> I created an IDE snapshot, clicked the "Attach IDE snapshot to bug..." icon
> (second from left), entered bug id 252343 (this bug) and got "Http error:
> Moved Temporarily".
this tends to appear if the nb repository url is http, instead of https - please check your nb repository settings
Comment 5 _ gtzabari 2015-07-29 16:29:18 UTC
How do I check my nb repository settings?

Remember, I am using a fresh JavaSE installation of Netbeans. Whatever the settings are, I believe they are the default (so either way you have a bug).
Comment 6 Tomas Stupka 2015-07-29 16:51:23 UTC
(In reply to _ gtzabari from comment #5)
> How do I check my nb repository settings?
- main menu > windows > tasks
- ctx menu on the nb repository node > properties

> Remember, I am using a fresh JavaSE installation of Netbeans. Whatever the
> settings are, I believe they are the default (so either way you have a bug).
so you did not create the netbeans repository by hand?
Comment 7 Tomas Stupka 2015-07-29 16:56:13 UTC
when using the feature - does this happen every time or only occasionally?
Comment 8 _ gtzabari 2015-07-29 16:58:50 UTC
(In reply to Tomas Stupka from comment #7)
> when using the feature - does this happen every time or only occasionally?

Every time.

(In reply to Tomas Stupka from comment #6)
> (In reply to _ gtzabari from comment #5)
> > How do I check my nb repository settings?
> - main menu > windows > tasks
> - ctx menu on the nb repository node > properties

It is: https://netbeans.org/bugzilla

> so you did not create the netbeans repository by hand?

No
Comment 9 Tomas Stupka 2015-07-29 17:08:57 UTC
are you able to attach your messages.log via the IDE bugzilla support to this issue?
(if possible from a session where the problem happened, i would asked for it anyway)
Comment 10 _ gtzabari 2015-07-29 17:11:01 UTC
Created attachment 155018 [details]
messages.log

Here you go...
Comment 11 Tomas Stupka 2015-07-31 14:56:13 UTC
don't get me wrong, but i have to ask to be sure - you opened the issue in the ide and then attached the messegas.log to it?
because it's exactly the same call as in "Attach IDE snapshot to bug"

not much in the log, besides 
WARNING [org.apache.commons.httpclient.HttpMethodBase]: Cookie rejected: "$Version=0; _junction2_session=1868729267670de569eb7e90d328c038; $Path=/; $Domain=.netbeans.org". Illegal domain attribute ".netbeans.org". Domain of origin: "netbeans.org"
though not sure how relevant that is

please reproduce one more time with the switch 
-J-Dorg.netbeans.modules.bugzilla.Bugzilla.level=-1
and attach messages.log 

thanks
Comment 12 _ gtzabari 2015-07-31 15:28:33 UTC
(In reply to Tomas Stupka from comment #11)
> don't get me wrong, but i have to ask to be sure - you opened the issue in
> the ide and then attached the messegas.log to it?
> because it's exactly the same call as in "Attach IDE snapshot to bug"

No. All attachments you see so far were uploaded using Chrome, not using the IDE itself.
 
> not much in the log, besides 
> WARNING [org.apache.commons.httpclient.HttpMethodBase]: Cookie rejected:
> "$Version=0; _junction2_session=1868729267670de569eb7e90d328c038; $Path=/;
> $Domain=.netbeans.org". Illegal domain attribute ".netbeans.org". Domain of
> origin: "netbeans.org"
> though not sure how relevant that is
> 
> please reproduce one more time with the switch 
> -J-Dorg.netbeans.modules.bugzilla.Bugzilla.level=-1
> and attach messages.log 

I'll attach this in a second.
Comment 13 _ gtzabari 2015-07-31 15:29:06 UTC
Created attachment 155093 [details]
messages.log with bugzilla verbosity
Comment 14 Tomas Stupka 2015-07-31 15:42:21 UTC
im wondering about the "Cookie rejected" log - some setup on your os? (this feature usually works fine)

we use the mylyn connector to access bugzilla, 
seems like they had a similar problem here https://bugs.eclipse.org/bugs/show_bug.cgi?id=175502
Comment 15 _ gtzabari 2015-07-31 15:54:11 UTC
(In reply to Tomas Stupka from comment #14)
> im wondering about the "Cookie rejected" log - some setup on your os? (this
> feature usually works fine)
> 
> we use the mylyn connector to access bugzilla, 
> seems like they had a similar problem here
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=175502

If you look at the bug report you mentioned they write:

> From the debug log, I was able to determine that it was my instance of bugzilla that had the wrong cookie domain set.  I had assumed incorrectly that it was obtaining it from my httpd configuration.  So obvious in hindsight!

This makes me believe that the error you were seeing in messages.log (Illegal domain attribute ".netbeans.org") is at fault, and is the same problem they are talking about.

I don't understand what they wrote in the next part:

> Editing the cookie domain in the Required Settings Configuration section ( http://<server>/<bugzilla path>/editparams.cgi?section=core ) made the problem go away

Any idea what this means?
Comment 16 Tomas Stupka 2015-07-31 16:03:09 UTC
> Any idea what this means?
nope

".netbeans.org" might be at fault, but still - a possible way around would be to figure out why is this happening only for you
Comment 17 Tomas Stupka 2015-07-31 16:04:27 UTC
reassigning for further evaluation - see comments #11 and later
Comment 18 MackSix 2015-09-18 19:05:49 UTC
I just tried to attache an IDE NPS snapshot to bug 255341 and I got "HTTP Error: Moved Temporarily."
Comment 19 MackSix 2015-09-18 19:12:56 UTC
(In reply to MackSix from comment #18)
> I just tried to attache an IDE NPS snapshot to bug 255341 and I got "HTTP
> Error: Moved Temporarily."

Ah, I had to enter my username and password. It worked. 

The error message doesn't really give you the hint that you have to enter you username and password though. :)