Tuesday Nov 27, 2007

Mac accessing WebDAV


I installled Sun Java System Web Server 7.0U1 and set up WebDAV a few days ago. Today, I found some interesting entries in access log file. It appears that these were logged when a Mac OS X machine accessed the WebDAV.

There are many entries where the filename begins with "._" . With some googling, I found these are "Resouce fork".


# grep '12x\\.23n\\.nnn\\.20n.\*\\._.\*404 292' /var/opt/SUNWwbsvr7/https-my_host.my.domain/logs/access \\
|cut -c53-|uniq -c|head

9 "PROPFIND /davshare/._. HTTP/1.1" 404 292
5 "PROPFIND /davshare/._sys HTTP/1.1" 404 292
6 "PROPFIND /davshare/._MIS HTTP/1.1" 404 292
6 "PROPFIND /davshare/._Marketing HTTP/1.1" 404 292
6 "PROPFIND /davshare/._iTunes HTTP/1.1" 404 292
5 "PROPFIND /davshare/._ftproot HTTP/1.1" 404 292
6 "PROPFIND /davshare/._album HTTP/1.1" 404 292
4 "PROPFIND /davshare/._Admin HTTP/1.1" 404 292
  1. "404 292" is the error code. Possibly for 'Object not found'.
  2. None of these 8 entries exists on file system.
  3. First entry, which is "._.", doesn't make sense to me. Is it a resource fork for / directory?
  4. First column is the # of retries Mac tried to find the object in a fraction of second. It is not clear what's the default retry times. 4 or 5 or 6?
Then, there are non resource fork objects Mac tried to access.
# grep '12x\\.51x\\.35\\.2x3.\*404 292' /var/opt/SUNWwbsvr7/https-my_host.my.domain/logs/access \\
|grep -v '\\._'|cut -c53-|head

"PROPFIND /davshare/mach_kernel HTTP/1.1" 404 292
"PROPFIND /davshare/.Spotlight-V100 HTTP/1.1" 404 292
"PROPFIND /davshare/Backups.backupdb HTTP/1.1" 404 292
"PROPFIND /davshare/.metadata_never_index HTTP/1.1" 404 292
"PROPFIND /davshare/.DS_Store HTTP/1.1" 404 292
  1. .DS_Store file is not necessarily accessed for all directories. I can't detect any pattern.
  2. mach_kernel:  Is the Mac trying to figure out whether it's bootable drive?
  3. Backups.backupdb: Is the Mac trying to detect whether drive contains backup image?
  4. .metadata_never_index: This is obviously a hint to crawler/indexer.

About

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today