Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSMountServerVolumeSync



On 30/11/2005 01:23 Am, Vincent Le Normand wrote:

> Le 30 nov. 05 И 22:28, Mike Kluev a Оcrit :
> 
>> On Wed, 30 Nov 2005 11:56:52, Vincent Le Normand
>> <email@hidden>
>> wrote:
>> 
>>> I use FSMountServerVolumeSync in order to mount AFP volumes under Mac
>>> OS X 10.2 and more.
>>> 
>>> Unfortunately, it seems that this API does not work when user name or
>>> password contains some special characters. (like И)
>>> 
>>> Does anybody encounter the same problem? Is there a known workaround
>>> (AppleScript seems to have the same issue)?
>> 
>> Provided you can mount the volume by other means (e.g. in Finder)...
>> For test, try FSCopyURLForVolume (10.3+). Does it return URL in
>> slightly different form than the one you tried? Then, unmount
>> volume and try to mount it again with URL that was returned by
>> FSCopyURLForVolume. Does it work now?
>
> The URL is currently obtained by  FSCopyURLForVolume.
> 
> Error i get is an Authentication error.
> 
> This volume mount correctly in Finder.
> 
> I can't really give you sample code because source code cannot
> contains special character, but it's easy to create a simple test
> project.
> 
> Given the fact FSMountServerVolumeSync workgs with CFURL and
> CFStrings, i assume this cannot be an ancoding problem....

Oops, I've misread. I considered this is volume name that contains
special character, not user name. Looks like the name you pass must
be in particular normalization form. I'd put a break on
FSMountServerVolumeSync/Async in Finder (or rather in the actual
process that mounts volumes) and provided these APIs are called,
grab the username string passed and figure out the difference.

Mike

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.