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 211583 - When the file like '.svn' exists in remote source , i try to "Deploying a PHP Application on a Remote Web Server Using the NetBeans IDE".
Summary: When the file like '.svn' exists in remote source , i try to "Deploying a PHP...
Status: CLOSED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-23 11:27 UTC by lixiaoxing
Modified: 2012-05-03 09:35 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the error screen shutcut (82.73 KB, image/png)
2012-04-24 02:23 UTC, lixiaoxing
Details
log file (270.98 KB, text/plain)
2012-04-24 06:58 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lixiaoxing 2012-04-23 11:27:43 UTC
When the file like '.svn' exists in remote source , i try to "Deploying a PHP Application on a Remote Web Server Using the NetBeans IDE". 

unlucky the error message 'Can't lock read-only files ****.new~' pop up  in the this IDE
Comment 1 Tomas Mysik 2012-04-23 12:28:16 UTC
Please, can you provide more information about your project as well as exact steps to reproduce? E.g. does your project use any version control system? Can you attach here your project or create a sample project we can play with? When exactly the error occurs - when you try to upload a file? Can you attach here (please, do not copy & paste) your IDE log [1]?

Simply reopen this issue, thanks.
[1] View > IDE Log
Comment 2 lixiaoxing 2012-04-23 14:26:22 UTC
I'm sorry for the ambiguity.

my remote source is under svbversion control system. Then i wants create a new project based on the remote source.


1. I choose  new php project that source in the remote server,then click 'NEXT'

2. config the sftp and set the path of the remote source succesfully,then click 'NEXT'

3. Netbeans fetch and preview the source structure in its own window,then i choose  the checkbox select all in the below.

4. I click finish button , expect the ide would download remote server source and wait for about 15 secconds.

5. Finally, i got the popup error message ,it says 'Can't lock read-only files …….new~'.

I look up for the reasons ,and find the ide will works well if my remote source is no version control system.

I'm off duty now ,so can not attach the picture.

thanks for reply!
Comment 3 Tomas Mysik 2012-04-23 19:41:48 UTC
Thanks for the steps.

Adding Láďa to CC - please, try to reproduce.

Thanks.
Comment 4 Vladimir Riha 2012-04-23 20:12:41 UTC
I tried it (creating project from rem.serv. that contains some random "dot named" directories) without any luck with reproducing, I'll look at it again tomorrow following the exact steps from lixiaoxing with proper svn structure
Comment 5 Tomas Mysik 2012-04-23 20:15:49 UTC
@Láďa: Could or could not be related - I have suspicion that ".svn" files (directories) are handled by version control. Try to empty Ignore File Pattern (in IDE options) and then create ".svn" directory - I think it is not possible.

Thanks.
Comment 6 lixiaoxing 2012-04-24 02:23:59 UTC
Created attachment 118668 [details]
the error screen shutcut

This is the last step after i clicked the finished button. the project is under control version so the .svn exists in every directory ,e.g. the action  directory i choosed.
Comment 7 lixiaoxing 2012-04-24 02:29:30 UTC
Comment on attachment 118668 [details]
the error screen shutcut

The error happend in the last confirm step. Project is under version control,so .svn exists in every directory. just like the action i choosed.
Comment 8 Vladimir Riha 2012-04-24 06:58:28 UTC
Created attachment 118672 [details]
log file

Tomasi, you're right, with empty Ignore File Pattern the described error occurs. Could be related to older issue #210432 (resp. issue #207106). Log attached (a bit too long though...)

