Bug 3756 - FindExecutable error for .html from Windows XP
Summary: FindExecutable error for .html from Windows XP
Status: NEW
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.9
Hardware: Other Windows XP
: P3 minor
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-05 00:16 UTC by Peter Juliff
Modified: 2006-05-12 00:06 UTC (History)
0 users

See Also:


Attachments
Capture reading html on Samba from Windows XP (13.87 KB, application/octet-stream)
2006-05-11 03:26 UTC, Peter Juliff
no flags Details
Capture reading html on Windows from Windows XP (999.03 KB, application/octet-stream)
2006-05-12 00:06 UTC, Peter Juliff
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Juliff 2006-05-05 00:16:50 UTC
The Windows FindExecutable API called from Windows XP will give an error (usually 31) when trying to find the executable program for a file with .html extension stored on Samba.
It returns the correct executable if the file is renamed with the .htm extension.
It returns the correct exectuable if the API is called from a Win9x machine.
Thanks
Peter Juliff

PS
below is a little program to use to demonstrate problem

==============
#include <stdio.h>
#include <windows.h>

main(int argc, char *argv[])
{
   HINSTANCE status;
   char exepath[1024];

   if (argc != 3)
   {
      fprintf(stderr, "usage: %s directory file\n", argv[0]);
      exit(1);
   }
   exepath[0] = '\0';
   printf("About to FindExecutable(\"%s\", \"%s\", ...)\n", argv[2], argv[1]);
   status = FindExecutable(argv[2], argv[1], exepath);
   
   printf("==> %d, path: \"%s\"\n", status, exepath[0] == '\0' ? "ERROR!!" : exepath);
}
Comment 1 Volker Lendecke 2006-05-05 02:57:40 UTC
Could you please attach two sniffs taken with ethereal, one when doing the request against a Windows server and the other one against a Samba server? This way we can find out the difference.

And please try with Samba version 3.0.22, since 3.0.9 there have been dramatic changes, in particular in the open code.

Thanks,

Volker
Comment 2 Peter Juliff 2006-05-11 03:26:24 UTC
Created attachment 1896 [details]
Capture reading html on Samba from Windows XP

Having not used ethereal before I hopw this is what you are after
Comment 3 Peter Juliff 2006-05-11 03:31:50 UTC
The reading html on windows from windows has corrupted. I will redo and upload as soon as I can
Comment 4 Peter Juliff 2006-05-12 00:06:01 UTC
Created attachment 1897 [details]
Capture reading html on Windows from Windows XP

This is reading the same file stored on WindowsXP.
This is a large capture and as I am not familiar with Ethereal I hopw it is what you want.
Thanks