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

problems with .sh files #697

Closed
szaimen opened this issue Mar 6, 2020 · 2 comments
Closed

problems with .sh files #697

szaimen opened this issue Mar 6, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@szaimen
Copy link
Contributor

szaimen commented Mar 6, 2020

Describe the bug
I cannot edit or show .sh files when I am logged in.

To Reproduce
Steps to reproduce the behavior:

  1. logg into the Nextcloud
  2. create a test.sh file and click on it to open/edit the file
  3. the text app opens but just loads forever

Expected behavior
It should open the file so that I can read/edit it.

Good to know
Strangely enough I can view/edit that file when I share it directly over a public link. Then it gets shown correctly and loads the content.

Client details:

  • OS: tested on windows 10 and Android 10
  • Browser: tested on a chromium 80 based browser and firefox 73 on

Text app version: (see Nextcloud apps page)
1.0.2
Operating system:
ubuntu 18.04 LTS
Web server:
apache2
Database:
postgresql
PHP version:
7.2
Nextcloud version: (see Nextcloud admin page)
18.0.1

Additional information:
I found this error while opening the file in the browser console:
image

@szaimen szaimen added the bug Something isn't working label Mar 6, 2020
@tavinus
Copy link

tavinus commented Mar 10, 2020

I have the same problem on a file with the php extension, loads forever.
If I duplicate the file and rename it to .txt > it works, renaming to .html > also works
Pretty weird.

EDIT > Also, if I try to open the php file and then cancel (when it is forever loading) it will break the app and I will need to refresh the page for it to work again. Meaning that it won't open any files (not even .txt until the page is hard-reloaded).

EDIT2 > this seems to be a duplicate of #651

EDIT3> I tried to change the 'mimetypesmapping.json' to make all code seem like 'text/plain', but that also didn't fix the problem. Text seems to ignore that config. Seems there is some problem to load any code files.

@wiswedel
Copy link

wiswedel commented Apr 2, 2020

duplicate of #651

@wiswedel wiswedel closed this as completed Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants