Jump to content

Bizarre ActiveX Bug


mschrank

Recommended Posts

My web app I am developing uses a propietary active X control called Octree View. Since we moved the server over to a HTTPS configuration, the  applet throws up a "0x800c0008" error and refuses to load the file.

This problem only happens when a session is engaged with session_start or auto session in the php.ini. Otherwise the ActiveX program doesn't crash and everything loads fine from the loader script which pulls it from the database (postgresql using OID's).

So... the problem is not in the data, which I hashed in both states (session on/off) and the hash is the same. It has to be the actual ActiveX program not liking being called from a session. However, this does not make sense, how does a client side activeX control know or care about what state the server is in???

I'll give a $50 reward to whoever can help me solve this problem! Either reply here or email me at nospam1(at)schrank[dot]ws (sorry I'm paranoid about spam, I even have a deletable alias going to my real email!)
Link to comment
Share on other sites

Serving script: get_binary.php

<?php

session_start(); // if this is not commented out, the thing does not work

$what = $_GET['what'];
$child_id = $_GET['child_id'];

$conn = pg_connect(not putting string in for security reasons);

// --------- GET BINARY

  $rs = pg_exec($conn, "SELECT ". $what. " FROM child_visual WHERE child_id = '". $child_id. "'");
  $row = pg_fetch_row($rs, 0);

  pg_exec($conn, "begin");
  $loid = pg_loopen($conn, $row[0], "r");

if ($what == "octree") {
header("Content-type: application/x-octree");
}
else {
header("Content-type: img/jpeg");
}

  pg_loreadall($loid);
  pg_loclose($loid);

  pg_exec ($conn, "commit");
 
  pg_close($conn);

?>

End-user webpage: object.php (I know there is no php but I just call it that out of habit)

<html>
<body>
          <object classid="CLSID:EF0EA0D6-88E9-11D4-9908-00400543159B" codebase="http://www.octree.com/View.cab#version=2,0,0,4" width="200" height="200">
                <param name="Octree" value="testsec3.php" />
                <param name="_StockProps" value="0" />
                <param name="_Version" value="131108" />
                <param name="_ExtentX" value="6482" />
                <param name="_ExtentY" value="6482" />
                <param name="OptionArgs" value="" />
                <param name="CommandURL" value="" />
              </object>
</body>
</html>
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.