HTTPService redirect

I'm trying to use J2EE Servlet form based authentication by
posting to the well-known url j_security_check. In my web.xml file
I specify FORM authentication and my custom Flex login page. Upon
accessing a protected resource, I am redirected to my login page as
expected. Upon successful login the server sends an HTTP redirect
back to the protected resource, but I can't figure out how to
capture this redirect. My fault method will get called if I use the
wrong password, however the result method does not get called,
probably because it is a redirect. The server is actually
authenticating the user, because if I access the protected resource
again in the same session it works fine.
How can I get the HTTPService to follow a redirect, or at
least how can I get notification that the call has completed?
I'm using Tomcat in JBoss and the following code demonstrates
the problem, even without configuring web.xml.
Thanks,
Brian
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="
http://www.adobe.com/2006/mxml"
horizontalScrollPolicy="off"
verticalScrollPolicy="off"
defaultButton="{login}"
>
<mx:Script>
<![CDATA[
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
private function onResult(event:ResultEvent):void {
// Never reached
trace(event);
private function onFault(event:FaultEvent):void {
// Called after unsuccessful login
trace(event);
]]>
</mx:Script>
<mx:HTTPService id="loginService" url="j_security_check"
method="POST" result="onResult(event)" fault="onFault(event)">
<mx:request>
<j_username>{username.text}</j_username>
<j_password>{password.text}</j_password>
</mx:request>
</mx:HTTPService>
<mx:Panel id="panel" title="Login">
<mx:Form id="form">
<mx:Label id="directions" text="Please Login:"/>
<mx:FormItem label="Username">
<mx:TextInput id="username"/>
</mx:FormItem>
<mx:FormItem label="Password">
<mx:TextInput id="password" displayAsPassword="true"/>
</mx:FormItem>
<mx:FormItem id="passwordConfirmItem" label="Confirm:"
visible="false">
<mx:TextInput id="passwordConfirm"
displayAsPassword="true"/>
</mx:FormItem>
</mx:Form>
<mx:ControlBar>
<mx:Spacer width="100%" id="spacer1"/>
<mx:Button label="Login" id="login"
click="loginService.send();"/>
</mx:ControlBar>
</mx:Panel>
</mx:Application>

Bump
I am facing the same problem right now, and I can't seem to find a solution.

Similar Messages

  • HTTPService with a redirected URL

    I'm developing a facebook app with flex that calls a
    HTTPService to
    http://myurl.com/myservice.php
    in this page I do a facebook login so it is redirected to
    http://login.facebook.com/
    and then back to
    http://myurl.com/myservice.php.
    My problem is that the response that I get in flex is the
    redirecting script from
    http://login.facebook.com/
    and not the final result of my page
    http://myurl.com/myservice.php.
    How can I solve this issue?

    I am not sure i fully understand your issue.. or how facebook
    works.. (if you can by pass that redirect or not)
    but if you send a httpservice...
    and store that data...
    i would hunt for the valid login stuff..
    then dump that data and call your url directly with a new
    httpservice..
    i wouldn't worry about any redirect..
    I am not sure if that works for you... like i said...I am not
    fully aware of how that works...

  • Flex's HTTPService dispatches a ResultEvent instead of a FaultEvent

    Flex's HTTPService dispatches a ResultEvent instead of a FaultEvent
    I would like to know when does Flex's HTTPService launches a ResultEvent and when does it dispatches a FaultEvent.
    When the servers response contain a 401 http status code error (Unauthorized), the HTTPService is dispatches a ResultEvent instead of a FaultEvent. I would assume that it should dispatch a FaultEvent. Am I correct? If not please tell me.
    The amazing thing is that when I'm running the application under the Flash Builder 4.7's Android Simulator, it does dispatch a FaultEvent, but when I run it on the device, it dispatches the ResultEvent. Why is this happening? Any ideas?

    I created an application to test what happens on both scenarios (Flash Builder's Simulator and Android Device) and compare the results. Next is the code.
    Test application code
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
       <fx:Script>
      <![CDATA[
      import mx.rpc.events.FaultEvent;
      import mx.rpc.events.ResultEvent;
      ///////////////////////////// USING HIGH LEVEL COMPONENT (FLEX) //////////////////////////////////////////
      * Checks if all the necesary data was entered by the user.
      protected function configHandler(event:MouseEvent):void
      textArea.text = "Connecting to server using a high level component";
      configurationService.url = "http://10.0.0.221/api/v1/room/current/";
      configurationService.headers.Accept = "application/json"; 
      configurationService.send();
      textArea.appendText("\n...");
      * Handles the first phase (getting basic application information) of the configuration.
      * Stores the retrieved data from the server and calls the second phase of the process.
      protected function serviceResultHandler(event:ResultEvent):void
      textArea.appendText("\n");
      textArea.appendText("Entering serviceResultHandler \n");
      textArea.appendText(" HTTP status code is: " + event.statusCode);
      * Handles errors within the first phase (getting basic application information) of the configuration process.
      protected function servicefaultHandler(event:FaultEvent):void
      textArea.appendText("\n");
      textArea.appendText("Entering servicefaultHandler \n");
      textArea.appendText("HTTP status code is: " + event.statusCode);
      ///////////////////////////// USING LOW LEVEL COMPONENT (FLASH) //////////////////////////////////////////
      * Checks if all the necesary data was entered by the user.
      protected function config2Handler(event:MouseEvent):void
      textArea.text = "Connecting to server using a low level component \n ...";
      var loader:URLLoader = new URLLoader();
      var request:URLRequest = new URLRequest("http://10.0.0.221/api/v1/room/current/");
      request.requestHeaders = new Array( new URLRequestHeader('Accept','application/json'));
      try {
      loader.load(request);
      } catch (error:Error) {
      trace("Unable to load requested document.");
      loader.addEventListener(Event.COMPLETE, completeHandler);
      loader.addEventListener(Event.OPEN, openHandler);
      loader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
      loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
      loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
      loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
      private function completeHandler(event:Event):void {
      var loader:URLLoader = URLLoader(event.target);
      textArea.appendText("\n");
      textArea.appendText("Entering completeHandler \n");
      textArea.appendText("completeHandler: " + loader.data + "\n");
      var vars:URLVariables = new URLVariables(loader.data);
      textArea.appendText("The answer is " + vars.answer);
      private function openHandler(event:Event):void {
      textArea.appendText("\n");
      textArea.appendText("Entering openHandler \n");
      textArea.appendText("openHandler: " + event);
      private function progressHandler(event:ProgressEvent):void {
      textArea.appendText("\n");
      textArea.appendText("Entering progressHandler \n");
      textArea.appendText("progressHandler loaded:" + event.bytesLoaded + " total: " + event.bytesTotal);
      private function securityErrorHandler(event:SecurityErrorEvent):void {
      textArea.appendText("\n");
      textArea.appendText("Entering securityErrorHandler \n");
      textArea.appendText("securityErrorHandler: " + event);
      private function httpStatusHandler(event:HTTPStatusEvent):void {
      textArea.appendText("\n");
      textArea.appendText("Entering httpStatusHandler \n");
      textArea.appendText("httpStatusHandler: " + event);
      private function ioErrorHandler(event:IOErrorEvent):void {
      textArea.appendText("\n");
      textArea.appendText("Entering ioErrorHandler \n");
      textArea.appendText("ioErrorHandler: " + event);
      ]]>
       </fx:Script>
       <fx:Declarations>
       <s:HTTPService id="configurationService"
       result="serviceResultHandler(event)" fault="servicefaultHandler(event)"/>
       </fx:Declarations>
       <s:Button label="High Level" click="configHandler(event)"
       horizontalCenter="100" top="20" />
       <s:Button label="Low Level" click="config2Handler(event)"
       horizontalCenter="-100" top="20"/>
       <s:TextArea id="textArea"
       left="20" right="20" top="{configButton.y + configButton.height + 20}" bottom="20"/>
    </s:View>
    Results on the Flash Builder Simulator
    When pressing the "Low Level" button (URL Loader) the text on the text area was:Connecting to server using a low level component ... Entering openHandler openHandler: [Event type="open" bubbles=false cancelable=false eventPhase=2] Entering httpStatusHandler httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2  status=401 responseURL=null] Entering ioErrorHandler ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://10.0.0.221/api/v1/room/current/" errorID=2032]
    When pressing the "High Level" button (HTTPService) the text on the text area was:Connecting to server using a high level component ... Entering servicefaultHandler HTTP status code is: 401
    Results on the Android device
    When pressing the "Low Level" button (URL Loader) the text on the text area was:Connecting to server using a low level component ... Entering openHandler openHandler: [Event type="open" bubbles=false cancelable=false eventPhase=2] Entering httpStatusHandler httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2  status=401 redirected=false responseURL=null] Entering completeHandler completeHandler:
    When pressing the "High Level" button (HTTPService) the text on the text area was:Connecting to server using a high level component ... Entering serviceResultHandler HTTP status code is: 401
    When I ran the app on the Flash Builder's Simulator, both components worked as expected, meaning that they dispatched a FaultEvent and an IOErrorEvent. On the Android device each component misbehaived, the first dispatching a ResultEvent and the second one an Event.COMPLETE event.
    Notice that on both scenarios, both components percieve the correct HTTP status code.
    I would assume that there is a problem with the runtime, right? I'd appreciate your comments on the matter.

  • Problem with HTTPService

    Hi there, I have developed an application that has a Buy Now
    Button to the PayPal website. I used the HTTPService to verify the
    purchased at PayPal:
    <mx:HTTPService id="paymentRequest" url="
    http://www.paypal.com/cgi-bin/webscr"
    useProxy="false"
    method="POST" resultFormat="text"
    result="getResultOk(1,event)" fault="getResultOk(0,event)"
    showBusyCursor="true">
    <mx:request xmlns="">
    <cmd>_notify-synch</cmd>
    <tx>{tx.toString()}</tx>
    <at>{at.toString()}</at>
    </mx:request>
    </mx:HTTPService>
    When this application web site is redirected back from the
    PayPal shopping cart, a tx number is read and the application calls
    paymentRequest.send() to do the verification process but then i got
    this error:
    Error sending data!!
    [FaultEvent fault=[RPC Fault faultString="Security error
    accessing url"
    faultCode="Channel.Security.Error" faultDetail="Destination:
    DefaultHTTP"]
    messageId="E46E9181-EA3E-8B41-5869-62767B67BD60"
    type="fault" bubbles=false cancelable=true eventPhase=2]
    However, if i hard coded the tx number and execute the
    application locally, it works fine it is sending to PayPal and i do
    get either the "SUCCESS" or "FAIL" message back... So i wonder if
    anyone can please help me here? Why when this application is put on
    web server and being accessed from the server's url the HTTPService
    call is not sending??
    Many thanks.
    Richie

    Hi Richie,
    your application can only access data from servers, which
    allow access per crossdomain.xml or from your server. That´s a
    security thing which comes with the flash player. ( if paypal
    didn´t allow access to their content your can´t access )
    The flexbuilder/debug enviroment runs in a trusted sandbox,
    which allows access. This is a big different between the debug and
    the release enviroment, which should at least be made configurable
    by Adobe (for the flex builder).
    best regards,
    kcell

  • Mx.rpc.http.HTTPService, HttpResponse.sendRediect(url)

    Hi guys,
    I am using HTTPService to invoke my server side servlet and i passing some parameters using "data" field. In servlet side based on the parameter it will redirects and some other URL. Servlet code is below...
              doPost(request,response){
                   response.sendRedirect(url);
    How can I get the URL in flex side. Here I am using HTTPService at Flex client side. This is the service I have to use at FlexClient or any other.
    Could please help me to solve this problem...

    Guys,
    I was able to get the request headers and response url from AIR application using URLLoader. below is the code...
                   var url:URLLoader = new URLLoader();
                    url.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS,test);
                   ul.load(URLRequest(myurl));
              private function status(event:HTTPStatusEvent):void{
                    Alert.show("1::"+ObjectUtil.toString(event.responseHeaders));
                    Alert.show("2::"+ObjectUtil.toString(event.responseURL));
    But I want same functionality in WebApplication. I am unable to add listener for "HTTPStatusEvent.HTTP_RESPONSE_STATUS".
    Please help.....

  • IIS 7.5 URL Rewrite: Hit specific page of a web application but should be redirected to another application's page

    I have deployed 2 different web application on IIS 7.5 running on Windows Server 2008 R2 but on different port numbers i.e. one application deployed on port no. 1776 and another on 8091. I want to rewrite URL in such a way that if i hit any page of first
    application such as default.aspx then it will be redirected to particular page of another application along with some changes in url.
    Example: if i access any page from first application like:
    http://g2wv126rbsc:1776/sites/main/commercial/commercial-solutions/financing/default1.aspx
    then it should redirect to specific page of another application along with some changes in url:
    http://g2wv126rbsc:8091/main/commercial/commercial-solutions/financing/default2.aspx
    Note: In above mentioned url, also removed "sites".
    I tried to create a inbound rule through URL Rewrite module (installed on IIS 7.5) by selecting Action as "Rewrite" but didn't find any success.
    I need some examples if anyone has come across same kind of issue.
    Thanks in advance.

    Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net ).

  • How to pen new window while redirecting to a page

    Hi,
    I have a jsppage 1,jsppage 2 and aspPage. In jsp2 I am getting the
    values from jsp1 using request.getParameter("hhhh").Once I get
    all values in jsp2 , as soon as I got the values I need to redirect to asp from jsp2.
    I don't have any form or any button in jsp2.When I do submit in jsp1,
    immediately it has to open asp page in new window. My question is how
    I open the asp in new window in this redirection case .....?.
    I tried this way but not working ...
    WebsiteUtils.sendRedirect(request,response,window.open("ASP page"));
    I know if I have submit button in jsp2 I can write a javascriptfunction
    to opennew window but here the case is different....
    Appreciate your reply.
    Thanks

    On jsppage1, instead of using a from submit button, you can create abutton and write th onClick as
    <input type="button" value="OK" onClick="window.open('jsppage2.jsp','win2');">
    Now in Jsppage2.jsp, after doing all the processing, use sendRedirect to call jsppage3.jsp.
    Since jsppage2 is never being displayed, page3 will bw the one which will be shown in the new window opened by the name win2 on onClick.
    If I have understood your requirement correctly, then this should work for you as I have tried it out.

  • How can i redirect to with one button to different pages!

    Hi All,
    For any application, for the first time,if a new table exists then there will no data in that table.
    based on this scenerio,in my application,i am handling apex validation staying that "you have no data. Please click here to go Reset symbol page.
    when it redirects to Reset symbol i am providing a text box and with a button. Once there enter a symbol and click on button it will inert in that table and again redirects to Home page for say-39.
    simillarly what are the functionality available in home page i had implemented same thing but only it differs page no for say-115.
    In both the scenerio's i will be redircting reset Symbol page where there can insert a symbol explained in above scenerio case.
    My problem is when i am throwing the error msg from page-39 i am redirecting to Reset symbol and when there enter symbol and click on button again i will be redirection t page -39 because the error had came from page-39.
    If the same error comes from page-115 then also i will redirecting to same Reset Symbol where there will be entering symbol and click on button, in this case it should redirect to page-115 instead of page-39 because i have got error from page-115 but not from page-39.
    How to handle the above scenerio, please help me out.
    Thanks in advance,
    Anoo.

    Hi Andy,
    Thanks for your suggestion, it is working fine..But i am facing one problem in page 115, i have two regions and both regiosn have same name but only difference is items names.. when i had tried to rediect to page-115 the umwanted one regions is showing instead of expected region. It is getting failed here bec it is rediecting to differnet region.
    Any suggestion on this!
    Thanks,
    Anoo..

  • How can I redirect a URL with aliases or redirect?

    Hi all,
    I have this partially working on my servers, but am not 100% sure I am doing this corerectly.
    Basically I have a Web site domain, let's call it product.com
    In server admin I have a site set up called www.product.com under port 80 and another under port 443 for my SSL pages.
    Here is my problem: If a customer types "product.com" in their favorite Web browser address bar, I would very much like the server to automatically redirect them (if that's the correct term) to "www.product.com"   Currently they would end up on http://product.com/index.html when they key in the URL without the "www"  I am concerned this is hurting my SEO and Google analytics as well as being an issue internally for PHP pages that are coded to the "www" addresses.
    I also have a sign-in page for my clients at the address: http://www.product.com/lib/app/auth/authenticate.php.  When a client types "signin.product.com" I want them to go to that long URL for the sign-in page.  I have gotten this to work by setting up a new Site in Server Admin > Web > Sites named "signin.product.com" which then has a single entry on the redirect tab with the URL of the signin page above.  Not sure if that could have been done on the core Web site (www.product.com) or if that was the way I should do it under Server Admin or if there is an easier way to do it.
    Primarily I want to be able to handle redirecting any type of subdomain "xxx.product.com" to another address.  The primary one I want to deal with now is the "product.com" redirecting to "www.product.com".....  Should I just set up another Web site in Server Admin with a redirect like I did for "signin.product.com"?
    Any advice on doing proper redirection appreciated.
    -- Jon

    There are so many ways you could do this. You need to pick what's right for you.
    Some of the options are available through the GUI. Many more are available once you get under the hood and drive Apache directly. Your skill and comfort level will undoubtedly influence which path you take.
    At the first level, Apache groups sites together by the hostname used to access the site.
    If you want 'www.product.com' to go to the same place as product.com you could create one site with an alias, so that Apache uses the same 'site' configuration for both hostnames.
    If you want the two hostnames to do different things then you could create two sites - in this case 'www.product.com' has the full, normal site and 'product.com' has a redirect to the equivalent page on 'www.product.com'.
    Within www.product.com you can also setup selective redirects to the HTTPS site. This will ensure that things like the login form are accessed securely. In this way your HTTPS site is another 'site' in Apache with the SSL configuration.
    One caveat in your post is the use of 'signin.company.com'. You don't describe your network, but if you have only 1 public IP address then this is going to be an issue since you cannot easily run multiple SSL sites on a single IP address - you'll need a different public IP address for each SSL site. This is because the SSL negotiation occurs before Apache knows what site the request is for, and therefore it doesn't know which SSL certificate to use for the connection.
    So, in general, you'll create one site for each variation in your web setup - one for 'www.product.com/port 80', one for 'www.product.com/port 443', one for 'product.com/80' (which redirects to 'www.product.com'), and so on.

  • Using a Variable in HttpService url attribute

    I have a dynamic url defined below
    public var forecastURL:String = "
    http://www.weather.gov/forecasts/xml/SOAP_server/ndfdSOAPclientByDay.php?lat="
    + latitude + "&lon=" + longitude +
    "&format=12+hourly&startDate=" + todaysDate +
    "&numDays=" + numberDays + ""
    I would like to use the var without the {} bind. The compiler
    complains if the url is not surrounded in quotes. This should be
    simple? How can I use a var within the url attribute without the
    bind brackets?
    <mx:HTTPService
    id="forecastRequest"
    url = "{forecastURL}" result="resultHandler(event)"
    />

    Not Possible..why don't you use the subtitle box instead of help url?

  • Using a variable in Struts config, to redirect

    In the struts-config file,
    to redirect to a different site, I can use
    redirect="true"
    and mention full path, in my <forward path=
    variable.
    1. Is there a better way to do it?
    2. Since I have to do it in multiple places, is it possible to use a variable? I mean, something like this
    <forward
    name="success"
    path="URL/abc.html" />
    Where URL is a variable name that the site path? This way, I can reuse the variable to redirect to other pages too (xyz.html, for example)

    Hi there,
    I don't know...is there only one URL you are using ore are there more than one? Because if it's the same path everytime you can try using this:
    <forward
    name="success"
    path="./abc.html" />
        ./               // This is the shortcut for the directory you are currently using.
        ../              // This is the shortcut for the directory above the one you are currently using.This code should do it. If not, try to create a var named for example "vpath" and put it like this:
    <forward
    name="success"
    path=vpath+"abc.html" />Try and tell if it worked ;)
    X--spYro--X

  • How do I NOT get automatically redirected to www04.sub.su.se:#### when typing a certain address in the address field which has worked well until today (still works well in IE).

    There are some databases/sites that I have access to when having an IP number on university campus or with a proxy. This worked well in firefox until today. When trying to visit those pages the addresses automatically change a second or two after pressing enter to something like: http://www04.sub.su.se:###/ combined with showing random webpages in the window. This seems to be something associated with firefox since I still have access to the pages in internet explorer.
    For example:
    If I write http://www.isiknowledge.com/ the address changes to http://www04.sub.su.se:2133/cgi-bin/[email protected].
    If I want to get to scholar.google.se I get redirected to http://www04.sub.su.se:2087/
    When wanting to visit http://pubs.acs.org/about.html I will end up here: http://www04.sub.su.se:2110/about.html
    This problem only occurs on services where I in normal case can get access to articles in scientific journals. I have not encountered this problem in other cases/websites.
    I have tried to scan my laptop for viruses with Symantec Endpoint Protection and SuperAntiSpyware 4.45.1000. But nothing suspicious was found.

    Hi Magsrobby,
    Welcome to the forum and thanks for posting. I'm really sorry to hear you've had so many problems. I can look into this for you if you wish. Drop me an email with the details. You'll find the "contact us" form in the about me section of my profile. Once I have the details we'll take it from there.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Folder redirection to a new location is not working

    Currently in SCM we have all Windows 8 users Documents and Desktop redirected to a users home folder in a Netapp share.  We are planning on moving them to a Windows File Server.  As a test I moved my home folder in AD to the new share.  But
    SCM is still redirecting my Documents and Desktop to the old share.  I also tried excluding my user account from the user collection used for Folder Redirection.  Created a user collection and configuration item just for my account and SCM is still
    trying to redirect to the old share.
    Help please
    Thanks

    I have created a user collection with my id as a test user and also under user data and user profiles I created a user data and profiles configuration item under Folder redirection.   For Desktop and documents I selected REdirect to remote and for configure
    folder redirection path I checked Redirect to the users home folder .  In Active Directory I made the new Windows Server share my home directory.   
    Thanks

  • ITunes losing all music and won't redirect to correct folder

    Hi there,
    This morning, iTunes has lost all my music. The whole library has the little exclamation mark. Using the 'Find info' comand, I can see that iTunes is looking for them in the music folder of my internal drive. However, they've always been kept on an external drive, and when I redirect iTunes to an individual track in it's correct location, and it asks me if I'd like to use the location to find the other missing files, it fails to correct the location of the rest. I am getting this message: “iTunes was able to find 1 of 18083 missing files.” Rather frustrating...
    I'm using iTunes 10, on OS 10.7.3
    I have the correct iTunes media folder indicated in the advanced preferences tab.
    In case it's relevant, I'm also syncing with a new iPhone 4s, which I've only had for about 3 weeks, though in terms of audio, I only sync recently added albums + podcasts.
    And an additional odd behaviour that I noticed this morning was that in my iTunes Media folder, outside of the Music folder,   several artist folders had appeared, each containing an album folder and one or several songs from that album, the rest of which were all in their normal locations inside the Music folder, minus the tracks in the newly-appeared folders. All very odd.
    Thanks for any help,
    Emma

    I have finally solved this issue.  Here is the solution:
    1. Open iTunes
    2. Select Music
    3. In the upper right hand corner select Albums.
    4. Under "All Albums" highlight the first album, then scroll all the way to the bottom of the page, hold down the shift key and select the last album.
    5. All albums should now be selected.
    6. Place the cursor over one of the albums. Press with 2 fingers on the trackpad to bring up the menu.
    7. Select "Check All"
    8. Congratulations - no more grayed out songs and they will sync now.
    9. Go into your iPhone sync and check the songs you want to transfer and click the sync button.
    I hope this helps you to resolve your issue.
    NO MAX

  • Microsoft-Windows-Folder Redirection Error 502. CSC database locked by another user

    Dear all,
    We are finalizing our Windows 7 migration where we migrated 500+ clients. In our enterprise concept we implemented RUP (Roaming User Profiles) and Redirected Folders for all
    users. The Redirected Folders have been by enabled by a single GPO which redirects all folders from
    AppData to
    Searches \\servername.domain.name\documents$\%username%.
    Problem:
    The RUP and Redirected folders solution works fine until a new user wants to logon. This new user has been migrated to RUP and Redirected on another system and
    he just wants to work on another workplace or gets a temporary pc. What happens is that redirected folders do not work. The user gets a message that the folder is not reachable and desktop is empty.
    Troubleshooting:
    Soon I found out that something was being locked. If we used a user account which had working Redirect Folders than this
    worked for that user. An event of 10 was logged in OfflineFiles area of EventViewer to reconnect the path which was configured in the GPO.
    This is example screenshot. It says "Error on Open Folder. \\server.domain.name\documents$\%username%\Desktop refers to a location that is unavailable. It could be on a hard disk
    on this computer, or a on a network. Check to make sure that the disk is properly inserted, or that you are connected to the Internet or your network, and then try again. If it still cannot be located, the information might have been moved to a different location."
    These symptoms happen randomly and not on all workstations. The pain here is when it happens on a portable computer. For desktop we disabled the "Disable Offline Files' in "Manage
    Offline Files" control panel and then reboot. After the reboot the folders are directed
    and it works without these errors... On portable computer we can't use this work around as they need to work offline.
    If I connect to the share without the FQDN like \\servername\documents$\%username%\Desktop than this works fine and user can access all folders. When I try the FQDN path which is
    configured in the GPO to redirect user to like \\servername.domain.name\documents$\%username%\Desktop than it fails with this message. I personally think because the C:\Windows\CSC database is locked by the previous user who has been logged on this system.
    An example of the event generated in the Applications Event viewer part (I removed some username and server path):
    Log Name:      Application
    Source:        Microsoft-Windows-Folder Redirection
    Date:          1-2-2011 17:40:11
    Event ID:      502
    Task Category: None
    Level:         Error
    Keywords:     
    User:          domain\ivan
    Computer:      computer.domain.name
    Description:
    Failed to apply policy and redirect folder "Videos" to "\\servername.domain.name\documents$\ivan\Documents\My Videos".
     Redirection options=0x1001.
     The following error occurred: "Can not create folder "\\\servername.domain.name\documents$\ivan\Documents\My Videos"".
     Error details: "Access is denied.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Folder Redirection" Guid="{7D7B0C39-93F6-4100-BD96-4DDA859652C5}" />
        <EventID>502</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2011-02-01T16:40:11.486983400Z" />
        <EventRecordID>2754</EventRecordID>
        <Correlation ActivityID="{3211E6FB-2801-456D-BE6E-66AAE150A4DC}" />
        <Execution ProcessID="968" ThreadID="5856" />
        <Channel>Application</Channel>
        <Computer>computer.domain.name</Computer>
        <Security UserID="S-1-5-21-3705223304-2632712944-1292073641-26755" />
      </System>
      <EventData Name="EVENT_FDEPLOY_FailedToApplyPolicy">
        <Data Name="FromFolder">Videos</Data>
        <Data Name="ToFolder">\\servername.domain.name\documents$\ivan\Documents\My Videos</Data>
        <Data Name="Options">0x1001</Data>
        <Data Name="Error">Can not create folder "\\servername.domain.name\documents$\ivan\Documents\My Videos"</Data>
        <Data Name="ErrorDetails">Access is denied.
    </Data>
      </EventData>
    </Event> 
    Something like this I see in the Application Eventviewer:
    Environment:
    Windows 7 Enterprise client with patches until 1-Nov-2010
    Windows Server 2008 R2 for the Documents$ share
    Windows Server 2003 R2 as the domain controller
    I have tried all different option even to rebuild the CSC database but this also was not helping. I hope we are not dealing with a bug.
    Any help is much appreciated.
    Best regards, Ivan Versluis http://www.networknet.nl

    Ivan and SteveDIG - Thanks for taking the time to post detailed information about what you have found.  I have found the same things over the past few months and have been working with Microsoft to resolve this.  Like Ivan, I have been told by
    MS that this is a design problem in Windows 7, but they did admit it is a bug and did not charge me for the case.  That was the good news.  The bad news was that the problem is so 'deep' in Windows 7 that it will not be fixed until Windows 8 and
    the CSC engineering team in Redmond has rejected several requests to fix this issue in Windows 7 from several customers.  I personally feel we should have hauled our TAM in over this, but that wasn't my call so we haven't attempted to get an attitude
    change from MS.
    <RANT> I find this completely outrageous.  Windows is supposed to be a multi-user operating system suitable for deployment to mobile workforces spread around the world and often using slow VPN links.  Offline folders, folder redirection,
    slow link detection, etc. are all great on paper and as I did the design work for the W7 solution I've just built I sold these advantages heavily.  I now have serious egg on my face and am not happy.  Like others here I missed this in testing as
    multiple users are a fringe for us, but still important, I unfortunately didn't think to specifically test for multiple users, though I tested the features thoroughly and was happy with the results when used on single user machines.</RANT>
    As identified above, this issue manifests when more than one user uses a machine and their Offline folders (all redirected folders are configured this way by default) are in an offline state when the first user logs off.  The second user cannot access
    this 'offline' share so folder redirection fails.  We get burnt as we have latency=0 configured for slow link detection with Offline folders so users always work offline.  This is partly because of WAN optimisers in the network that lie to Windows
    so the online/offline transition doesn't work on slow links (not MS's fault), and partly because it made sense for other reasons.
    The workaround Microsoft and I came up with for our environment was to use individual file shares for each user.  We had been using a common file share with each user folder under that file share.  Changing to an individual share for each users
    means the share is not locked by the previous user.
    Examples
    This would cause a problem if John then Emma logged on to the same machine. Folder redirection would fail for Emma:
    \\FileServer1\Users$\john
    \\FileServer1\Users$\emma
    So would this if DFS was used
    \\my.domain\users\john            (points to \\FileServer1\Users$\John)
    \\my.domain\users\emma          (points to \\FileServer1\Users$\Emma)
    This would fix the problem:
    \\FileServer1\John$
    \\FileServer1\Emma$
    Unfortunately we then figured we could move these shares behind DFS like so:
    \\my.domain\homes\john             (points to \\FileServer1\John$)
    \\my.domain\homes\emma          (points to \\FileServer1\emma$)
    This was wrong.  The problem returned.  I assume the share that is being locked is now the DFS root and not the user share.
    The operations team here is very reluctant to go with direct access to the file servers and not use DFS as that will create issues for them in the future when they need to make file server changes.  I sympathise with them but can't see an alternative
    at the moment as we are deploying W7 and can't stop.  If I'd picked this up earlier a third party product might have been the solution (MS actually suggested this when I opened my case).
    I hope the information about individual shares above is helpful to someone.  Otherwise I don't really have more to add but I needed the rant :-)
    <RANT>BTW.  Has anyone tested changing a user’s home directory path once it is cached?  Try it. Test a scenario where you move the user from one file server to another.  You will not enjoy the results.  I'll say no more
    than this as it is off topic, but it shows the lack of investment in the CSC feature in Windows.  Very disappointing</RANT>

Maybe you are looking for

  • HT201335 Airplay Mirror Poor Image Quality on CBS app - help?

    Airplay mirror from iMac/iPad to HD TV w/Apple TV has a Poor Image Quality when watching network shows via for example the CBS.com site or the CBS app. The image looks dark, not HD at all. My internet speed/performance is obviously not the issue beca

  • Ican't login on my server

    I have make a mistake with the installation of the server software on a mac mini now a can not login. wrong name ore password. booting from the instalatin cd, starting up with holding the C button will not work, also i can not starting up with holdin

  • Won't load streaming videos.

    Ok.. Youtube works, but other websites that stream videos on websites like Viddler and the like WILL NOT load at all. I just get the gear loading symbol and nothing happens. Sometimes if I leave the page the video will show right before I leave. I've

  • Query on PPDS Scheduling

    Hi all, We are using PPDS in our scenario. We use PDS & dynamic pegging.  We have semi finished product(SF) and Final product(F) in our BoM.  Once the SF is made ready, it has to be consumed within 3 hours to make the final product F.  There is capac

  • Metalink note 399737.1: Is there a 10.2.0.3.0 client?

    Metalink Note 399737.1 says that the fix is provided in 10.2.0.3.0 client and further recommends applying a server patch of 10.2.0.2.0 to a client installation. This is intended to solve "Login With SQLDriverConnect Fails With ORA-00022 Using Oracle1