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 165012 - assigned to field appears to be inaccurate
Summary: assigned to field appears to be inaccurate
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Bugzilla (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-13 07:21 UTC by mikee11
Modified: 2009-07-27 09:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mikee11 2009-05-13 07:21:10 UTC
If you look in the bugzilla web-GUI, you see   "Assigned To: user##### (edit) "

"user####" is actually a hyperlink to the user's EMAIL, but the bugzilla "account-name" is "user####".
(in the bugzilla config-file, you use the "emailsuffix" parameter to specify the email suffix, resulting in
"user####@domain.com". This is a normal use cause for http/web/ntlm authenticated bugzilla sites)

The problem appears to be that NB6.7 beta is pulling in the EMAIL value, and inserting/using that when it does "commits"
or opens a "native window" into a bugzilla ticket. It should NOT use the EMAIL (ie: hyper-linked) value, but the ACTUAL
value instead. If it does that, then the "assigned to" fields will MATCH (to "user####") when looking at a bugzilla
ticket both in GUI an non-GUI.

This is a serious issue, since when NB tries to update a ticket, it doesn't try to post it to the properly assigned-to
person "user####", rather the email address of that person "user####@domain.com" which is not nessesarily a valude
bugzilla userid ( its a VALID email ID...)

Hopefully this isn't a hard fix, as this integration with bugzilla is a very cool feature indeed. (and this will make it
more useful for people that use HTTP/external authentication for their bugzilla environments).
Comment 1 mikee11 2009-05-13 07:49:49 UTC
I don't know, something doesn't add up.

If we look at the source from a bugzilla WEB-GUI we see:

<div id="bz_assignee_input"><input name="assigned_to" value="user####" size="30"  id="assigned_to" >

*note: NO DOMAIN_NAME as part of the assigned_to variable.

From the code: (modules/bugzilla/query/QueryParameter.java) we see that --
static final ParameterValue PV_FIELD_ASSIGNED_TO = new ParameterValue("assigned_to", "assigned_to"); // NOI18N

So it appears we're grabbing the right variable (assigned_to)...

So then HOW COME when we look at the same ticket in NetBeans, the ASSSINGED_TO field is shown (incorrectly) as:
   user####@domainname.com

Where did it get the DOMAINNAME piece from? Whats picking that up?
Comment 2 Ondrej Vrabec 2009-05-15 08:47:40 UTC
1) About your question 'Where did it get the DOMAINNAME piece from? Whats picking that up?':
we do not load issue data in a html format but rather in a xml representation - if you open an issue in a web browser,
somewhere on the page (possibly in the lower right corner) is a link to the XML representation.
Bugzilla always (well at least always in my installation) returns the 'assigned to' field in the longer form (specifying
a domain).

2) I modified the module code: cdev #c3a581794835 - this will intercept the module-server submit communication and
remove the domain part of the 'assigned to' field in the uploaded data (which will result in a successful save).

What you need to do is to open the repository configuration panel (Services->Issue Trackers->YOUR_TRACKER->Edit) and
check 'Enable Local Usernames'. If you select this option, you will be able to submit issues successfully.
Comment 3 Quality Engineering 2009-05-16 08:55:45 UTC
Integrated into 'main-golden', will be available in build *200905160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c3a581794835
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #165012 - assigned to field appears to be inaccurate
adding a checkbox to the repository panel allowing a user to specify if the repository accepts usernames in a short form