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 237232 - Subversion Search History cannot be performed without permission to root repository
Summary: Subversion Search History cannot be performed without permission to root repo...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2013-10-17 07:04 UTC by Mitty
Modified: 2013-10-22 08:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump while the authentication window is displayed (31.15 KB, text/plain)
2013-10-17 07:58 UTC, Mitty
Details
IDE Snapshot (678.85 KB, application/octet-stream)
2013-10-17 08:05 UTC, Mitty
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mitty 2013-10-17 07:04:21 UTC
I have access to a subfolder in a repository, but cannot access the root repository (due to permissions).

By using the Subversion "Search History..." action (using project context menu -> Subversion -> Search History...) and clicking the Search button, the history appears.
But by expanding a revision in the history list a authentication window pops up and asks to enter the credentials for the root repository (as shown in the repository URL).
As I do not have access to the root repo, I cannot authenticate and thus cannot look at the file changes.

Subversion log:
==[IDE]== Oct 17, 2013 9:00:05 AM Searching History...
==[IDE]== Oct 17, 2013 9:00:07 AM Searching History... finished.
svn: E170001: OPTIONS of '<ROOT_REPOSITORY>': 403 Forbidden (<REPOSITORY_URL>)
svn: E170001: OPTIONS of '<ROOT_REPOSITORY>': 403 Forbidden (<REPOSITORY_URL>)
==[IDE]== Oct 17, 2013 9:00:13 AM Searching History... finished.
Comment 1 Ondrej Vrabec 2013-10-17 07:23:49 UTC
Please generate a thread dump while the authentication window is displayed. That will tell us from where the root repository folder is accessed.
Comment 2 Mitty 2013-10-17 07:58:34 UTC
Created attachment 141193 [details]
Thread dump while the authentication window is displayed

Added thread dump while the authentication window is displayed.
Comment 3 Mitty 2013-10-17 08:05:48 UTC
Created attachment 141195 [details]
IDE Snapshot

Added IDE Snapshot after the authentication window was closed.
Couldn't take the Snapshot while it was open (authentication window requires focus).

Hope that helps.
Comment 4 Ondrej Vrabec 2013-10-17 11:27:21 UTC
please try the fix as soon as it gets into a dev build

fix: http://hg.netbeans.org/core-main/rev/fb37e67b38bc
Comment 5 Mitty 2013-10-21 08:25:20 UTC
I just tried to verify the fix using the latest nightly build (201310210001) and encountered a NullPointerException.
See http://statistics.netbeans.org/analytics/exception.do?id=697138 for details.

I will wait until this exception/bug is resolved, because it prevents me to see the history at all now.
Comment 6 Mitty 2013-10-22 07:43:04 UTC
I could verify the fix with nightly build 201310220001.
The list works as expected (revision changes can be viewed, diffs can be performed, ...).

Another thing I noticed is that the from and to revision browse buttons still try to access the root repository.
I do not use them frequently but it would still be nice if this can be fixed too.
Should I open another ticket for this?

Thanks a lot for your effort.
I appreciate it!
Comment 7 Ondrej Vrabec 2013-10-22 08:06:42 UTC
(In reply to Mitty from comment #6)
> Another thing I noticed is that the from and to revision browse buttons
> still try to access the root repository.
> I do not use them frequently but it would still be nice if this can be fixed
> too.
> Should I open another ticket for this?
Yes please. And attach also the stacktrace of the error so i can find the place easily. thanks