AIR Badge + RewriteRule fails - Downloaded file is not an air file

Hi everyone!
I'm not entirely sure my problem comes from RewriteRule but I've searched this forum for topics on corrupted AIR files and the Install Badge and tried almost every possible tip with no luck so I thought maybe my special issue comes from it...
Here we go:
I have a server-side script that builds AIR apps which are supposed to be installed (via an Install Badge). Those AIR apps are not stored at a public URL (for security reasons) but read (via PHP) when a specific URL is called. Let me give you an example (with fake paths) :
The server-side built AIR app is store at /srv/data/air/myApp.air
A RewriteRule redirects calls to http://www.my-server.com/air/999.air to http://www.my-server.com/air.php?id=999
The air.php uses the GET id to read the AIR file :
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private", false);
header("Content-Type: $mimeType");
header("Content-Disposition: attachment; filename=$name;" );
header("Content-Length: ".filesize($path));
readfile($path);
With $mimeType="application/vnd.adobe.air-application-installer-package+zip" and $name="999.air"...
When accessing the rewritten URL directly with a browser, everything is fine: the AIR file can be downloaded and installed as expected.
But! When using an Install Badge linking to that URL, I get the nasty "The application could not be installed because the AIR file is damaged" message...
And here's what's stored in .airappinstall.log:
Starting app install of http://(...)/9889.air
UI SWF load is complete
UI initialized
Downloading file to C:\Documents and Settings\Quentin\Local Settings\Temp\fla19D.tmp
Received HTTP Response Status event
Response URL is http://(...)/9889.air
Downloaded file is not an air file.
starting cleanup of temporary files
application installer exiting
Hum... And I'm stuck.
Thoughts?
I have multiple Install Badges in the same page, do you think this can break things?
I've try adding the AddType instruction in a .htaccess file but it didn't change a thing...
Thanks in advance!

OK, I've got news.
Bad news.
In fact I realized the appurl set in the Install badge is (obviously) not called directly but by a script located at http://adobe.com/apollo... So your my session is not available in the script that is called and that reads the actual AIR file. So I can't check wether the user requiring the file has the right to. At least, not the way I intended to do it...
I will keep you updated if I find something!

Similar Messages

  • Can't open MPEG that opened before: "The file is not a movie file."

    I have an unusually large (for me) MPEG file that I succeeded in downloading and viewing sometime in the last year and a half, and I kept it on my disk despite its being over 3GB because I thought I might want to look at it again. Now I do, only it won't open: "The movie could not be opened. The file is not a movie file." I tried using Time Machine to bring back earlier versions of QuickTime - 7.5 and 7.5.5 as I recall; I now have 7.6.2 - but these wouldn't open the file either, so I figure it may have something to do with a change in the system. In any event, should it be possible to open this file (again, it did open previously, with no problem), and if so how? Thanks.

    I have a similar major problem and wonder if it its to do with file sizes or codecs. I recorded video at work from a laparoscopic medical camera and output the video at the end of the session from the device's hard-drive to my 16GB memory stick. It is a 750Mb with file extension .mp4 and I now get exactly the same message as others if try to open it with Quick time (I can't open it with anything else either and nor could our medical illustration department). I bought the quick time pro upgrade as was told that would probably work and got same problem. Interestingly, I have had a second problem today having worked on a separate movie I put together in i-movie that I had recorded from a hi-def panasonic camcorder, imported and successfully edited (with ease) in i-movie and exported it "uncompressed" as a quicktime movie. It was only 5mins of video and produced a 15GB file. I wanted to save this onto a 16GB memory stick, but found out that the FAT32 folder system doesn't allow that file size! So, I formatted the memory stick to "Mac extended journalled", and was able to save the entire file onto the stick. But, now it won't open in quick time! I get the same message as above! Does anybody have any idea what these two issues might be?

  • File is not a normal file exception while using HttpClient()

    Hi All,
    I would like to upload few files from the end user desktop machine to a unix server. This process will be done during the execution of a portal application (PAR). I was just trying my hands at the following code, but it gives me <b>File is not a normal file exception</b>.
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
             response.write("Hi Sandip.....");
             /** reading file informations */
             final String serverURL = "serverURL";
              PostMethod mPost=null;
             try {
                   HttpClient httpCl = new HttpClient();
                   mPost = new PostMethod(serverURL);
                   File file1 = new File("D:\JavaScreen.jpeg");
                   response.write("<BR>you selected the file::"+file1.getAbsolutePath());
                   mPost.getParams().setBooleanParameter(HttpMethodParams.USE_EXPECT_CONTINUE,true);               
                   response.write("<BR>Uploading file to server....");
                   //Part fileParts = new FilePart(file1.getName(),file1);               
                   FilePart[] filePart = {
                             new FilePart(file1.getName(),file1) //add multiple files here
                   mPost.setRequestEntity(new MultipartRequestEntity(filePart,mPost.getParams()));     
                   httpCl.getHttpConnectionManager().getParams().setConnectionTimeout(5000);
                   int statusCode = httpCl.executeMethod(mPost);
                   if(statusCode==HttpStatus.SC_OK){
                        response.write("<BR>upload done:"+mPost.getResponseBodyAsString());
                   }else{
                        response.write("<BR>upload failed:"+HttpStatus.getStatusText(statusCode));
                   mPost.releaseConnection();
              } catch (HttpException e) {
                   // TODO Auto-generated catch block
                   //e.printStackTrace();
                   response.write("Excp1:"+e.getLocalizedMessage());
                   mPost.releaseConnection();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   //e.printStackTrace()
                   response.write("Excp2:"+e.getLocalizedMessage());
                   response.write("Excp3::"+e.getCause());
                   mPost.releaseConnection();
              }finally{
                   mPost.releaseConnection();
    This is written inside a portal application. While running this code, it gives an output
    Hi Sandip.....
    you selected the file::D:JavaScreen.jpeg
    Uploading file to server....Excp2:File is not a normal file.Excp3::null
    What could be the problem? I tried with 2-3 files.
    Would appreciate a reply.
    Regards
    Sandip Agarwal

    Hi,
    you can check this link.
    <a href="http://svn.apache.org/viewvc/jakarta/httpcomponents/oac.hc3x/trunk/src/examples/">HttpClient sample codes</a>
    regards
    Vivek Nidhi

  • File does not exist, or file is empty; you cannot upload empty files

    Hello,
    I've a problem when trying to upload any file to KM Repository (Content Administrator-KM Content-Root-documents). It shows the following error: File does not exist, or file is empty; you cannot upload empty files.
    I have applied SAP note 898637 but is still not working. We're using SAP EP 7.0 SP11.
    Please, what could be the problem?
    Thanks in advance,
    Belé

    We've put the Java paremeters in Configtool.bat :
    -Djava.io.tmpdir=c:/EP_TEMP
    -Dcm.tmpdir=c:/EP_TEMP     
    In Server/Instance. Folders: Message Server&BootStrap and in Servers General and in Instances/Server.
    I hope this helps you,
    Regards

  • "The file is not a movie file."

    Hey Everyone,
    I have a series of .avi files that, up until recently, I was able to watch using QuickTime and on my television through my EyeHome box...
    Due to a hard drive failure, I had to copy these files to another hard drive. Now when I double-click on one, I get a message from QuickTime stating "The movie could not be opened. The file is not a movie file."
    Meanwhile, though, I can still play these same files using VLC Media Player. So what gives? Why would files that were previously playable with QuickTime suddenly stop working?
    Yes - I've got all the latest software updates, etc.
    Any ideas?
    Thanks!

    I, too am having similar problems. I had upgraded to QT 7.4 and my FCP 4.5 would no longer launch. I Archived and Reinstalled my osx 10.3.9. Now, all my MPEG-1 files that were previously useable in QT give me the "The movie could not be opened" message. The video is viewable in VLC, however.
    I do have QT Pro 7. I cannot use MPEG Streamclip. When I try to open with MPEG Streamclip, I do not get any video.
    I have purchased the Apple QT 6 MPEG-2 PLAYBACK, but that didn't help. I don't know if there is a playback component I had before that I don't have since the Reinstall.
    Any help would be appreciated.
    Jim

  • Error "file is not a resource file" after updating to LV2010

    Hello everybody,
    my problem is that I can't call a c++ dll after updating to LV2010 and Visual Studio 2010. The DLL is written in Visual Studio 2008 and worked perfectly. Now I compiled the dll again because add some new functionality. In the development pc I fixed that problem. I manually replace the call library function nodes and configured it again. I made a installer package from my lv project. This installation don't work with the dll on the target with same error "file is not a resource file". The rest of the application works fine.
    Development PC: Win 7 Enterprise 32Bit
    Target PC: Win XP Service Pack 3 32Bit

    Hi
    Verify that all your files have correct extensions and rebuild the.exe file.
    I hope this will help
    Kind regards,

  • Quicktime: The movie could not be opened.  The file is not a movie file.

    Hi, im sorry to say im a bit challenged when it comes to this so i hope you can help!...
    Im trying to import the movies from my Sony video recorder (handycam DCR-SR32) and when i open the folder for it on the desktop and try to open one of the files it says: quicktime: The movie could not be opened. The file is not a movie file. All the files have quicktime icons next to them and i definitely have quicktime installed. I managed to import movie filed before into imovie and im trying again to do so... any clues as to what im doing wrong or how i can get the files into imovie to play and edit?? many thanks in advance

    To Apple Discussions!
    What type of files are they - .avi, .mp4, .mov, etc.?
    Make sure you have the following installed:
    Flip4Mac
    VLC Media Player
    Perian

  • I updated imovie and I Used to be able to save as Quicktime file, now not an option & files are so large when I save as mpeg4 and just rename them. Please help!

    I updated imovie and I used to be able to save as Quicktime file, now not an option & files are so large when I save as mpeg4 and just rename them. Please help!

    Actually it is easier than I thought. It is H264 but the wrapper is m4v. You can just change that in the finder to .mov and drop it into iDVD. iMovie will send it to iTunes so just right click on it in iTunes and select reveal in finder and then copy/paste to desktop and change to .mov. Then drag into iDVD. Really easy.

  • AIR Badge Install fails on Macromedia Certificate Error

    I noticed my AIR Badge installer stopped working with the message “A download error occurred, would you like to try again” when the person did not have Adobe AIR installed previously.  The badge installer is supposed to download AIR seamlessly as part of the process.
    I snooped with Charles and found that the loaded air.swf file was attempting to access https://www.macromedia.com and this request is returning a certificate error.  Attempting to access the url on my home machine directly using gives me the message that the cert is not from a trusted authority.  Attempting to access that url from my work machine results in a re-direct to Adobe.com.
    Anyone got a clue as to what the heck is going on? Am I dealing with an outdated version of the badge?  I got this from the Flex SDK 3.4 samples directory.
    Thanks,
    Jeff

    Rob,
    Thanks very much for getting back but the issue is resolved - I discovered
    that I was passing 1.52 instead of 1.5.2 for the required air version
    parameter.  D'oh.  Once that was set correctly the badge works fine.
    Jeff

  • Hard drive failed - have music files but not library.itl file

    So here's the situation. The hard drive on my husband's laptop recently failed. It is now fixed, but his data is lost. Luckily, we had moved his music files to an external drive. It appears that we only moved the music files and not the library.itl file. We have a backup from November of the library.itl file.
    1. His ipod is fine. He wants to be able to pull the playlist info from his ipod to restore the info on the library.itl file. Is that possible?
    2. If that is not possible, what are the ramifications of restoring the library.itl file from November? Will he "lose" the music that was added since then?

    1. Not with itunes, sadly. It will try to wipe the ipod since it is a 'new 'library.
    2. Yes, he'll lose everything added since November.

  • Understanding compile errors due to copying code from a doc file and not a txt file

    SITUATION:
    My instructor for my micro-controller class refuses to save sample code to a text file and instead saves it to a word document file instead. When I open up the doc file and copy/paste the code into my IDE "CodeWarrior" it causes errors upon compile time.
    I am having to rewrite all the code into a text editor and then copy/paste it into my IDE.
    MY UNDERSTANDING:
    I was told to always save code as a text file because when you save code as a word document file it will bring in unwanted characters when your copy/pasting the code into your IDE for compiling.
    Their are students in my class using the schools computers running "Windows" that copied and pasted the code into CodeWarrior and it compiled fine. This is not only frustrating but confusing. However, I know their are students in class with "PC's" running windows that had the same trouble I did so I know it's not a Mac issue. 
    Also I am running "Parallels" because my IDE for this micro-controller "Code Warrior" is not avaiable for my OS. I realize there are several IDE's out there that require "Windows OS" in general but I know this situation is not a Mac issue or Parallels issue or even a Windows issue. It's purly an issue of formatting that is done between the file being copied and the target program or so I'm understanding.
    Can someone exlain to me in better words or perhaps provide a resource, documentation or article that will enlighten me on this issue. I would like to better state my case next time. I'm tired of being told this is a MAC issue and that Windows is just plain better.

    The problem is (as you suggest) almost certainly a gremlin issue - characters that for one reason or another Code Warrior cannot interpret correctly. Why it happens to you and not others is a different matter. That could mean that the pofessor uses fonts that are not on your machine, or that he is using a different version of word, or it could be in how you access the data. For instance, if the prof posts this word doc on the web you may get different results if you download the file and open it in Word as opposed to opening it directly from a web browser.
    The sure-fire solution is to download TextWrangler and copy the code in there first. TW has a number of tools for finding and removing unpleasant characters. it adds a step, but... you could also try resaving the doc file as a plain text file from within word.

  • Save File: Does not save my file to the chosen location

    When the window pops up for the save location of a file, select location, and save. Navigate to the save location and the file is not there. cannot find the file via a search. Also does not remember last save location, but there is not entry in the about:config to set lasDir. 29.0.1.

    Assuming you are saving the file in a normal window (not a private window), can you use the download history to locate the file? Either click the arrow on the toolbar or press Ctrl+j, then assuming the download is listed, click the folder icon at the right side to open the folder containing the download. Any luck?

  • File Adapetr: File is not picking from File directory

    Hello,
    Issue: we are facing issue with file sender adapter like file is not picking from source file directory.
    Scenario: FTP1>PI>FTP2
    1. SAP PI sender communication channel will pick the file from FTP1 and process to PI file server (NFS)
    2. from PI file server (NFS), file will process again to FTP2
    So while picking the file, it shows following error:
    Could not process due to error: java.lang.IllegalStateException: Error during RETR epilogue: com.sap.aii.adapter.file.ftp.FTPEx: 451 Transfer aborted. Broken pipe
    Conversion of file content to XML failed at position 0: sun.io.MalformedInputException
    Processing started
    this issue occur after we migrate the PI server from hpunix to aixunix.
    Best Regards,SARAN

    Hi,
    check the FCC parameters, fieldfixedlength option would be used when the exact length of field is constant in the Sender, In the FCC the fieldfixedlength parameter carries the length of the each.
    Check out Michal's blog on content conversion for all your doubts :The specified item was not found.
    Kindly check the below links for further assistance.
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
    regards,
    ganesh.

  • OSB file Write, not naming the file with specific name.

    Hi ALL,
    I have a requirement, i should accept the data or XML file from from JMs queue and place it in a location specified. For this i have build the PS and BS.
    Where PS will De-queue the JMS queue and route using Service call out to BS. And the BS will place the file in location. I could do this easily. BUT the thing is that i could not name the file perfectly with the intended file name. to build the BS i used .JCA file , .WSDL file, XML file from Jdeveloper. and imported to osb console. i could write the file as follows..
    MY business Services:
    services TYPE : ANY XML services
    transport
    Protocol ==> file
    Load Balancing Algorithm ==> round-robin
    Endpoint URI ==> file:///oracle/Middleware/user_projects/domains/Agile
    Request encoding ==> utf-8
    this is the file name i am getting:
    <con:metadata      xmlns:con="http://www.bea.com/wli/sb/test/config">
         <tran:response-code      xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
         <tran:encoding      xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
         <file:filePath      xmlns:file="http://www.bea.com/wli/sb/transports/file">
         /oracle/Middleware/user_projects/domains/Agile/POTest3338620552690675292--411054fa.1363686ca89.3e8d.xml
         </file:filePath>
    </con:metadata>
    the file NAME : POTest3338620552690675292--411054fa.1363686ca89.3e8d.xml ( POTest is prefix and .xml is Sufix)
    3338620552690675292--411054fa.1363686ca89.3e8d i dont know y the this garbage file name is created...
    please give suggestions to avoid garbage name
    thanks --
    ANIL

    Hi ALL,
    I have a requirement, i should accept the data or XML file from from JMs queue and place it in a location specified. For this i have build the PS and BS.
    Where PS will De-queue the JMS queue and route using Service call out to BS. And the BS will place the file in location. I could do this easily. BUT the thing is that i could not name the file perfectly with the intended file name. to build the BS i used .JCA file , .WSDL file, XML file from Jdeveloper. and imported to osb console. i could write the file as follows..
    MY proxy services:
    services type : any XML services
    protocol :jms
    MY business Services:
    services TYPE : ANY XML services
    transport
    Protocol ==> file
    Load Balancing Algorithm ==> round-robin
    Endpoint URI ==> file:///oracle/Middleware/user_projects/domains/Agile
    Request encoding ==> utf-8
    this is the file name i am getting:
    <con:metadata xmlns:con="http://www.bea.com/wli/sb/test/config">
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    <file:filePath xmlns:file="http://www.bea.com/wli/sb/transports/file">
    /oracle/Middleware/user_projects/domains/Agile/POTest3338620552690675292--411054fa.1363686ca89.3e8d.xml
    </file:filePath>
    </con:metadata>
    the file NAME : POTest3338620552690675292--411054fa.1363686ca89.3e8d.xml ( POTest is prefix and .xml is Sufix)
    3338620552690675292--411054fa.1363686ca89.3e8d i dont know y the this garbage file name is created...
    i am getting this error when i process test from proxy services then i may use route and change it as Use Routing Options on the Service Callout and override the header (jca.file.FileName).
    but the thing is when i test from Business services also i am getting the same garbage name on both window and linux.
    please give suggestions to avoid garbage name
    thanks --
    ANIL

  • Sender file adapter not polling the file

    hi all,
    i have configured a filexifile scenario....
    but the file sender adapter is not polling the file at all....
    i dont c any message either in RWB or in SXMB_MONI
    i checked the adapter framework url at <i>http://<ximachine>;<port>/AdapterFramework</i>....and the status for the file adapter is green...
    but the message it gives there is
    <i>Sender Adapter v1014 for Party '', Service 'TASL_FILE_SENDER':
    Configured at 03:07:24 2006-02-02
    Up and running - no message processing until now
      last poll interval started 04:01:24 2006-02-02
      length 60,000 secs</i>
    y is the sender adapter not polling the file..
    i am using NFS as my File System....i gave the source directory as <i>d:/test_dir/</i>
    is this way of specifying the source directory on a windows machine correct...
    thanks
    pavan

    There is probably something wrong with the File Adapter.  You will need to go to the RunTime Workbench >> Component Monitoring >> Display >> Click on the Adapter Engine >> More information will display and click on the button 'Adapter Monitoring' >> A new window will display and click on the arrow next to your adapter engine.  This displays a list of adapters running on your system.  Green light means good; Red, you have a configuration problem.  Look at the error and try and resolve it.

Maybe you are looking for

  • Not Equals Function is not working in Mapping

    Hi All, i have to do mappig based on the Not Equals & And conditions If the Material Group starts with "F"                         And Material Type Not Equals to "ZPRO" means                                     then send "FG" Else "FC" Here Not Equa

  • Lync 2013 Office 365 - Can't Sign in

    Hi, Using Office 365 and Lync 2013. Windows 7 64bit machine (New) Only built a couple of days ago. I keep getting the following error I have 2 machines next to eachother, one works perfect with Lync and signs in fine, the other does not and gets the

  • Design view in eclipse

    hey i am new with eclipse. I have download the cfeclipse plugin and it is working fine,, But now my problem is i cannt view my cfm pages in design mode. Can anyone please help which plugin to install or any settings that need to be changed Thanks in

  • Help me to make a career decision

    Hi All ,             I am a ABAPER  with  4 Years experience. I am interested in SAP functional. Few months ago I completed my certification in SAP FI  ECC 6.0  When in my organization i asked for functional work they  said only  people with Accoutin

  • Email Signatures Missing From Reply and Forwarded Messages

    Email signatures do not work for reply and forwarded emails. Signature work normally for emails I write. I have 4 email accounts and 3 HTML signature identities. For each account I've enabled signatures for reply and forward in the Composition and Ad