8000 [Sync [WebDAV]] Extensionless files cause problems for IIS · Issue #1244 · violentmonkey/violentmonkey · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Sync [WebDAV]] Extensionless files cause problems for IIS #1244
Open
@da2x

Description

@da2x

What is the problem?

IIS doesn't allow downloading files without extensions. It requires additional configuration to allow this. (Windows doesn't really do extensionless files. There are no file associations for them and they're difficult to work with.)

Violentmonkey's getItemFilename returns filenames without extensions. Since all the files are JSON, it should append .json to all the names. This change also enables syntax highlighting in supported file editors.

How to reproduce it?

  1. Sync Violentmonkey over WebDAV against an IIS server

What is the expected result?

Sync should work.

What is the actual result?

Sync error!/IIS 404.3 error. Violentmonkey thinks its a new install every time (even when there's data) because IIS admittedly stupidly returns 404 even when the file exists on the share.

Environment

  • Violentmonkey version: v2.12.12

Migration strategy

If Violentmonkey/Violentmonkey.json exists then migration has happen. If Violentmonkey/Violentmonkey exists then iterate through all files and move them to .json variants; lastly move the file itself. If neither exists then it's a new install and default to the new .json variant for file names.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0