Pita/etherpad-lite — Issue #522: Current HEAD seams unusable
Author: jtlebi
Created: 2012-02-29 09:06:09+00:00
State: open

Hi,

I was just starting to contribute a new feature but I came into 2 big issues.

* When "minify" is set to true => The page loads is tuck on the client side with this Firebug log

```
"NetworkError: 404 Not Found - http://jtlebi.fr:8080/static/custom/pad.css"
pad.css
"NetworkError: 404 Not Found - http://jtlebi.fr:8080/static/custom/pad.js"
pad.js
GET http://jtlebi.fr:8080/minified/pad?callback=require.define

require-kernel.js (ligne 1)
Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[Stopper sur une erreur]

...d?c.async="true":c.defer="true",c.type="application/javascript",c.src=F(a)+"?cal...

require-kernel.js (ligne 1)
```

* When "minify" is set to false => The page loads crashes on the server side with this log

```
[...]
[2012-02-29 09:59:37.303] [INFO] http - 404, HEAD /static/js/pad_connectionstatus
[2012-02-29 09:59:37.304] [INFO] http - 404, HEAD /static/js/pad_savedrevs
[2012-02-29 09:59:37.312] [INFO] http - 404, HEAD /static/js/prefixfree
[2012-02-29 09:59:37.338] [ERROR] console - TypeError: Cannot read property 'headers' of undefined
at respond (/root/dev/test/node/utils/caching_middleware.js:145:46)
at ServerResponse. (/root/dev/test/node/utils/caching_middleware.js:128:48)
at /root/dev/test/node_modules/yajsml/server.js:330:18
at /root/dev/test/node_modules/yajsml/server.js:370:13
at completed (/root/dev/test/node_modules/yajsml/request.js:279:5)
at /root/dev/test/node_modules/yajsml/request.js:266:9
at IncomingMessage. (/root/dev/test/node_modules/yajsml/request.js:248:20)
at IncomingMessage.emit (events.js:88:20)
at HTTPParser.onMessageComplete (http.js:137:23)
at Socket.ondata (http.js:1147:24)
[2012-02-29 09:59:37.339] [INFO] console - graceful shutdown...
[2012-02-29 09:59:37.340] [INFO] console - db sucessfully closed.
```

nota: this tests were done with a fresh git clone from master branch

Is there anything I did wrong ?