Bug #64986 [Asn-Fbk]: is_readable cannot read UNC path

2013-06-17 Thread ab
Edit report at https://bugs.php.net/bug.php?id=64986edit=1

 ID: 64986
 Updated by: a...@php.net
 Reported by:mhhechanova at gmail dot com
 Summary:is_readable cannot read UNC path
-Status: Assigned
+Status: Feedback
 Type:   Bug
 Package:*Directory/Filesystem functions
 Operating System:   Windows 64 Bit
 PHP Version:5.4.5 x64
 Assigned To:ab
 Block user comment: N
 Private report: N

 New Comment:

Tested again with Win7, Server 2008 and winxp. No reproduce though. Creating 
files  
locally on the target server, sharing - and it works. 

As we cannot debug on your server, lets do another try. The same as you were 
accessing a share on \\127.0.0.1, please create a test share on the target 
server,  
create a file and share it with administrator. You could even try to create 
that 
file from the source machine. Then try with your PHP snippet.


Previous Comments:

[2013-06-12 07:49:19] mhhechanova at gmail dot com

@pajoye,

thank you for taking time to resolve this issue, however our development server 
is not connected to the internet.

As a reference, here's the server's configuration :

- Windows Storage Server 2008 R2 Standard
- PHP 5.4.5 x64 thread safe
- Apache 2.2.19 x64
- MySQL 5.6.11 x64

Thanks and regard,

Mo


[2013-06-12 07:43:35] paj...@php.net

we can't reproduce it in our (numerous) environment.

We have now two ways to solve this issue:

- provide access to the host+client so we can debug

- give us the exact versions of the windows client and server so we can try 
using 
the same configurations in our lab


[2013-06-12 06:54:59] mhhechanova at gmail dot com

is_readable(127.0.0.1\\test\\test.txt); //returns TRUE

However is_readable(servername\\sharename\\file.txt); still returns FALSE

***ALL PERMISSIONS to that folder is set to ALLOW


[2013-06-12 06:47:45] a...@php.net

Hi,

with \\127.0.0.1 i didn't mean explorer. Just create some test share like 
\\127.0.0.1\test\test.txt and try your PHP snippet. 

With 'full control' - as it might be different, again - are the checkboxes 
'read 
attributes' and 'read extended attributes' explicitly active on that file?

Thanks.


[2013-06-11 23:58:56] mhhechanova at gmail dot com

@ab, 

after executing this command :

** What happens if you try to access a share on \\127.0.0.1 ?

 - A new explorer window opens, displaying the shared folder on my local 
machine.

Thanks




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

https://bugs.php.net/bug.php?id=64986


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64986edit=1


Bug #64986 [Asn-Fbk]: is_readable cannot read UNC path

2013-06-12 Thread ab
Edit report at https://bugs.php.net/bug.php?id=64986edit=1

 ID: 64986
 Updated by: a...@php.net
 Reported by:mhhechanova at gmail dot com
 Summary:is_readable cannot read UNC path
-Status: Assigned
+Status: Feedback
 Type:   Bug
 Package:*Directory/Filesystem functions
 Operating System:   Windows 64 Bit
 PHP Version:5.3.26
 Assigned To:ab
 Block user comment: N
 Private report: N

 New Comment:

Hi,

with \\127.0.0.1 i didn't mean explorer. Just create some test share like 
\\127.0.0.1\test\test.txt and try your PHP snippet. 

With 'full control' - as it might be different, again - are the checkboxes 
'read 
attributes' and 'read extended attributes' explicitly active on that file?

Thanks.


Previous Comments:

[2013-06-11 23:58:56] mhhechanova at gmail dot com

@ab, 

after executing this command :

** What happens if you try to access a share on \\127.0.0.1 ?

 - A new explorer window opens, displaying the shared folder on my local 
machine.

Thanks


[2013-06-11 11:31:28] a...@php.net

What happens if you try to access a share on \\127.0.0.1 ?


[2013-06-11 11:10:42] mhhechanova at gmail dot com

Administrator account has full control.


[2013-06-11 11:06:40] a...@php.net

Could you please check via the gui, properties-security-advanced, if the user 
has the right to 'read attributes' and 'read extended attributes'? If it's not 
set, please do set and try again. That permission must be set on every path 
element.


[2013-06-11 10:47:43] mhhechanova at gmail dot com

Administrator account has read, write and execute permission to the given path. 
It 
still does not work...

thanks




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

https://bugs.php.net/bug.php?id=64986


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64986edit=1


Bug #64986 [Asn-Fbk]: is_readable cannot read UNC path

2013-06-12 Thread pajoye
Edit report at https://bugs.php.net/bug.php?id=64986edit=1

 ID: 64986
 Updated by: paj...@php.net
 Reported by:mhhechanova at gmail dot com
 Summary:is_readable cannot read UNC path
-Status: Assigned
+Status: Feedback
 Type:   Bug
 Package:*Directory/Filesystem functions
 Operating System:   Windows 64 Bit
 PHP Version:5.3.26
 Assigned To:ab
 Block user comment: N
 Private report: N

 New Comment:

we can't reproduce it in our (numerous) environment.

We have now two ways to solve this issue:

- provide access to the host+client so we can debug

- give us the exact versions of the windows client and server so we can try 
using 
the same configurations in our lab


Previous Comments:

[2013-06-12 06:54:59] mhhechanova at gmail dot com

is_readable(127.0.0.1\\test\\test.txt); //returns TRUE

However is_readable(servername\\sharename\\file.txt); still returns FALSE

***ALL PERMISSIONS to that folder is set to ALLOW


[2013-06-12 06:47:45] a...@php.net

Hi,

with \\127.0.0.1 i didn't mean explorer. Just create some test share like 
\\127.0.0.1\test\test.txt and try your PHP snippet. 

With 'full control' - as it might be different, again - are the checkboxes 
'read 
attributes' and 'read extended attributes' explicitly active on that file?

Thanks.


[2013-06-11 23:58:56] mhhechanova at gmail dot com

@ab, 

after executing this command :

** What happens if you try to access a share on \\127.0.0.1 ?

 - A new explorer window opens, displaying the shared folder on my local 
machine.

Thanks


[2013-06-11 11:31:28] a...@php.net

What happens if you try to access a share on \\127.0.0.1 ?


[2013-06-11 11:10:42] mhhechanova at gmail dot com

Administrator account has full control.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

https://bugs.php.net/bug.php?id=64986


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64986edit=1


Bug #64986 [Asn-Fbk]: is_readable cannot read UNC path

2013-06-11 Thread ab
Edit report at https://bugs.php.net/bug.php?id=64986edit=1

 ID: 64986
 Updated by: a...@php.net
 Reported by:mhhechanova at gmail dot com
 Summary:is_readable cannot read UNC path
-Status: Assigned
+Status: Feedback
 Type:   Bug
 Package:*Directory/Filesystem functions
 Operating System:   Windows 64 Bit
 PHP Version:5.3.26
 Assigned To:ab
 Block user comment: N
 Private report: N

 New Comment:

Could you please check via the gui, properties-security-advanced, if the user 
has the right to 'read attributes' and 'read extended attributes'? If it's not 
set, please do set and try again. That permission must be set on every path 
element.


Previous Comments:

[2013-06-11 10:47:43] mhhechanova at gmail dot com

Administrator account has read, write and execute permission to the given path. 
It 
still does not work...

thanks


[2013-06-11 10:46:09] a...@php.net

ping?


[2013-06-10 07:53:45] a...@php.net

Ok, despite it's not the complete output, from what I see there is an 
inheritance. That 
means if there was a deny in any superior object, it will override any allow on 
that file. 
Please try the following:

icacls /inheritance:r path to file
icacls path to file /remove:d my suer
icacls path to file /grant my user:(F,M,R,RX,W)

This way you disable inheritance and ensure the user has all the ACLs set. You 
can play 
with setting removing various ACLs to see the effect. Please consult you 
network admin.


[2013-06-10 01:02:00] mhhechanova at gmail dot com

@ab, here the result when issuing the command

icacls \\servername\sharename\file.txt --- (I)(F)
icacls \\servername\sharename --- (I)(OI)(CI)(F)


[2013-06-07 10:23:46] a...@php.net

I can reproduce the behaviour only if i set the file itself non readable to the 
user i'm under or everyone. Whereby the fact running something as administrator 
reveals nothing - in case administrator or everyone is denied on that path, 
here 
you are. This is most likely a file permission issue on your share.

Please post the output of the following commando on the file/share you have an 
issue with

