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

Adding pads doesn't work in Etherpad 1.5.5 on Windows #2614

Closed
shaker opened this issue Apr 15, 2015 · 22 comments · Fixed by #2617
Closed

Adding pads doesn't work in Etherpad 1.5.5 on Windows #2614

shaker opened this issue Apr 15, 2015 · 22 comments · Fixed by #2617

Comments

@shaker
Copy link

shaker commented Apr 15, 2015

Hello.

I have a problem with Etherpad 1.5.5 on Windows. I unpacked the files to a clean folder (I got the archive from http://etherpad.org/downloads/etherpad-lite-win-1.5.5-24b0712d77.zip).

  1. Run "start.bat".
  2. Go to localhost:9001
  3. Enter some text on textbox and then press "OK".
  4. An error occured while loading the pad. ReferenceError: require is not defined in http://localhost:9009/p/123 (line 531)

Console:

GET http://localhost:9009/static/js/require-kernel.js HTTP/1.1 404 Not Found
ReferenceError: require is not defined http://localhost:9009/javascripts/lib/ep_etherpad-lite/static/js/pad.js?callback=require.define
ReferenceError: require is not defined http://localhost:9009/javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define
ReferenceError: require is not defined dddddd:531:14 require.setRootURI(baseURL + "javascripts/src");

I've tried in WinXP, Win7, Firefox and Chome. File require-kernel.js doesn't exist in the folder with static files. I'm not good in Javascript or Node (and English, sorry).
I have successfully used the version 1.2.7 before.

@JohnMcLear
Copy link
Member

What version of node? Have you tried a
clean install?

----- Reply message -----
From: "Kolchanskiy Dmitriy" notifications@github.com
To: "ether/etherpad-lite" etherpad-lite@noreply.github.com
Subject: [etherpad-lite] Adding pads doesn't work in Etherpad 1.5.5 on Windows (#2614)
Date: Wed, Apr 15, 2015 13:30

Hello.

I have a problem with Etherpad 1.5.5 on Windows. I unpacked the files to a clean folder (I got the archive from http://etherpad.org/downloads/etherpad-lite-win-1.5.5-24b0712d77.zip).

  1. Run "start.bat".
  2. Go to localhost:9001
  3. Enter some text on textbox and then press "OK".
  4. An error occured while loading the pad. ReferenceError: require is not defined in http://localhost:9009/p/123 (line 531)

Console:

GET http://localhost:9009/static/js/require-kernel.js HTTP/1.1 404 Not Found
ReferenceError: require is not defined http://localhost:9009/javascripts/lib/ep_etherpad-lite/static/js/pad.js?callback=require.define
ReferenceError: require is not defined http://localhost:9009/javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define
ReferenceError: require is not defined dddddd:531:14 require.setRootURI(baseURL + "javascripts/src");

I've tried in WinXP, Win7, Firefox and Chome. File require-kernel.js doesn't exist in the folder with static files. I'm not good in Javascript or Node (and English, sorry).
I have successfully used the version 1.2.7 before.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2614.

@shaker
Copy link
Author

shaker commented Apr 15, 2015

Standalone Node is in the archive etherpad-lite-win-1.5.5-24b0712d77.zip and has version 0.10.38.
Have I tried a clean install of Node or Etherpad? Etherpad - I've tried (as actually in the message above), Node - I haven't.

@JohnMcLear
Copy link
Member

Try download again, extract again and see if it works.. Node 10 should be okay..

@JohnMcLear
Copy link
Member

I did notice during extraction with native windows extractor on w8 we have some issues with path being too long, I thought I'd resolved that..

@JohnMcLear
Copy link
Member

@JohnMcLear
Copy link
Member

I'm able to replicate this issue on 1.5.5

@JohnMcLear
Copy link
Member

The issue exists on a fully extracted version of Etherpad. Ugh

@JohnMcLear
Copy link
Member

This will be a bit of a pain in the ass to debug... It will be quicker for you to bring up a linux VM and run it in there while we fix it up.

@JohnMcLear
Copy link
Member

1.5.1 is fine, as is 1.5.2

@JohnMcLear
Copy link
Member

1.5.3 is broken, doing bisect now to find commit.

@shaker
Copy link
Author

shaker commented Apr 15, 2015

I don't mind the wait. :-) An older 1.2.7 version of Etherpad works well.

@JohnMcLear
Copy link
Member

Breaking commit

9d4e5f6 is the first bad commit
commit 9d4e5f6
Author: John McLear john@mclear.co.uk
Date: Fri Apr 10 22:02:22 2015 +0100

dont allow directory traversal

:040000 040000 7e28e7ab56134df08cc8d96f5f0b660ec05149b3 536e5baec42fecf77bf691a1
a2ee25c0851ed362 M src

@JohnMcLear
Copy link
Member

@devoidfury any suggestion for how to best handle this?

devoidfury added a commit to devoidfury/etherpad-lite that referenced this issue Apr 15, 2015
JohnMcLear added a commit that referenced this issue Apr 15, 2015
revert to old path handling, but strip out "..". fixes #2614
@JohnMcLear
Copy link
Member

Thanks for the fix @devoidfury -- works 10/10 ! :)

@JohnMcLear
Copy link
Member

@Gared we might want to do another release due to this?

@devoidfury
Copy link
Contributor

No problem, sorry about the regression!

@Gared
Copy link
Member

Gared commented Apr 15, 2015

@JohnMcLear Do we really want to release again? Maybe we should wait until @Pita is done with his iframe removal process?!
Btw: you can grab latest windows build here: http://stefans-entwicklerecke.de/wp-content/eplite-nightly-builds/

@JohnMcLear
Copy link
Member

Oh we wont be merging in the iframe stuff for at least 3 months!

I don't think releasing again will hurt, not releasing will..

@shaker
Copy link
Author

shaker commented Apr 16, 2015

Thanks guys!
Nightly-build works well.

@JohnMcLear
Copy link
Member

+1 shaker tnx

@Gared
Copy link
Member

Gared commented Apr 16, 2015

@JohnMcLear If you want I can do another release for this. Probably I can do it today evening.

@JohnMcLear
Copy link
Member

Perfect thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants