primordic/IssueDupesLite huggingface dataset:
Repository: whatwg/fetch

Issue #530: Impact of OCSP on SOP
Created: 2017-04-21T08:46:50Z
Since I don't know of a better place to put it and don't want to continue having the exploration in bifurcation/expect-ct#18 which is really about something else, this seems like a good a place as any.
@sleevi pointed out that OCSP is only done by Firefox directly and other browsers use the OS stack. And only a name-constrained subCA is able to make third-party requests (requests to arbitrary endpoints, determined solely by that party).
This issue is interesting to figure out where the SOP line is drawn as that can tell us whether we are too strict elsewhere or accidentally tell servers they can rely on certain invariants that are actually false, etc.
I think my main issue is that even if it's not the browsers now (except for Firefox), it could be the browser tomorrow. After all, all the pieces of the OS needed to make a browser are part of the browser ecosystem and have to be considered. This might be more self-evident with systems such as Chrome OS.

Duplicate issue #1005: consider adding note that CORS preflight check excludes headers added by the browser or extensions
Created: 2020-03-05T22:06:20Z
The CORS protocol currently requires sending a preflight request if there is an unsafe header on the request.  Step 4.1 here:
https://fetch.spec.whatwg.org/#http-fetch
However, in practice browsers only examine headers set by content for this check.  They exclude headers set by the browser itself or extensions.
For example, in firefox the CORS implementation looks at a header list:
https://searchfox.org/mozilla-central/rev/13b081a62d3f3e3e3120f95564529257b0bf451c/netwerk/protocol/http/nsCORSListenerProxy.cpp#983
Set explicitly in the child process close to the content script:
https://searchfox.org/mozilla-central/rev/13b081a62d3f3e3e3120f95564529257b0bf451c/dom/fetch/FetchDriver.cpp#673
https://searchfox.org/mozilla-central/rev/13b081a62d3f3e3e3120f95564529257b0bf451c/dom/xhr/XMLHttpRequestMainThread.cpp#2657
Until recently chromium also worked the same way by virtue of performing its entire CORS operation in the renderer process close to content.
Chromium recently implemented an out-of-renderer CORS (OOR-CORS) feature that moves the CORS operation into the network stack.  This caused the preflight logic to begin examining headers set by browser internals and extensions.  This has caused a great deal of web compat problems for the OOR-CORS rollout.  There has been hesitance to match the old behavior because the spec does not allow it.
I am unsure what webkit does here.
Given the firefox behavior and legacy chromium behavior would it be reasonable to add a non-normative note indicating headers set by browser internals and extensions are excluded from the CORS preflight check?

Closing comment (2020-03-10T17:30:12Z): Is this a duplicate of #530 then?
Repository: whatwg/fetch

Issue #18: Why doesn't `fetch` reject if 400 ≤ status < 600?
Created: 2014-12-29T16:13:36Z
It would be much more useful if it did, or if there were an option for it to.

Duplicate issue #60: Regarding "switch on response's status"
Created: 2015-06-03T11:08:33Z
Regarding https://fetch.spec.whatwg.org/#http-fetch -> "switch on response's status":
Dear WHATWG
Shouldn't a 404 be handled as error?
While using a fetch() polyfill I was surprised that my .catch block wasn't called.
Now I added this:
if (response.status === 200) {
  return response;
} else {
  throw new Error(response.statusText);
}

But I had expected fetch() to throw an error when it receives (eg) a 404.
I wanted to (API nomenclature) "fetch" a file and the server replied (HTTP status) "not found" - this is a failure regarding the objective of fetching the file, and it might surprise other users of your API as well that it doesn't get reported as error.
Perhaps specify it as default behavior? (throwing an error on 404 etc)
And perhaps in addition offer some flag which gives the API user the option of handling the status code himself, completely.
Tobi

Closing comment (2015-06-03T14:32:37Z): Dupe of #18. You may be interested in response.ok. The discussion in #18 is quite good though and hopefully will address why the proposal isn't really feasible.
Repository: whatwg/fetch

Issue #1398: Merging Client Hints Infrastructure into FETCH (and HTML) Standards
Created: 2022-02-02T21:12:03Z
The primary conversation/description for this task lives in HTML at whatwg/html#7568. This is a stub because the proposal concerns FETCH too.

Duplicate issue #800: CH processing, cross-origin redirects and service workers
Created: 2018-08-21T09:43:41Z
During an IRC discussion about #773, @annevk brought up a few points we need to consider when it comes to CH processing:

If we want to make sure that CH headers are not sent on cross-origin request headers, including cross-origin redirects, we need to have origin checks relatively low in the stack and only add those headers there.
However, that would mean that the headers will not be exposed to service workers, which would limit some of their use-cases.
An alternative would be to add the headers up the stack and remove them further down for cross-origin redirects, but that would mean we'd also remove them for user-added CH headers. It'd also mean that CH is the first feature introducing header removal.

So, we need to decide on the trade-off between privacy, usability and functionality here:

How awful would it be to send CH to cross-origin redirects?
If the answer to the above is "really awful", we need to find a way to avoid doing that without harming SW use of CH as well as user-added CH headers. Personally, I think the SW use case is more important than the user-added headers case.

@igrigorik @arturjanc - thoughts?

Closing comment (2022-02-10T16:53:57Z): Duplicate of #1398, as this is defined in CH infrastructure.
Repository: whatwg/fetch

Issue #106: Drafting the patches to HTML
Created: 2015-08-06T15:57:40Z
Given the recent confusion on navigation, now sounds like the right time to draft up a table, or patches for fetches.
Happy to do the work here, but @wanderview, you said you had a list of things that fetch to use as a starting point?

Duplicate issue #101: should navigation requests really be same-origin or no-cors?
Created: 2015-08-04T19:28:01Z
Step 2.2 of HTTP Fetch currently has the following note:

The underlying assumption here is that all client requests use mode "same-origin", which is currently not explicitly stated for navigation requests.

This is necessary for the step 2.2 checks to properly block opaque responses from being used to intercept a navigation.
It seems, however, forcing navigations to same-origin has other consequences.  Mainly, it would seem to prevent navigations from following cross origin redirects as they currently do on the web:

When a 30x is encountered step 5 of HTTP Fetch recursively calls Main Fetch using the new location.
Step 8 of Main Fetch checks to see if the current URL is same origin, and if its not it explicitly returns NetworkError for same-origin RequestMode.

I ran into this while trying to make our navigations same-origin.  We have a test that does respondWith(fetch(evt.request)) for a navigation request to a cross-origin 308.  This fails when RequestMode is same-origin due the issue above.  When navigations are RequestMode no-cors, then this works.
Note, currently both chrome and firefox implement navigations as no-cors and block opaque interception using a secondary check.

Closing comment (2015-08-11T08:23:43Z): Marking this as duplicate of #106. If we decide there navigation needs to be done differently, we can change Fetch.
Repository: whatwg/fetch

Issue #551: Request with GET/HEAD method cannot have body.
Created: 2017-06-12T11:34:22Z
I ran into this restriction while building HTTP functions for a library. I think this should be reconsidered because sometimes people actually use the body in a GET request. Notably, ElasticSearch can use it for queries. It can use the querystring instead, but that can be pretty cumbersome which is why it also accepts a body for GET queries.
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html
Since I'm making a library I want to allow everything within the specification of HTTP but apparently fetch has its own rules, and as you can see it's possible for that to interfere with using an API._
You'd think this is an edge case, but if it interferes with something like ElasticSearch maybe it's not an edge case._

Duplicate issue #1644: Why does the Fetch standard forbid GET Body when it's not against REST?
Created: 2023-04-28T17:03:43Z
The REST standard, updated 2014,  RFC 7231 https://www.rfc-editor.org/rfc/rfc7231 ; basically the 2014 spec for REST says that a body for a GET statement should not be predefined by software operating it, and not excluded. "A payload within a GET request message has no defined semantics."  There is a decent Stackoverflow thread about it here: https://stackoverflow.com/a/983458
Why do the Fetch specs then forbid it? https://fetch.spec.whatwg.org/#dom-request
35. If either body exists and is non-null or inputBody is non-null, and request’s method is GET or HEAD, then throw a TypeError.
I realize it's easily accomplished, encoding json into URL parameters. However I'd like to understand the appetite for divergence on this issue.

Closing comment (2023-05-01T18:14:42Z): Duplicate of #551, which references httpwg/http-core#202 that ultimately affected text in the successor of RFC 7231: RFC 9110 section 9.3.1 (emphasis mine)

content received in a GET request has no generally defined semantics, cannot alter the meaning or target of the request, and might lead some implementations to reject the request and close the connection because of its potential as a request smuggling attack (Section 11.2 of [HTTP/1.1]). A client SHOULD NOT generate content in a GET request unless it is made directly to an origin server that has previously indicated, in or out of band, that such a request has a purpose and will be adequately supported. An origin server SHOULD NOT rely on private agreements to receive content, since participants in HTTP communication are often unaware of intermediaries along the request chain.
Repository: whatwg/html

Issue #4508: Reinstate <style scoped>
Created: 2019-04-07T22:28:11Z
I've read through the discussion in #552 and I'd like to ask that you reconsider your stance on removing this from the spec. There are many use cases for scoped styles that allow pure-HTML+CSS solutions in favor of a much more restrictive Shadow DOM and/or Web Components approach, let alone the involved complexity for web authors dealing with SD.
The only reason I see that this was scrapped from the spec was because Google refused to do the work and implement it, with nothing more than some vague excuses while playing favorites for SD. Considering Edge -> Chromium is now a thing, it's basically removing a good feature in the standard because of one implementer not wanting to implement it. The general responses on #552 also clearly voted against it -- this is the kind of feedback you should be listening to because those (people actually reading discussions on github for spec changes) are the people actively working with your specs.
Of note is that these approaches are not mutually exclusive or one being better than the other -- Different use cases would call for different approaches. They have overlap, there was also talk of revisiting this kind of styling question because there is a clear need for scoped styles on the web (and in the wild) that are currently using polyfills and workarounds to achieve, while we already had a proper solution for this in <style scoped>.
FTR: Our projects building on UXP intend to keep this implementation despite it being scrapped from the spec, considering it is, in our opinion, a mistake that it was removed to begin with.
The need for this feature has not changed or diminished since 2016. Please consider undoing this mistake in the spec and reinstated scoped styling.

Duplicate issue #4771: Implement scoped CSS to validate "Remove unused CSS"
Created: 2019-07-12T16:37:39Z
"Remove unused CSS" is an optimization message that is valid for Web 1.0 and Web 2.0 requests, not Web 3.0 requests. The CSS must be loaded initially for all pages unless it can be loaded per-page. The standard and browser implementation must come first before we can actually utilize it! Until then "Remove unused CSS" remains absolutely invalid for Web 3.0 websites.

Closing comment (2019-07-12T17:12:38Z): It seems like this is a duplicate of #4508 then. I still don't understand what you're saying, but it's probably best centralized there.
Repository: whatwg/html

