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 127356 - Search history diff indicated binary file
Summary: Search history diff indicated binary file
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker with 2 votes (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 08:27 UTC by esm
Modified: 2008-07-24 02:54 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Requested messages file. (26.06 KB, text/plain)
2008-03-03 08:37 UTC, esm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esm 2008-02-14 08:27:45 UTC
Search History is selected for a java file.
Then the Diff button is selected.
When selection among the different versions in the list,
the two panels that should display the java code, only displays <Binary file>.
A local diff works OK.

Client use Netbeans 6.0
Collabnet svn version 1.4.6

Subversion properties shows mime type: text/x-java
Comment 1 Tomas Stupka 2008-02-26 15:23:49 UTC
could not reproduce with a simple try.

do you always get this, or only for java files or maybe even a specific java file?

thanks
Comment 2 esm 2008-02-28 06:58:50 UTC
I get this every time, for all java files and also for text files.
It is no difference between new files, added from within Netbeans and
old files imported from CVS to subversion.
I use https: to access the server.
Comment 3 Tomas Stupka 2008-02-28 10:52:01 UTC
hm ...

it looks like there could be a problem when retrieving the selected file revisions. i could send you a patched module
with some additional log info so could see if thats the case.

maybe for the begining you could try the following ...

1.) open search history and hit search
2.) in the summary view select a java files revision, right click and choose view - the file in the selectd revision
should be opened in the editor
3.) do the same for the files other revision you tried to diff in the diff view

thanks
Comment 4 esm 2008-02-29 14:40:02 UTC
When I open search history, the search will occur automatically,
but I can unfold the selection pane in top of the window to hit the search button.
The result is the same.

When i select a .java file in the brighter area, the rightclick choice View is greyed out.
It is grey for all files, but the other choices are enabled.
Sorry...
Comment 5 Tomas Stupka 2008-02-29 14:59:04 UTC
could you please reproduce both problems (no diff and disabled view action) in netbeans and attach your messages.log
file to this issue?

thanks
Comment 6 esm 2008-03-03 08:37:56 UTC
Created attachment 57640 [details]
Requested messages file.
Comment 7 Peter Pis 2008-03-20 21:30:09 UTC
Couldn't reproduce even with the "svn:mime-type" set. Messages.log doesn't contain information that could be of a help.
Any other special setup e.g. multibytes in path ... ?
Comment 8 esm 2008-03-20 23:22:05 UTC
No strange characters in paths.
Using swedish special characters or spaces uses to cause problems, so we try to avoid them.
Do you know why i do not get a mail notification when comments are added to this issue?
Comment 9 Tomas Stupka 2008-03-21 11:40:14 UTC
seems to be a problem with issuezila. I also get the notifications with a long delay.
Comment 10 bartvdc 2008-06-18 09:45:59 UTC
I get the same behaviour for some versions and for others it works as expected. Those that do not work, where diff
indicates that they are binary files are those that are copied from another location. 
We did a versioned copy, thus without losing the history , outside netbeans with tortoise. With tortoise and polarion
webclient I can still see the diffs with those files but not with NB.


Comment 11 Tomas Stupka 2008-06-18 19:02:46 UTC
Hi,

i've tried a few scenarios by creating copies (with svn cli) but i still wasn't able to reproduce. Maybe you could remember what were the exact steps you 
created the problematic files... 

thanks
Comment 12 bartvdc 2008-06-19 07:12:41 UTC
I just tried to reproduce with a simple test but it fails(the diff works).
I still have +- 10 projects where it does not work, they all were version copied with tortoise. Apparently I did
something more with them but I can't remember what. Can I sent some svn metadata privately or try something out for you?
how does NB decide that the file is binary ?
As stated by someone before, the view menu in sumary is greyed out for those without diff.
Comment 13 Tomas Stupka 2008-06-19 09:13:56 UTC
> I still have +- 10 projects where it does not work
so this means it always reproducible with those, right? I could send you a patched module jar with some additional log
output so we may trace the problem down. ok?
Comment 14 bartvdc 2008-06-19 09:28:04 UTC
Ok, send it to bartvdc@netbeans.org or put it here as attachment
Comment 15 berga 2008-07-07 13:23:34 UTC
hi,
I'm experiencing this problem upon a ruby project:
my collegue (win xp) has committed a new branch with tortoise,
he can't see this problem under win,
but under Linux I cat see it. Furthermore if I try to open some files
with vi at the end a can see 'Missing EOL character' then by the command
svn diff file -r xx:HEAD I can see 'No newline at end of file'
1) I tried setting svn:eol-style LF over all source files: no results
2) I tried saving some files with vi then commiting: no results

I'm using Netbeans 6.1

maybe nebeans under linux can't resolve correctly mime filetype?
how can it do this?
may I send some other stuff?
Comment 16 Tomas Stupka 2008-07-22 12:56:20 UTC
i've made some fixes regarding the mime type (see also #139389)

could you please check if you still get the problem with an actuall buidl?

thanks
Comment 17 esm 2008-07-23 22:05:25 UTC
I have checked with the build from 0723 and it seems to work now, (checked with .java files)
Thank you very much!
Comment 18 Tomas Stupka 2008-07-24 02:54:31 UTC
fixed in scope of #139389