icacls \\servername\sharename\file.txt
icacls \\servername\sharename




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

https://bugs.php.net/bug.php?id=64986


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64986edit=1


Bug #64986 [Asn-Fbk]: is_readable cannot read UNC path

2013-06-11 Thread ab
Edit report at https://bugs.php.net/bug.php?id=64986edit=1

 ID: 64986
 Updated by: a...@php.net
 Reported by:mhhechanova at gmail dot com
 Summary:is_readable cannot read UNC path
-Status: Assigned
+Status: Feedback
 Type:   Bug
 Package:*Directory/Filesystem functions
 Operating System:   Windows 64 Bit
 PHP Version:5.3.26
 Assigned To:ab
 Block user comment: N
 Private report: N

 New Comment:

What happens if you try to access a share on \\127.0.0.1 ?


Previous Comments:

[2013-06-11 11:10:42] mhhechanova at gmail dot com

Administrator account has full control.


[2013-06-11 11:06:40] a...@php.net

Could you please check via the gui, properties-security-advanced, if the user 
has the right to 'read attributes' and 'read extended attributes'? If it's not 
set, please do set and try again. That permission must be set on every path 
element.


[2013-06-11 10:47:43] mhhechanova at gmail dot com

Administrator account has read, write and execute permission to the given path. 
It 
still does not work...

thanks


[2013-06-11 10:46:09] a...@php.net

ping?


[2013-06-10 07:53:45] a...@php.net

Ok, despite it's not the complete output, from what I see there is an 
inheritance. That 
means if there was a deny in any superior object, it will override any allow on 
that file. 
Please try the following:

icacls /inheritance:r path to file
icacls path to file /remove:d my suer
icacls path to file /grant my user:(F,M,R,RX,W)

This way you disable inheritance and ensure the user has all the ACLs set. You 
can play 
with setting removing various ACLs to see the effect. Please consult you 
network admin.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

https://bugs.php.net/bug.php?id=64986


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64986edit=1


Bug #64986 [Asn-Fbk]: is_readable cannot read UNC path

2013-06-10 Thread ab
Edit report at https://bugs.php.net/bug.php?id=64986edit=1

 ID: 64986
 Updated by: a...@php.net
 Reported by:mhhechanova at gmail dot com
 Summary:is_readable cannot read UNC path
-Status: Assigned
+Status: Feedback
 Type:   Bug
 Package:*Directory/Filesystem functions
 Operating System:   Windows 64 Bit
 PHP Version:5.3.26
 Assigned To:ab
 Block user comment: N
 Private report: N

 New Comment:

Ok, despite it's not the complete output, from what I see there is an 
inheritance. That 
means if there was a deny in any superior object, it will override any allow on 
that file. 
Please try the following:

icacls /inheritance:r path to file
icacls path to file /remove:d my suer
icacls path to file /grant my user:(F,M,R,RX,W)

This way you disable inheritance and ensure the user has all the ACLs set. You 
can play 
with setting removing various ACLs to see the effect. Please consult you 
network admin.


Previous Comments:

[2013-06-10 01:02:00] mhhechanova at gmail dot com

@ab, here the result when issuing the command

icacls \\servername\sharename\file.txt --- (I)(F)
icacls \\servername\sharename --- (I)(OI)(CI)(F)


[2013-06-07 10:23:46] a...@php.net

I can reproduce the behaviour only if i set the file itself non readable to the 
user i'm under or everyone. Whereby the fact running something as administrator 
reveals nothing - in case administrator or everyone is denied on that path, 
here 
you are. This is most likely a file permission issue on your share.

Please post the output of the following commando on the file/share you have an 
issue with

icacls \\servername\sharename\file.txt
icacls \\servername\sharename


[2013-06-07 09:30:28] mhhechanova at gmail dot com

For reference please see the code below :

Apache runs as Administrator Account

?php
  $isReadable = is_readable(servername\\sharename\\file.txt); //returns 
false
  $fileExists = file_exists(servername\\sharename\\file.txt); //returns 
true
?


[2013-06-07 09:10:06] paj...@php.net

@ab can you try to repro it pls?


[2013-06-07 08:42:38] mhhechanova at gmail dot com

Yes its readable...Apache runs using Administrator account.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

https://bugs.php.net/bug.php?id=64986


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64986edit=1