Skip to content

GHContent - Spaces in Path causes Malformed request #624

@ope-nz

Description

@ope-nz

Describe the bug
When using the GHContent update method and the path (filename) contains spaces the library throws an error of;

org.kohsuke.github.HttpException: <title>Malformed request</title>

We didn't receive a proper request from your browser. Please contact us if the problem persists.

To Reproduce
Steps to reproduce the behavior:

  1. Create any content in a file with spaces in the name eg Test Test.txt
  2. Try to update the file using GHContent update
  3. See error org.kohsuke.github.HttpException: <title>Malformed request</title>

Expected behavior
The file should be updated.

Desktop :

  • OS: Windows 10
  • Browser chrome
  • Version 1.99

Additional context
Create content has a the same issue but I can at least escape the file name with %20

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions