Menu

#40 Tomcat 7 compatibility

open
nobody
None
5
2012-09-06
2012-02-07
Anonymous
No

Here are some compatibility fixes for TC7. These are copy/pasted from the forums:
http://forum.subsonic.org/forum/viewtopic.php?f=5&t=8701

  1. CSRF error popups
    This happens because TC7 sets httpOnly cookie flag to true by default and DWR 3.0.RC1 requires cookies to not have httpOnly.

Solution: Upgrade to DWR 3.0.RC2

  1. ELException in userSettings.jsp
    Tomcat 7 is stricter regarding property names in EL expressions. All property names must be valid Java identifiers, but userSettings.jsp contains command.new references which aren't valid because "new" is a Java keyword.

Solution: Replace command.new with command['new'] in userSettings.jsp

  1. ELException in personalSettings.jsp
    Same as problem 2, but here the reserved keyword is "default".

Solution: Change the variable name to defaultMsg (var="default" -> var="defaultMsg"). Change the expression to ${defaultMsg}.

  1. ELExceptions in main.jsp, shareSettings.jsp, podcastReceiver.jsp
    Once again the same problem, but in these files the reserved keyword is "class".

Solution: Change the variable name to htmlClass (var="class" -> var="htmlClass"). Change the expressions to ${htmlClass}

  1. Javascript errors and the flash player doesn't work
    This is probably related to the DWR 3.0.RC2 upgrade. The problem is that in playlist.jsp DWR "engine.js" and "util.js" are included after, not before the scripts that require DWR (e.g nowPlayingService.js).

Solution: Move "/dwr/engine.js" and "/dwr/util.js" script tags before "/dwr/interface/nowPlayingService.js".

Discussion

  • Nobody/Anonymous

    WqQ1SL ubnkfbcvtvsk, [url=http://aaxnekxfizbq.com/]aaxnekxfizbq[/url], [link=http://wuwnyclumpgc.com/]wuwnyclumpgc[/link], http://nzhdzflehhfe.com/

     
  • Nobody/Anonymous

    GPtWEE hvjetpvexqfo, [url=http://qwgtngvurzdh.com/]qwgtngvurzdh[/url], [link=http://pyfnqghjeazf.com/]pyfnqghjeazf[/link], http://puymmpizrkik.com/

     
  • Nobody/Anonymous

    54T9J8 lfzxxxchhuhg, [url=http://witrfiuhwqnj.com/]witrfiuhwqnj[/url], [link=http://yofzsnwqjfem.com/]yofzsnwqjfem[/link], http://kuoswgpddyuc.com/

     
  • Nobody/Anonymous

    ScXWuV wmexqojebcqi, [url=http://ovximvfohdau.com/]ovximvfohdau[/url], [link=http://dikygsdjexvw.com/]dikygsdjexvw[/link], http://yyzgnjpxghta.com/

     
  • Nobody/Anonymous

    yiOJYv lpttbeuulncv, [url=http://ypczyktxugwt.com/]ypczyktxugwt[/url], [link=http://tcekofwprcek.com/]tcekofwprcek[/link], http://bicadfikismd.com/

     

Anonymous
Anonymous

Add attachments
Cancel