BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-08-2008, 10:25 AM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8300
PIN: N/A
Carrier: od did
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default OTA deployment of COD Files

Please Login to Remove!

I want to set up a web application that provides the blackberry files for OTA installation.

Everything works, but the following problem occurs:

the COD files are always requested twice.
The Jad File refers to a zipped cod archive (contains multiple cods).

First the BES (MDS) or whatever requests all of the cod files
(http header user-agent is set to MDS_4.1.6.26)
then the blackberry device seems to requests the files once more
(user-agent: BlackBerry8800/4.5.0.55 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/-1)
That means, if 4 Cod files are necessary the request are
Cod 1
Cod 2
Cod 3
Cod 4
Cod 1 again
Cod 2 again
Cod 3 again
Cod 4 again


Why this behaviour?
How to avoid it?
Is something wrongly configured?

The installation works.

I want to detect the real and only necessary request. It would be possible via the user-agent header.
But is there an official standard way to do that?
Offline  
Old 12-08-2008, 10:47 AM   #2 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8300
PIN: N/A
Carrier: od did
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jad file is

MIDlet-Version: 1.0.0
MIDlet-Name: M
MIDlet-Description: Installs M on device
MIDlet-Vendor: M GmbH
RIM-COD-URL-1: Installer.cod
RIM-COD-Size-1: 85352
RIM-COD-URL-2: Installer-1.cod
RIM-COD-Size-2: 82756
RIM-COD-URL-3: Installer-2.cod
RIM-COD-Size-3: 62024
RIM-COD-URL-4: Installer-3.cod
RIM-COD-Size-4: 11332
RIM-COD-URL-5: Installer-4.cod
RIM-COD-Size-5: 2092
RIM-COD-URL-6: Installer-5.cod
RIM-COD-Size-6: 35752

Any ideas?
Offline  
Old 12-08-2008, 11:46 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

You should unzip the main COD file into it's component files and deploy all of resulting files (but not the original "zip" cod file).
Offline  
Old 12-08-2008, 11:59 AM   #4 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8300
PIN: N/A
Carrier: od did
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I do that, but the parts are requested twice.

That's the problem.

Apart from that the installation works.
Offline  
Old 12-10-2008, 03:07 AM   #5 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8300
PIN: N/A
Carrier: od did
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just wanted to know why there are two requests for the parts of the cod archive.

And an official way to detect the request that has to be served.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.