Issue #582: Consider deprecation of secondary browser contexts
Created: 2016-01-28T10:27:30Z
Secondary browser contexts seem to not be implemented by browsers other than Firefox with rel="sidebar" links.
window.sidebar is planned to be removed which appears to be the only public API to such a secondary context.
From the tests that I have done it seems that all browsers besides Firefox treat links with rel="sidebar" as a normal link. This appears not to have changed in situation since 2009: https://blog.whatwg.org/the-road-to-html-5-link-relations#rel-sidebar
So if there are no implementers interested and it seems to make sense to remove it.

Duplicate issue #711: Remove <link rel="sidebar">?
Created: 2016-02-19T03:43:15Z
Admittedly, most link relations do not actually impact browsers, so this removal doesn't seem urgent. But it seems to me like sidebar once upon a time meant something (in Netscape and SeaMonkey), and was never implemented elsewhere. And, unlike rels like alternate or license or next, there isn't much semantic value in sidebar for non-browser user agents:

The sidebar keyword indicates that the referenced document, if retrieved, is intended to be shown in a secondary browsing context (if possible), instead of in the current browsing context.

I know Firefox does still have a sidebar, but I wasn't able to get any documents to display in it.
Does anyone object to removing this?

Closing comment (2016-02-19T03:58:10Z): Oops, dupe of #582
Repository: whatwg/html

Issue #2427: `<input type="range">` is sensitive to the order of attribute setting
Created: 2017-03-09T16:17:14Z
These two pieces of code behave observably differently in Chrome and Firefox (for reasons described inline):
s = document.createElement('input');
s.setAttribute('type', 'range'); // defaults min to 0 and max to 100; value is 50, the middle
s.setAttribute('min', '0'); // no change
s.setAttribute('max', '10'); // max is now < 50, so value is truncated to max, 10
s = document.createElement('input');
s.setAttribute('min', '0'); // min is 0
s.setAttribute('max', '10'); // max is 10
s.setAttribute('type', 'range'); // value is 5, mid-way between 0 and 10
I encountered this in Glimmer. We translate HTML syntax into DOM calls according to the HTML tree construction spec, but the spec assumes that an implementation can set all attributes simultaneously, which is not possible with today's APIs. We could special-case the type attribute for input and always make sure to set it last, but that's unfortunate (and who knows, there may be other issues, today or in the future, with another order).
It doesn't matter whether the attributes are set with the element with or without an owner document; the behavior is a consequence of the "suffering from an overflow" constraint.

Duplicate issue #3066: Spec for `progress` element either specifies attribute order dependency or can be easily misread that way
Created: 2017-09-25T13:30:06Z
See w3c/html#1024 for details.  Note that Edge ended up with behavior different from other browsers here, which indicates a spec issue to me.

Closing comment (2017-09-25T13:33:49Z): Sounds similar to #2427.
Repository: whatwg/html

Issue #5244: <img> relevant mutations is missing the referrerpolicy attribute
Created: 2020-01-29T12:47:21Z
https://html.spec.whatwg.org/multipage/images.html#relevant-mutations should include the referrerpolicy attribute, since it changes how the image is fetched. I think like crossorigin, it should say when the state changes. (Enumerated attributes' values are ASCII case-insensitive, and sometimes several keywords map to the same state.)
cc @domfarolino @rwlbuis
(Related: #4533)

Duplicate issue #4533: Does removing or adding a `crossorigin` attribute to an `img` tag count as a "relevant mutation"?
Created: 2019-04-15T20:58:12Z
"4.8.4.3.2 Reacting to DOM mutations" lays out a set of mutations to an <img> tag which should cause the image resource to be reloaded. This includes both


The element's src, srcset, width, or sizes attributes are set, changed, or removed.


and


The element's crossorigin attribute's state is changed.


Now, it would make sense to me for adding or removing a crossorigin attribute to force an image reload, as that changes the effective CORS mode between No CORS and another value. However, note the language difference between "set, changed, or removed" and "state is changed". Is this supposed to imply that adding/removing crossorigin isn't a "relevant mutation"? If so, why?

Closing comment (2020-02-17T10:18:32Z): I'm thinking this can probably be closed given the clarity of the spec. Furthermore, adding referrerpolicy to the list of relevant mutations makes sense, and is tracked by #5244. WDYT?
Repository: whatwg/html

Issue #682: input event should use InputEvent
Created: 2016-02-11T19:30:35Z
http://w3c.github.io/editing/input-events.html defines a new InputEvent type that it clearly intends to be used for the HTML input event defined in https://html.spec.whatwg.org/#event-input. However, it never defines the actual procedure by which these events are created or fired, or how their initialization values are determined. (It has some vague stuff like "A user agent MUST dispatch this event immediately after the DOM has been updated." but that clearly doesn't fit into the existing lifecycle; compare it to the spec's existing "Queue a task to fire a simple event that bubbles named input at the input element.") Furthermore, HTML currently says to dispatch a plain ol' Event.
It seems, based on blink-dev, there is public support for this change. We should update HTML.
See also #601.

Duplicate issue #8131: Change type of event on('input') to InputEvent
Created: 2022-07-25T19:54:18Z
https://html.spec.whatwg.org/multipage/indices.html#events-2:event-15
Proposed change:

- Event
+ InputEvent

See also these two discussions.

Closing comment (2022-07-26T00:25:55Z): Dupe of #682.
Repository: whatwg/html

Issue #1983: Add some mechanism to know that a message event was triggered by user activation
Created: 2016-10-27T00:53:44Z
The triggered by user activation logic allows for this state to flow between cross-origin iframes via postMessage.  Unfortunately there's no good way for script to query whether it's currently in this state.
For example script in a trusted frame may want to respond to requests from an untrusted iframe (such as navigating to a new URL) only when the request from the iframe was initiated as a result of a user activation.
That is to say, there's no good reason the "triggered by user activation" logic should be available only to the user agent, script in other frames might want to depend on it for the exact same reasons. There's some discussion here, here and here about why this is particularly important for AMP.  Today they're hacking around this in Chrome by attempting to write to the clipboard and seeing if that's successful to sniff that they're currently in the context of a user gesture.  This is unfortunate because it potentially clobbers the clipboard and isn't necessarily interoperable. /cc @dvoytenko @cramforce.
Should we just add a boolean property like navigator.triggeredByUserActivation?  Or should we perhaps define MessageEvent.isTrusted to be set to true when the script that invoked postMessage was itself triggered by user activation?

Duplicate issue #3739: Add the ability to query if a user gesture is active
Created: 2018-06-05T20:39:34Z
We should add the ability to query whether a user gesture is active or not. UA APIs are gated by this functionality and it is impossible for an application to use the same checks to gate access across frame boundaries.
See:
https://github.com/dtapuska/useractivation
https://discourse.wicg.io/t/usergesture-event/2774

Closing comment (2018-06-27T21:10:43Z): Duplicate of #1983
Repository: whatwg/html

Issue #2791: Client side include feature for HTML
Created: 2017-06-27T05:36:13Z
Spun off from HTML modules discussion
There are certain amount of interest that including HTML snippet into an HTML document, without using JavaScript. That would be similar to <iframe>, but more lightweight and merged into the same document.
It would work as a naive way to have your header and footer sections defined in one place.

(Edit by @zcorpan: also see #3681)

Duplicate issue #3200: HTML Template: Importing document fragment
Created: 2017-11-05T03:54:22Z
Use case:
A web site using a common header and footer across all of its web pages, wishing browsers would cache them instead of requesting them every time.  The pages could be cached templates as well, containing a list of cached templates.  These templates could also contain 'dynamic' templates, which would only contains the dynamic data - where a cached version shouldn't be used - that the user really needs to fetch again when refreshing a web page.  It shouldn't require Javascript.  The objective being a reduction in web traffic and ease of maintenance for the webmaster, without the need of a server-side scripting language.
Example:
A way to achieve this goal with the actual standard and a little bit of Javascript is presented in this repository.
The major problem with this method (apart from the use of Javascript) is the use of IFRAME elements, which require the construction of an entire document for each IFRAME.  The requested template file should be recognized as a document fragment only.
Solution:
This process could be triggered by the simple addition of an attribute 'src' on any element that the content model is not defined as nothing or embedded content.
When such an element has a 'src' attribute, any children node must be ignored.  Its content must be instead retrieved from the source file and added to the document tree as its children.  If the 'src' attribute is added or changed, the element content is changed to the new source file content.  If the 'src' attribute is removed, the actual content is kept.

Closing comment (2017-11-05T05:33:09Z): This is essentially a duplicate of #2791, so let's close it in favor of the discussion there. As you can see, so far the editors think that this is a bad idea and that server-side inclusion provides a better user experience.
Repository: whatwg/html

Issue #1698: Calling InitializeHostDefinedRealm in document.open is probably unnecessary
Created: 2016-08-19T09:26:30Z
According to my testing neither WebKit nor Blink does the equivalent of calling InitializeHostDefinedRealm in step 16 of document.open.
WebKit's document.open and its [JavaScript binding code](https://trac.webkit.org/browser/trunk/Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp?rev= 204629#L153), for example, just sets up the parser state, clears event listeners, & resets some security context, but goes ahead and uses the same global object.
In fact, it's quite possible that a whole bunch of mobile content are dependent on this behavior given the combined market share WebKit and Blink has had in the last decade.  In fact, it's easier for author to depend on the fact the global object persists over document.open than that they change.  e.g. shared global states, instanceof checks, etc...

Duplicate issue #3564: At least Blink does not support document.open()'s replace parameter
Created: 2018-03-14T04:31:43Z
See https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/dom/Document.cpp?l=3131&rcl=ebf30557b76f27757dbdaa1a03e7104fd7ce29c5
We should investigate other browsers, and perhaps remove this functionality, as we're doing with the type parameter in #3559. Or, file a bug on Blink to implement it, if they're the odd one out.

Closing comment (2018-03-20T06:56:20Z): In Chrome, when I navigate to http://example.com/, open the console, document.open(), document.write("test"), document.close(), history.back(), I end up on chrome://newtab. That means it does effectively replace the current entry, no?
That is, history is not meddled with at all.
And I think the only reason to support history of sorts here is to have Firefox's infrastructure (by making it create a new global), which means this is probably a soft duplicate of #1698.
Repository: winfsp/sshfs-win

Issue #267: Use PuTTY Pageant (or KiTTY Kageant) for encrypted SSH keys
Created: 2021-01-07T14:46:46Z
This started months ago at #217 (comment), and I have finally found the core issue and a potential solution (as well as a workaround, see next comment).
Get ssh-pageant.exe, e.g., from https://github.com/cuviper/ssh-pageant/releases/tag/v1.4-prebuilt-cygwin64.
I got mine, version 1.4, from Cygwin:
https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fssh-pageant%2Fssh-pageant-1.4-1&grep=ssh-pageant
Launch PuTTY's pageant or KiTTY's kageant and load your key(s). Then, start ssh-pageant like this:
set SSH_AUTH_SOCK=%TEMP%\ssh-pageant.socket
ssh-pageant.exe -r -a %SSH_AUTH_SOCK%

Ideally, this should be it - fire up sshfs-win.exe from a shell where SSH_AUTH_SOCK is set correctly (you can use setx SSH_AUTH_SOCK %TEMP%\ssh-pageant.socket once to set it globally once and forever, and auto-start ssh-pageant.exe on login) and you should be good.
Unfortunately, it seems that the value of SSH_AUTH_SOCK is lost when sshfs-win.exe calls ssh.exe through sshfs.exe. I suspect the problem to be here:
https://github.com/billziss-gh/sshfs-win/blob/bb6c90d35cfb309cf976794a7f12938f1ebee136/sshfs-win.c#L248
(Note: sshfs usesexecvp(sshfs.ssh_args.argv[0], sshfs.ssh_args.argv) instead, see https://github.com/libfuse/sshfs/blob/9e01ffd161591f87dd7ef02ab2a0f0aecd800a00/sshfs.c#L1225,
which does not have this problem as we will see.)

Duplicate issue #234: Pagent ssh agent support.
Created: 2020-09-24T18:23:02Z
Hello, We use Pagent (SSH Agent from Putty Utilities) for all our windows users and installing the latest Winsfp and sshfswin and trying to connect using \sshfs.k\ and \sshfs.kr, it doesn't seem to want to use the pagent key for authenticating.
Would it be possible to get Pagent support for ssh agent authenticating?

Closing comment (2021-06-25T05:19:02Z): Dupe of #267 which offers a solution.
Repository: winfsp/sshfs-win

Issue #59: Intensive I/O causes resource unavailable
Created: 2018-09-11T21:27:42Z
My setup:

Ubuntu 18.04.1 LTS in Hyper-V,
Windows 10 1803 17134.1,
SSHFS: sshfs-win-2.7.17334-x64.msi,
WinFSP: winfsp-1.3.18160.msi.

I establish a connection to the resource using the official way via „map network drive”. Connection is done via host-only interface (not the NAT one). On the Ubuntu I've created some Symfony projects and want to use this on host's PHPStorm instance. Starting and indexing works perfect until — via some reason — the mapped drive's contents completely disappears with a message „access denied” under Explorer.
I've tried to investigate this issue a bit and found out that tweaking sshd params has no affect on this. In Windows events log for WinFSP there's many entries like:
sshfs: The service sshfs has been stopped.
launcher-x64: terminated sshfs\asfsdf@192.168.xx.yy\..\..\workspace
launcher-x64: create sshfs\asfsdf@192.168.xx.yy\..\..\workspace
sshfs: The service sshfs has been started.

and these appear like within the loop.
I'm pretty fresh to WinFSP (and amazed by iops it does) so if is there any additional debug information needed, point what to do, please.

Duplicate issue #214: sshfs-win stops working, randomly, requires restart of winFSB service to fix
Created: 2020-06-27T02:04:02Z
Been using sshfs-win for a little over a month now. I've run into an issue where the mount will randomly die.
I have been able to reproduce the issue multiple times tonight, but am not sure how to troubleshoot further. Should the bug for this be on the winFSB project?
I mounted the sshfs filesystem, and then played a video from the mount via VLC. It plays fine for an hour - 2 hours. Randomly, the video will freeze (VLC handles it gracefully). The network location became unavailable. I am not able to disconnect (produces error). I also am no longer able to mount the same or any new sshfs mounts. Restarting the winfsb service gets everything back to a state where I am able to disconnect and reconnect (but the issue comes back an hour or two later).
Before restarting winFSB, I tried using the cmd prompt but it had not effect:
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\asdf>net use
New connections will not be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
             Z:        \\sshfs.r\asdf@host!22\mnt
                                                WinFsp.Np
The command completed successfully.


C:\Users\asdf>net use Z: /delete
Z: was deleted successfully.


C:\Users\asdf>net use
New connections will not be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
             Z:        \\sshfs.r\asdf@host!22\mnt
                                                WinFsp.Np
The command completed successfully.


C:\Users\asdf>

Says success but did literally nothing.

Closing comment (2022-04-17T08:52:50Z): Possibly related to #59? (in particular, see #59 (comment))
Repository: winfsp/sshfs-win

Issue #39: consider renaming internal ssh.exe to prevent sshfs-win picking up system tool with the same name
Created: 2018-07-24T18:26:19Z
A SiriKali user just reported sshfs-win picking ssh.exe executable installed on the system and not the private copy shipping with sshfs-win and this could cause hard to debug issues.
[1] mhogomchungu/sirikali#71
[2] mhogomchungu/sirikali#73

Duplicate issue #110: Clash with Windows 10 SSH client
Created: 2019-10-01T08:00:00Z
It seems that when using Windows 10 1803, SSHFS attempts to use the Windows SSH client instead of its own, and therefore fails.
C:\Program Files\SSHFS-Win\bin>.\sshfs.exe -o loglevel=debug3 -d liam@host.example M:
debug3: Failed to open file:C:\\Users\\liam/.ssh/config error:2
debug3: Failed to open file:C:\\ProgramData\\ssh/ssh_config error:2
debug2: resolving "m" port 22
C:\\WINDOWS\\System32\\OpenSSH\\ssh.exe: Could not resolve hostname m: No such host is known.
read: Connection reset by peer

How can I force sshfs to use its own ssh.exe instead of the system one?

Closing comment (2019-10-02T06:05:42Z): This is a dup of #39
The solution is to change the PATH environmental variable and put sshfs-win bin folder as its first entry or before %SYSTEMROOT%\System32\OpenSSH\ entry because thats where window's ssh.exe is located.
Repository: winfsp/sshfs-win

Issue #59: Intensive I/O causes resource unavailable
Created: 2018-09-11T21:27:42Z
My setup:

Ubuntu 18.04.1 LTS in Hyper-V,
Windows 10 1803 17134.1,
SSHFS: sshfs-win-2.7.17334-x64.msi,
WinFSP: winfsp-1.3.18160.msi.

I establish a connection to the resource using the official way via „map network drive”. Connection is done via host-only interface (not the NAT one). On the Ubuntu I've created some Symfony projects and want to use this on host's PHPStorm instance. Starting and indexing works perfect until — via some reason — the mapped drive's contents completely disappears with a message „access denied” under Explorer.
I've tried to investigate this issue a bit and found out that tweaking sshd params has no affect on this. In Windows events log for WinFSP there's many entries like:
sshfs: The service sshfs has been stopped.
launcher-x64: terminated sshfs\asfsdf@192.168.xx.yy\..\..\workspace
launcher-x64: create sshfs\asfsdf@192.168.xx.yy\..\..\workspace
sshfs: The service sshfs has been started.

and these appear like within the loop.
I'm pretty fresh to WinFSP (and amazed by iops it does) so if is there any additional debug information needed, point what to do, please.

Duplicate issue #329: Memory leak
Created: 2022-01-24T18:34:40Z
I am using sshfs 3.5.2 to mount a share in my local network.
I have realized, that the memory used by sshfs.exe constantly grows, until the app crashes when trying to use more than 1024Mb.
It seems like some memory is not freed correctly, which leads to disconnects after some hours.
I tried reinstalling different versions which does not resolve the issue.
To reproduce (maybe):
mount a network share.
Do a read extensive task on multiple files.
May be related to #214
If I can provide more information I'd be happy to.

Closing comment (2022-04-17T08:51:44Z): Probably related to #59 (comment), which describes the exact same symptoms (to the point where I'd call this issue a dupe of that one).

I am not aware of any memory leaks in core WinFsp (but of course there might still be some). For this reason, this likely is a problem with upstream SSHFS or with its interaction with Cygwin.

There is definitely something going on. I've been hit by the same problem here.
Repository: winfsp/sshfs-win

Issue #54: Extremely poor performance with latest stable, I/O error, random crashes on folder creation
Created: 2018-08-14T21:26:54Z
Using:

sshfs-win-2.7.17334-x64.msi
winfsp-1.3.18160.msi

Connecting to an Android phone (running primitive ftpd) over wifi results in extremely poor performance.
Copying a folder with 10 files with explorer takes like a minute just to calculate the files to copy.
Using WinSCP the files start copying instantly and with over 5 MB/s.
Using:

winfsp-1.4.18211.msi
sshfs-win-3.2.18213-x64.msi

first resulted in an I/O error, then the drive got disconnected and stayed that way (there was no possibility to remove the faulty drive).
After mapping another drive, I again got I/O errors even just trying to create a new folder.

Duplicate issue #90: Error Creating folder
Created: 2019-05-14T07:32:54Z
When I try  to create a folder in Mounted FileSystem, I get this:

Does anyone know what's going on?

Closing comment (2019-05-18T13:44:43Z): Duplicate of #54
Repository: winfsp/sshfs-win

Issue #305: Add support for sftp link.
Created: 2021-08-22T01:31:41Z
When using KDE connect, I need WinSCP to browse files on my phone. Please add support for opening link from KDE connect.

Duplicate issue #294: register sshfs for sftp protocol
Created: 2021-06-05T20:48:46Z
thatway the kdeconnect for windows would be able to connect and mount android phones in Windows explorer.

Closing comment (2023-01-07T11:53:16Z): duplicate: #305
Repository: winfsp/sshfs-win

Issue #267: Use PuTTY Pageant (or KiTTY Kageant) for encrypted SSH keys
Created: 2021-01-07T14:46:46Z
This started months ago at #217 (comment), and I have finally found the core issue and a potential solution (as well as a workaround, see next comment).
Get ssh-pageant.exe, e.g., from https://github.com/cuviper/ssh-pageant/releases/tag/v1.4-prebuilt-cygwin64.
I got mine, version 1.4, from Cygwin:
https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fssh-pageant%2Fssh-pageant-1.4-1&grep=ssh-pageant
Launch PuTTY's pageant or KiTTY's kageant and load your key(s). Then, start ssh-pageant like this:
set SSH_AUTH_SOCK=%TEMP%\ssh-pageant.socket
ssh-pageant.exe -r -a %SSH_AUTH_SOCK%

Ideally, this should be it - fire up sshfs-win.exe from a shell where SSH_AUTH_SOCK is set correctly (you can use setx SSH_AUTH_SOCK %TEMP%\ssh-pageant.socket once to set it globally once and forever, and auto-start ssh-pageant.exe on login) and you should be good.
Unfortunately, it seems that the value of SSH_AUTH_SOCK is lost when sshfs-win.exe calls ssh.exe through sshfs.exe. I suspect the problem to be here:
https://github.com/billziss-gh/sshfs-win/blob/bb6c90d35cfb309cf976794a7f12938f1ebee136/sshfs-win.c#L248
(Note: sshfs usesexecvp(sshfs.ssh_args.argv[0], sshfs.ssh_args.argv) instead, see https://github.com/libfuse/sshfs/blob/9e01ffd161591f87dd7ef02ab2a0f0aecd800a00/sshfs.c#L1225,
which does not have this problem as we will see.)

Duplicate issue #78: Include support for Pageant
Created: 2019-01-22T12:33:36Z
Hi,
Thanks for your hard work on this project.
I have been playing around trying to get sshfs to work with pageant using ssh-pageant without a cygwin installation (just with what is included in this project).
I placed ssh-pageant.exe in the same directory as sshfs.exe so it can use the bundled cygwin dlls. By manually setting SSH_AUTH_SOCK environment variable in a cmd.exe shell, I was able to get the bundled ssh.exe to work, however sshfs.exe would not.
It seems like it should work, although ssh-pageant.exe's use is very posix shell based (it exports bash code that is meant to be evaled), so I'm a bit unclear about how this should work without a posix shell. I will install a full cygwin environment and try -- it seems like this should work (haven't tried it yet though) However, since sshfs ships with its own cygwin environment, it would be nice if it could include support for pageant without having to also install bash, perhaps with a command-line switch of some kind (I'm not sure the specifics of how this should work).
Lots windows users who are not using a full cygwin bash environment would probably be using putty/pageant for ssh, so integration with these tools seems important. Would this be feasible?
Thanks again
EDIT: its possible I'm actually experiencing #74 and that what I have done should work after all

Closing comment (2021-06-25T05:20:38Z): Dupe of #267 which offers a solution.
Repository: winfsp/sshfs-win

Issue #54: Extremely poor performance with latest stable, I/O error, random crashes on folder creation
Created: 2018-08-14T21:26:54Z
Using:

sshfs-win-2.7.17334-x64.msi
winfsp-1.3.18160.msi

Connecting to an Android phone (running primitive ftpd) over wifi results in extremely poor performance.
Copying a folder with 10 files with explorer takes like a minute just to calculate the files to copy.
Using WinSCP the files start copying instantly and with over 5 MB/s.
Using:

winfsp-1.4.18211.msi
sshfs-win-3.2.18213-x64.msi

first resulted in an I/O error, then the drive got disconnected and stayed that way (there was no possibility to remove the faulty drive).
After mapping another drive, I again got I/O errors even just trying to create a new folder.

Duplicate issue #64: sshfs crashes with cygwin exception when creating folder
Created: 2018-10-02T11:12:34Z
Sshfs crashes when creating a folder in S:\tmp using explorer.
Error: cygwin_exception::open_stackdumpfile: Dumping stack trace to sshfs.exe.stackdump.
This problem happens in several machines, Windows 7 x64.
The server is Redhat 7.
sshfs command arguments:
sshfs user@host:/ S:  -o port=22 -o IdentityFile=D:/Users/user/.ssh/id_rsa 
-oVolumePrefix=/sshfs/user@host -o uid=-1,gid=-1,create_umask=007,mask=007  
-o FileSystemName=SSHFS  -o PasswordAuthentication=no -o StrictHostKeyChecking=no 
-o UserKnownHostsFile=/dev/null -o ServerAliveInterval=10  -o compression=no 
-o sshfs_sync -o rellinks  -o reconnect  -o ThreadCount=10 -o dir_cache=yes -o dcache_timeout=5 
-o dcache_clean_interval=300 -o KeepFileCache -o FileInfoTimeout=-1 -o DirInfoTimeout=5000 
-o VolumeInfoTimeout=5000 -f

I have the dump files if that is useful.
I am using the latest winfsp and sshfs.

Closing comment (2019-05-18T13:44:15Z): Duplicate of #54
Repository: winsw/winsw

Issue #444: Add troubleshooting guides
Created: 2020-03-20T15:32:46Z
Including but not specific to:

Common errors

Error 1067 #396


Differences between a service and a normal process

Account (LocalService #121)
Working directory (#340)
WinSW specific standard handle handling (STDIN #234)
UI
Some details in #442


Differences between start command and test command

Similar to a service vs. a normal process

Duplicate issue #351: Java - Unable to use system properties
Created: 2020-01-08T18:21:37Z
I have a java program to get the windows logon username.
I have tried this:
System.getProperty("user.name");
I have also tried using JNA:
char[] name = new char[200];
Secur32.INSTANCE.GetUserNameEx(
Secur32.EXTENDED_NAME_FORMAT.NameDisplay,
name,
new IntByReference(name.length)
);
String fullName = new String(name).trim();
Both of these approaches work fine when running as a independent java program, but when I run it as a service, the values are not correct.
Is it because the java program environment is not set correctly?
Thanks

Closing comment (2020-04-12T09:31:58Z): The service is installed as the LocalSystem account by default. You have to provide the username and the password to install it as a user account.
Tracked by #444
Repository: winsw/winsw

Issue #444: Add troubleshooting guides
Created: 2020-03-20T15:32:46Z
Including but not specific to:

Common errors

Error 1067 #396


Differences between a service and a normal process

Account (LocalService #121)
Working directory (#340)
WinSW specific standard handle handling (STDIN #234)
UI
Some details in #442


Differences between start command and test command

Similar to a service vs. a normal process

Duplicate issue #139: [Windows XP] "winsw.exe start" vs "winsw.exe test"
Created: 2016-11-30T12:55:15Z
Hi, Im using winsw to wrap a Java application. When I run 'winsw.exe start', it does nothing, but when I run 'winsw.exe test', the Java application is called properly, is this a known issue?

Closing comment (2020-03-26T06:09:45Z): There are differences between start command and test command.
Tracked by #444
Repository: winsw/winsw

Issue #230: Launch program with GUI
Created: 2017-07-05T12:36:34Z
Hi :)
I have correctly configured and started my program with Winsw, but her GUI is not displayed on the screen.
Do you have any options for this ?
Thank
Adrien

Duplicate issue #445: open Browser from my Springboot Application
Created: 2020-03-21T12:28:56Z
i have springboot application that opens  Crome Browser,  my program takes selenium script and executes it..for running selenium script i need to open browser.
It seems Crome Browser in opening in background mode (headless) when running as service.
is there a way to open Browser in foreground.
Thanks in advance
Thanks
Srinivas

Closing comment (2020-04-11T06:21:08Z): Duplicate of #230
Repository: winsw/winsw

Issue #944: Registering as a win service and calling win TTS will report an error
Created: 2022-05-31T09:06:47Z
Summary. Describe the expected and actual behavior here.
Steps to reproduce
Please clarify how to reproduce the issue.
If you need to attach your configuration, please do it pelow:
<service>
  
  <id>ROOT</id>
  <!-- Display name of the service -->
  <name>ROOT</name>
  <!-- Service description -->
  <description>pop-ROOT</description>
  
  <!-- Path to the executable, which should be started -->
  <executable>java</executable>
  <arguments>-jar ROOT.jar</arguments>

</service>

Environment

WinSW version: 2.11
WinSW package type: WinSW-x64.exe
Windows version: win10 and win11
Wrapped executable and version: TODO 

Directly run Java -jar xxx After the jar is started, there is no problem accessing the encapsulated TTS service. However, if you use the winssw wrapper and register as a win service to access the TTS, an error will be reported。
The error information is as follows：
`com.jacob.com.ComFailException: Invoke of: Speak
Source:
Description: 没有注册类
at com.jacob.com.Dispatch.invokev(Native Method) ~[jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.invokev(Dispatch.java:625) ~[jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.callN(Dispatch.java:453) ~[jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.call(Dispatch.java:541) ~[jacob-1.20.jar!/:na]
at com.tyzn.app.speech.service.SpeechService.textToSpeech(SpeechService.java:45) ~[classes!/:1.0.0]`

Duplicate issue #945: Registering as a win service and calling win TTS will report an error
Created: 2022-05-31T09:07:32Z
Summary. Describe the expected and actual behavior here.
Steps to reproduce
Please clarify how to reproduce the issue.
If you need to attach your configuration, please do it pelow:
<service>
  
  <id>ROOT</id>
  <!-- Display name of the service -->
  <name>ROOT</name>
  <!-- Service description -->
  <description>pop-ROOT</description>
  
  <!-- Path to the executable, which should be started -->
  <executable>java</executable>
  <arguments>-jar ROOT.jar</arguments>

</service>

Environment

WinSW version: 2.11
WinSW package type: WinSW-x64.exe
Windows version: win10 and win11
Wrapped executable and version: TODO 

Directly run Java -jar xxx After the jar is started, there is no problem accessing the encapsulated TTS service. However, if you use the winssw wrapper and register as a win service to access the TTS, an error will be reported。
http://localhost:8080/api/speech/textToSpeech?text=12345678
The error information is as follows：
`com.jacob.com.ComFailException: Invoke of: Speak
Source:
Description: 没有注册类
at com.jacob.com.Dispatch.invokev(Native Method) ~[jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.invokev(Dispatch.java:625) ~[jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.callN(Dispatch.java:453) ~[jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.call(Dispatch.java:541) ~[jacob-1.20.jar!/:na]
at com.tyzn.app.speech.service.SpeechService.textToSpeech(SpeechService.java:45) ~[classes!/:1.0.0]`

Closing comment (2022-06-17T08:52:15Z): Duplicate of #944
I know, so I prompted to resubmit #944, but this problem needs to be solved
Repository: winsw/winsw

Issue #444: Add troubleshooting guides
Created: 2020-03-20T15:32:46Z
Including but not specific to:

Common errors

Error 1067 #396


Differences between a service and a normal process

Account (LocalService #121)
Working directory (#340)
WinSW specific standard handle handling (STDIN #234)
UI
Some details in #442


Differences between start command and test command

Similar to a service vs. a normal process

Duplicate issue #339: When I wrappered  python.exe ,it give me this error
Created: 2019-09-30T09:29:31Z
When I wrappered  Python.exe then give me this error:
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Closing comment (2020-04-02T04:52:37Z): This is probably a working directory issue. Please try specifying the <workingdirectory> setting.
Tracked by #444
Repository: winsw/winsw

Issue #444: Add troubleshooting guides
Created: 2020-03-20T15:32:46Z
Including but not specific to:

Common errors

Error 1067 #396


Differences between a service and a normal process

Account (LocalService #121)
Working directory (#340)
WinSW specific standard handle handling (STDIN #234)
UI
Some details in #442


Differences between start command and test command

Similar to a service vs. a normal process

Duplicate issue #340: user home directory changed in winsw service
Created: 2019-10-08T07:40:56Z
I need to use my home directory in my program, it works fine when I test it. But it failed when it run as a service created by winsw.  It's because my home direcotry is changed to C:\WINDOWS\system32\config\systemprofile in winsw service, how's that happening?

Closing comment (2020-03-27T13:53:43Z): A service is installed as the LocalSystem account by default. You can change this with the <serviceaccount> setting. The documentation issue is tracked by #444.
There is a /p option which allows prompting for username and password. More is to come in #308.
I'm closing this in favor of the issues mentioned above. Feel free to file a new issue if further action is required. Thanks.