Publishing "read only" files

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Publishing "read only" files

Postby Daniel » September 11th, 2013, 1:03 pm

As we use vault as source control provider, our local files are "read only" after the checkin.
After a publish to our webserver (local, not with FTP), the files are also read only on the webserver.
If I want to publish again, I get the error message "Access to the path ... denied.".

If I manually remove the read only flag from all files, the publishing works again. Could you change, that read only files are overwritten?

Best Regards,
Daniel
Daniel
 
Posts: 29
Joined: September 9th, 2013, 2:51 pm

Re: Publishing "read only" files

Postby Miloslav Beno » September 11th, 2013, 1:30 pm

Hi Daniel,

Thanks for letting us know.

I guess the best approach would be not to overwrite read-only files, as we should respect that. But while publishing prevent propagation of read-only file attributes or other type of attributes as hidden.

I'll let you know here when this is done (it shouldn't take long)

Thanks,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Publishing "read only" files

Postby Miloslav Beno » September 11th, 2013, 5:55 pm

Done. It will be included in the next preview.

Thanks,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Publishing "read only" files

Postby Jakub Misek » September 12th, 2013, 2:47 pm

This fix is already available at http://www.devsense.com/products/php-to ... ad/preview

Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Publishing "read only" files

Postby Daniel » September 13th, 2013, 5:52 am

Works, although it doesn't fix my issue.
Could you think about implementing an option/dialog to override read only files? Otherwise it is really annoying with vault as source control system.

Best Regards,
Daniel
Daniel
 
Posts: 29
Joined: September 9th, 2013, 2:51 pm

Re: Publishing "read only" files

Postby Miloslav Beno » September 13th, 2013, 3:49 pm

Hi Daniel,

I imagine this should work for most of the situations? As publish won't copy file attributes, this way you can publish read-only files many times as they won't be read-only in the destination.

e.g. when source file is checked-in under source control and therefore read-only on fs, it will be copied to destination without this attribute.

If files are read-only already at the destination we should respect it. (you'd have to remove attributes manually for the first time as previous publish did it wrong). But now it should be ok repeatedly.

This is standard approach, used also by standard Visual Studio Web Publish.

Thanks,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Publishing "read only" files

Postby Daniel » September 16th, 2013, 10:28 am

Hmm, ok. I think I can live with it ;)

Best Regards,
Daniel
Daniel
 
Posts: 29
Joined: September 9th, 2013, 2:51 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 64 guests

cron

User Control Panel

Login

Who is online

In total there are 64 users online :: 0 registered, 0 hidden and 64 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 64 guests