Product Version: NetBeans IDE Dev (Build 201204230400)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
Comment 9 lixiaoxing 2012-04-24 11:32:31 UTC
(In reply to comment #8)
> Created attachment 118672 [details]
> log file
> 
> Tomasi, you're right, with empty Ignore File Pattern the described error
> occurs. Could be related to older issue #210432 (resp. issue #207106). Log
> attached (a bit too long though...)

How to set the option about "Ignore File Pattern" in the IDE.

I just check as follow steps and no useful found.

tools -> options -> others -> version control
Comment 10 Vladimir Riha 2012-04-24 11:34:34 UTC
(In reply to comment #9)
> How to set the option about "Ignore File Pattern" in the IDE.
> 
> I just check as follow steps and no useful found.
> 
> tools -> options -> others -> version control

Go to Tools->Options->Miscellaneous->Files, there is Ignored Files Patter field
Comment 11 lixiaoxing 2012-04-24 12:06:56 UTC
> Go to Tools->Options->Miscellaneous->Files, there is Ignored Files Patter field
I changed the field is "^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn|.svn)$|~$|^\.(?!htaccess$).*$" ,but also meet the error.

the defalut field is ^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess$).*$
Comment 12 Tomas Mysik 2012-04-25 11:18:21 UTC
(In reply to comment #11)
> I changed the field is
> "^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn|.svn)$|~$|^\.(?!htaccess$).*$" ,but
> also meet the error.

Your pattern is incorrect:
- pattern ".svn" matches also e.g. "asvn", "5svn" etc.;
- folder ".svn" is already matched (and thus ignored) by "\.(?!htaccess$)".
Comment 13 lixiaoxing 2012-04-25 12:34:03 UTC
> - folder ".svn" is already matched (and thus ignored) by "\.(?!htaccess$)".


1. but no matter ignored ".svn" or not (use ^\.(?!htaccess$).*$ or not ), i both cant download the remote source.

2. do you means that i should the default field "^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess$).*$" to ignore the ".svn", becasue if i delete "^\.(?!htaccess$).*$" pattern , the IDE will report the error that java.lang.IllegalArgumentException .@r1

3. can you tell  me  the method to solve


r1: http://statistics.netbeans.org/analytics/detail.do?id=161199
Comment 14 Tomas Mysik 2012-05-02 04:35:46 UTC
I tried to reproduce (with empty Ignored Files Pattern) and the result is:

- download is fine [1],
- once project is opened, only ".svn" folder is removed from project (this change is propagated to the server so the ".svn" folder is removed from the server as well) [2]

The strange thing here is that ".svn" directory:
- is visible for you in the new project wizard
- is deleted from the project (perhaps bug in version control support in NetBeans)

@reporter: Can you try the development version of NetBeans [3] whether it is still reproducible for you? There were some fixes in this area for NB 7.2.

Just reopen this issue again, thanks.
[1]
Summary
====================
Succeeded:
dir       .svn
file      .svn/test
[2]
DELE .svn/test
250 Delete operation successful.
[...]
RMD .svn
250 Remove directory operation successful.
[3] http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 15 Tomas Mysik 2012-05-02 04:36:24 UTC
Forgot to add my NB version:

Product Version: NetBeans IDE Dev (Build 20120427-b5066b45107c)
Java: 1.6.0_32; Java HotSpot(TM) 64-Bit Server VM 20.7-b02
System: Linux version 3.0.0-19-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 16 Vladimir Riha 2012-05-02 12:31:35 UTC
In NB 7.1.2 there is no problem with both default and empty ignore pattern. In both cases there is no mention about ".svn" in the Remote log

Windows 7
NetBeans 7.1.2 JDK7
Comment 17 Tomas Mysik 2012-05-03 04:06:40 UTC
(In reply to comment #16)
> In NB 7.1.2 there is no problem with both default and empty ignore pattern. In
> both cases there is no mention about ".svn" in the Remote log

Yes, since no hidden files were downloaded (so files like .htaccess were unfortunately ignored; this is fixed for NB 7.2); please notice that this applies for FTP only, SFTP works as expected (it offers .htaccess file for download).

Still waiting for reporter (see my previoud comment), ".svn" folder should not be offered for download with standard Ignore Files Pattern.

Thanks.
Comment 18 Tomas Mysik 2012-05-03 04:08:33 UTC
(In reply to comment #17)
> Still waiting for reporter (see my previoud comment), ".svn" folder should not
> be offered for download with standard Ignore Files Pattern.

Or Láďo, if you can verify that I am right, it would be great. Please test it (both FTP and SFTP, please) with standard Ignored Files Pattern only since this is the default (and correct) settings.

Thanks.
Comment 19 lixiaoxing 2012-05-03 08:07:28 UTC
(In reply to comment #17)

> Still waiting for reporter (see my previoud comment), ".svn" folder should not
> be offered for download with standard Ignore Files Pattern.
> 
> Thanks.

I solved  the problem by upgrading ide to version "NetBeans IDE Build 201205010400 " as http://bits.netbeans.org/download/trunk/nightly/latest/. Just as you say this is fixed for NB 7.2. 

by the way i use the default pattern value and the download source ignore the .svn directory as i expected.


thanks a lot.
Comment 20 Vladimir Riha 2012-05-03 08:27:41 UTC
(In reply to comment #18)
> Or Láďo, if you can verify that I am right, it would be great. Please test it
> (both FTP and SFTP, please) with standard Ignored Files Pattern only since this
> is the default (and correct) settings.
> 
> Thanks.

Yep, in trunk build both FTP and SFTP works that way, .svn is ignored and .htaccess is downloaded
Comment 21 Tomas Mysik 2012-05-03 09:35:37 UTC
Thanks for verification, guys!