2007-03-30:
[9:07] <hns> moin[9:08] <zumbrunn> good morning[9:28] <earl> tag[10:06] <klemens_> hi[10:06] <klemens_> have troubles with res.forward()...in helma1.6[10:07] <zumbrunn> what happens?[10:07] <klemens_> it doesn"t work. and i didnt changed the code of my app.[10:08] <klemens_> i send res.forward a relative path[10:08] <klemens_> from protectedStatic/<appname>/<my relative [path>[10:10] <klemens_> so my call is res.forward(<my_relativ_path>)[10:11] <klemens_> my error via response (no errors in app.log):The server encountered an error while processing your request. Please check back later.[10:13] <klemens_> i can't find the old example in the reference (because http://helma.org/docs/reference/ redirects to http://helma.zumbrunn.net/reference/core/)[10:17] <hns> hi klemens[10:17] <klemens_> i can access to files in <helmaDir>/protectedStatic/. but not in subdirectories (i'm using java.io.File.separator)[10:17] <hns> res.forward is working ok here on my laptop.[10:17] <klemens_> hi hannes[10:17] <hns> bist du sicher, dass dein build ok ist?[10:17] <klemens_> ja[10:17] <zumbrunn> res.forward wasn't documented at all: http://helma.org/docs/reference/response/[10:18] <zumbrunn> http://helma.zumbrunn.net/forwarding[10:18] <klemens_> oh right. i thourd there was a small example. thank u[10:19] <zumbrunn> forwarding.hac: res.forward('example');[10:20] <zumbrunn> aber mein build dort ist nicht ganz up-to-date[10:20] <hns> hier bei mir gehts wie gesagt. könnte an was anderem liegen.[10:21] <klemens_> probier mal eine file aus einem subdirecory zu forwarden.[10:22] <klemens_> example: res.forward("foo.txt") -> works[10:22] <zumbrunn> wenn foo.txt wo liegt?[10:22] <klemens_> res.forward("cache" + java.io.File.separator + "foo.txt") -> works not[10:23] <klemens_> eine liegt in protectedStatic/ die andere in protectedStatic/cache/[10:23] <hns> klemens: mit appname.debug=true in apps.properties kriegst du eine fehlermelding um browser.[10:23] <klemens_> ich probier das mal, danke[10:28] <zumbrunn> is res.forward only intended for serving files from protectedStatic?[10:28] <zumbrunn> if so, I have to fix the docs[10:30] <klemens_> the exception writes the full path into the log:[10:30] <klemens_> java.io.IOException:[10:30] <klemens_> Can't read C:\helma_1_6\protectedStatic\twoday\sites\foo.txt[10:30] <klemens_> the path is correct. and its the same file in[10:30] <klemens_> C:\helma_1_6\protectedStatic\twoday_w1_s2\foo.txt[10:30] <klemens_> and that file works.[10:34] <klemens_> oops der 2 pfad is falch, so mein ich: C:\helma_1_6\protectedStatic\twoday\foo.txt[10:38] <zumbrunn> bei mir geht's auch aus einem subdir mit java.io.File.separator[10:40] <zumbrunn> (aber bei mir ist's unix)[10:45] <klemens_> ich hab jetzt sicherheitshalber noch mal ein cvs update+build gemacht. hilft nix.[10:54] <hns> hä? ich dachte der pfad ist falsch?[10:56] <klemens_> nix. der pfad den die exeption wirft ist korrekt![10:56] <hns> offensichtlich kann jetty das file nicht öffnen.[10:56] <klemens_> ich hab das grad gecheckt. der error ist nur auf windoof reproduzierbar.[10:57] <klemens_> i really need a unix laptop[10:57] <klemens_> ;)[10:58] <klemens_> Starting Jetty/4.2.27[10:59] <klemens_> kann ich dir/euch irgendie helfen (jetty debuggen) damit ihr das problem weiter einkreisen koennt?[11:00] <hns> kannst du mal probieren, das lib/jetty.jar downzugraden? Eventuell auf CVS revision 1.14 und 1.13[11:00] <hns> und bist du sicher, dass das problem auf windows bisher nicht aufgetreten ist?[11:02] <klemens_> zumindest nicht bei helma1.5.3[11:03] <klemens_> ich nehm mal die jetty.jar von helma1.5 und probier nochmal[11:03] <hns> sag was du findest.[11:05] <klemens_> mit jetty4.2.22 funkt alles prima. ob das so toll is weis ich auch nicht.[14:05] <hns> klemens: das problem ist gross/kleinschreibung.[14:05] <hns> scheinbar ist jetty 4.2.27 da genauer bzw empfindlicher.[14:10] <zumbrunn> wo war in klemens' beispiel gross/kleinschreibung ein faktor?[14:11] <zumbrunn> res.forward("foo.txt") vs res.forward("cache" + java.io.File.separator + "foo.txt")[14:32] <hns> wtf file-separator? res.forward("foo/bar.txt");[14:33] <hns> immer mit normalem slash[14:34] <zumbrunn> wahrscheinlich hatte klemens heute morgen nur wegen dem java.io.File.separator probleme[14:35] <zumbrunn> hmm, er sagte aber mit dem alten jetty habe es funktioniert[14:36] <zumbrunn> vielleicht funktionierte es mit der alten jetty version sowohl mit forward als auch backslash[14:40] <hns> jaja, eh
In the channel now:
Logs by date: