https://bugs.winehq.org/show_bug.cgi?id=48514
Bug ID: 48514 Summary: HttpSetRequestQueueProperty is missing from spec file, might need simple stub as well (???) Product: Wine Version: 4.21 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: httpapi Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Distribution: ---
Hi,
A user reported on forum: https://forum.winehq.org/viewtopic.php?f=2&t=33420
The API is completely missing in the spec file. So I guess spec file needs an update, and maybe also a simple stub added (??)
I cannot test this myself as I don`t have the app, but this report is only about the missing spec entry; once added user on the forum could retest and report further issues i guess
https://bugs.winehq.org/show_bug.cgi?id=48514
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|HttpSetRequestQueueProperty |Multiple webserver |is missing from spec file, |applications need |might need simple stub as |httpapi.HttpSetRequestQueue |well (???) |Property CC| |focht@gmx.net Keywords| |patch
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
refining the bug summary line a bit. A title that contains multiple question marks "(???)" should be avoided (implies confusion). Remember: Wine release notes are automatically generated from summary lines. Just be descriptive, clear and precise as possible.
There is a patch in the queue:
https://source.winehq.org/patches/data/177329
It's unfortunate that the forum reporter remained rather vague on the webserver app (ASP.NET? Some custom app?). I've tried to dig out some apps that require this function but found only github repositories with sources.
* https://github.com/edwig/HTTPSYS ("user-space implementation of the MS-Windows HTTP.SYS kernel driver")
* https://github.com/tjanczuk/httpsys ("Native HTTP stack for Node.js on Windows")
* https://github.com/aspnet/HttpSysServer/blob/master/src/Microsoft.AspNetCore... ("web server for ASP.NET Core based on the Windows Http Server API.")
Quick search for web-server binaries without heavy dependencies for download returned:
https://code.google.com/archive/p/dwscript/downloads
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google....
--- quote --- DWScript Http.sys 2.0 Web Application Server demo
Simple Web Application Server using DWScript, Synopse and Microsoft HTTP.SYS 2.0 --- quote ---
https://github.com/EricGrange/DWScript/blob/1c0833f8eaaa3c56970963dbccae8c92...
Unfortunately it's not using this specific API function. It imports other missing API though, warranting more bug reports.
Regards
https://bugs.winehq.org/show_bug.cgi?id=48514
thomas0815 thomas.fenzl+wine@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thomas.fenzl+wine@gmail.com
--- Comment #2 from thomas0815 thomas.fenzl+wine@gmail.com --- The server we use is https://www.tmssoftware.com/site/xdata.asp
Which is proprietary and thus I don't know why it uses which API.
I'll try to answer any question though
https://bugs.winehq.org/show_bug.cgi?id=48514
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- A stub for HttpSetRequestQueueProperty() was committed as https://source.winehq.org/git/wine.git/commitdiff/afe9217b57c9077dce20a6c9762ae27813d43b5b. Please retest with current git or with 5.1 when it is released, and attach a log with WINEDEBUG=+httpapi,+http,+pid if the program still doesn't work.
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #4 from thomas0815 thomas.fenzl+wine@gmail.com --- Created attachment 66350 --> https://bugs.winehq.org/attachment.cgi?id=66350 log file trying to start the web server
The requested log file. It's surprisingly short.
The method now missing is HttpQueryRequestQueueProperty. Which isn't in httpapi.spec
Regards Thomas
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #5 from Zebediah Figura z.figura12@gmail.com --- Created attachment 66351 --> https://bugs.winehq.org/attachment.cgi?id=66351 httpapi: Stub HttpQueryRequestQueueProperty().
Thanks, can you please add this patch and try again?
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #6 from thomas0815 thomas.fenzl+wine@gmail.com --- Created attachment 66353 --> https://bugs.winehq.org/attachment.cgi?id=66353 new log file
Now the server needs HttpShutdownRequestQueue
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #7 from Zebediah Figura z.figura12@gmail.com --- Created attachment 66355 --> https://bugs.winehq.org/attachment.cgi?id=66355 httpapi: Stub HttpShutdownRequestQueue().
Another patch for that, we're getting there.
(I know it might make more sense to update the whole spec file at once, but I suspect the program is going to try to call these functions anyway, so it wouldn't help that much, and I want to see how it's using them.)
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #8 from thomas0815 thomas.fenzl+wine@gmail.com --- Good thing incremental builds are quicker than full
EAssertionFailed: httpapi.dll - Could not find method: HttpSetServerSessionProperty (D:\devgems\projects\sparkle\source\core\Sparkle.HttpSys.Api.pas, Zeile 1084)
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #9 from Zebediah Figura z.figura12@gmail.com --- Created attachment 66356 --> https://bugs.winehq.org/attachment.cgi?id=66356 httpapi: Stub HttpSetServerSessionProperty() and HttpQueryServerSessionProperty().
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #10 from thomas0815 thomas.fenzl+wine@gmail.com --- It's not complaining about missing functions any longer.
Now I'm unsure how about to make it listen to a socket, but that's another topic
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #11 from Zebediah Figura z.figura12@gmail.com --- Is the application malfunctioning, or are you just unfamiliar with how to use it?
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #12 from thomas0815 thomas.fenzl+wine@gmail.com --- I'm unfamiliar with how to use it in wine.
should be something like "netsh http add urlacl url=http://+:8081/
But the code in netsh.c doesn't seem like it's going to do things ;)
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #13 from Zebediah Figura z.figura12@gmail.com --- We don't currently implement URL reservations; the port is simply bound to on the host side, and the first program to ask for it gets it if it's available. So that command should be unnecessary.
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #14 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Zebediah Figura from comment #9)
Created attachment 66356 [details] httpapi: Stub HttpSetServerSessionProperty() and HttpQueryServerSessionProperty().
Hi Zebediah,
Could you send the stubs in please? I opened this bugreport only about missing spec entries and I think further issues can be tracked in new bugreports I guess.
Otherwise I fear this report is forgotten about and keeps living in forgotteness for long time...
Regards
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #15 from Zebediah Figura z.figura12@gmail.com --- I was kind of hoping to see what the application was doing with them, so I could decide how much flesh to give to the stubs. Thomas, any update?
https://bugs.winehq.org/show_bug.cgi?id=48514
--- Comment #16 from thomas0815 thomas.fenzl+wine@gmail.com --- I'm sorry I can't provide any more help, we threw out the web server and switched to one already running well on wine...
https://bugs.winehq.org/show_bug.cgi?id=48514
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |ABANDONED Status|NEW |RESOLVED
--- Comment #17 from Zebediah Figura z.figura12@gmail.com --- That's unfortunate but understandable, I guess I'll close this as ABANDONED then. I spent some time trying to get the application from bug 48530 to work anyway; I'll send in those patches soon.
https://bugs.winehq.org/show_bug.cgi?id=48514
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED CC| |nerv@dawncrow.de
--- Comment #20 from André H. nerv@dawncrow.de --- closing abandoned