Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a file/folder with '%' in the name returns 400 Bad Request #5810

Closed
ghost opened this issue Jul 26, 2017 · 6 comments
Closed

Creating a file/folder with '%' in the name returns 400 Bad Request #5810

ghost opened this issue Jul 26, 2017 · 6 comments
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Milestone

Comments

@ghost
Copy link

ghost commented Jul 26, 2017

From @balzer814 on July 25, 2017 15:3

When adding a file/folder with '%' in the name codenvy returns 400 Bad Request.
It is possible to create a folder with such a name using the terminal, but this folder can later not be opened in the ide.
When creating such a file over the terminal and than open it in the IDE the opened Editor only says 'An error occoured while loading the file.'

Reproduction Steps:

  1. open new...-> folder dialog
  2. type in '%name' as directory name
  3. click ok
  4. codenvy shows an error message:
    image

Codenvy version:
5.15.0

Copied from original issue: codenvy/codenvy#2337

@ghost ghost added kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system. team/plugin labels Jul 26, 2017
@koppor
Copy link

koppor commented Jul 27, 2017

This is necessary for Eclipse Winery to be able to code files in the browser.

Example folder: https://github.com/winery/test-repository/tree/black/nodetypes/http%253A%252F%252Fwinery.opentosca.org%252Ftest%252Fponyuniverse/unicorn

We use double encoding, because of security counter-measurements at Web servers. See http://eclipse.github.io/winery/dev/Encoding for more links.

@balzer814
Copy link

balzer814 commented Aug 10, 2017

This issue also exists with already existing folders that are cloned into che from a git repository

Example:

  1. create Git repository "issue5810Repo" on GitHub
  2. add folder "problematic%folder"
  3. add File "unreachable.txt"
  4. import the repo in che using the factory link http://codenvy.io/f?url=https://github.com/balzer814/issue5810Repo
  5. after importing the folder can't be opened, deleted or renamed and "unreachable.txt" can't be accessed

@vkuznyetsov vkuznyetsov added status/open-for-dev An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it. team/enterprise sprint/current and removed team/plugin labels Aug 10, 2017
@ashumilova
Copy link
Contributor

Hi, enterprise team is planning it for current sprint (starts today and ends 29 Aug).

@slemeur
Copy link
Contributor

slemeur commented Aug 10, 2017

thanks @ashumilova !

@AndrienkoAleksandr AndrienkoAleksandr added status/in-progress This issue has been taken by an engineer and is under active development. and removed status/open-for-dev An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it. labels Aug 15, 2017
@AndrienkoAleksandr AndrienkoAleksandr removed the status/in-progress This issue has been taken by an engineer and is under active development. label Sep 7, 2017
@AndrienkoAleksandr
Copy link
Contributor

AndrienkoAleksandr commented Sep 7, 2017

@AndrienkoAleksandr AndrienkoAleksandr added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Sep 7, 2017
@mmorhun
Copy link
Contributor

mmorhun commented Sep 14, 2017

Merged.

@mmorhun mmorhun closed this as completed Sep 14, 2017
@mmorhun mmorhun removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Sep 14, 2017
@mmorhun mmorhun added this to the 5.18.0 milestone Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

8 participants