This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
9 Replies Last post: Jan 3, 2012 3:28 PM by Kirill Safonov  
Robert Deutz Newbie 5 posts since
Dec 26, 2011
Currently Being Moderated

Dec 28, 2011 1:11 AM

file acl rights get lost when edit over a shared directory

Hi,

 

any idea is very welcome I have no idea where I should look at. Here my configurration:

 

MacBookPro

VMware fusion 4.0

virtual machine with ubuntu (11.10-server amd64)

a local directory is mapped as htdocs in the virtual machine

 

I created a project

* Create New Project from existing files

** Source files are in a local directory, no webserver is yet configured

 

I configured the webserver and debugger and all works good togehter, but when I change a file (no need to save, it is enough when I make a change in PHPStrom) my file ACL right change to:

 

 

-????????? ? ?   ?          ?                ? rd_addphp.php   <-- I changed this file

-rw-rw-rw- 1 501 dialout 1189 2011-12-26 09:36 rd_addphp.xml

 

 

the funny thing is when I open the file and close it without a change then it is like it was before I made the change in PHPStrom

 

 

-rw-r--r-- 1 501 dialout 2978 2011-12-27 12:00 rd_addphp.php

-rw-rw-rw- 1 501 dialout 1189 2011-12-26 09:36 rd_addphp.xml

My problem is that the webserver can't access the files with the stange acl. The reason for this configuration is that I can easly map my development version within a webserver and test it.
As I said any hint is very welcome.
Cheers,
Robert
Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Dec 28, 2011 3:48 PM in response to: Robert Deutz
Re: file acl rights get lost when edit over a shared directory

Hi Robert,

 

Let me please clarify something:

 

1. original permissions: -rw-r--r--

2. open file in PhpStorm, make some changes, close file, permissons now are: -rw-rw-rw-

3. open file in PhpStorm, make no changes, close file, permissons now are: -rw-r--r--

 

Is this correct? Or did I miss the step "2,5. reset permissions back to -rw-r--r--"?

 

Kirill

Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Dec 28, 2011 5:38 PM in response to: Robert Deutz
Re: file acl rights get lost when edit over a shared directory

Is file permissons actually look like

-????????? ? ?   ?          ?                ?.

Can you attach a screenshot?

Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Dec 28, 2011 9:14 PM in response to: Robert Deutz
Re: file acl rights get lost when edit over a shared directory

Hi Robert,

 

Thanks for the video!

 

At the moment I'm not sure about the reason - looks like file record is screwed up somehow, maybe VMware drive mapping is the cause. For now I would suggest the following: download PhpStorm 3.0.1 EAP build, go to PhpStorm -> Preferences -> General and uncheck 'Use Safe write' checkbox. Please get back to me to know if this helps.

 

Thanks,

Kirill

 

By the way, any drive mapping is not an officially supported use case, as we always recommend users to work with locally-stored project files since IDE very much relies on instant access to them to provide the best performance and coding assistance.

 

Message was edited by: Kirill Safonov

Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Dec 29, 2011 1:12 PM in response to: Robert Deutz
Re: file acl rights get lost when edit over a shared directory

Hi Robert,

 

Thanks for checking the other editors.

 

For this kind of setup we recommend to copy project files to local hard disk over FTP/SFTP/mounted folder, and then upload the changes you make back to the server (manually or automatically). Check out main menu: File -> New Project from Existing Files wizard. After you created the project you can activate automatic upload via Tools -> Deployment -> Automatic Upload option.

 

Example: http://tv.jetbrains.net/videocontent/working-with-web-projects-via-ftp

 

Cheers,

Kirill

Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Jan 3, 2012 3:28 PM in response to: Robert Deutz
Re: file acl rights get lost when edit over a shared directory

Thanks for clearing things out!

More Like This

  • Retrieving data ...