Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2002, 01:49 AM
JCharlesHolt JCharlesHolt is offline
 
Join Date: Aug 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default JAVA Cookies Problem

I just purchased vBulletin and got it all installed only to discover that it HATES our Java server. Or rather, the Java server hates the cookies that vBulletin sets. And, unfortunately, vBulletin won't offer any support. So unless I can find a fix, I'm out the $160 I just spent buying vBulletin. Serious bummer.

So hopefully one of you might be able to offer a suggestion (other than just turning off cookies). I believe the problem lies in the name of the cookie, particularly the use of brackets []. If this was removed I suspect all would work fine. At least, I hope.

After visiting the forums and reading a message, returning to the homepage on our server results in the following error:

java.lang.IllegalArgumentException: illegal cookie name: bbthreadview[1]
at javax.servlet.http.Cookie.<init>(Cookie.java:103)
at com.caucho.server.http.Request.fillCookie(Request. java:1126)
at com.caucho.server.http.Request.fillCookies(Request .java:1030)
at com.caucho.server.http.Request.getCookie(Request.j ava:1004)
at com.caucho.server.http.Request.findSessionIdFromCo okie(Request.java:1263)
at com.caucho.server.http.Request.getRequestedSession Id(Request.java:1225)
at com.caucho.server.http.AbstractRequest.createSessi on(AbstractRequest.java:423)
at com.caucho.server.http.Request.getSession(Request. java:1167)
at com.caucho.jsp.QPageContext.initialize(QPageContex t.java:104)
at com.caucho.jsp.QJspFactory.getPageContext(QJspFact ory.java:78)
at _home__jsp._jspService(_home__jsp.java:18)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(Fi lterChainPage.java:181)
at com.caucho.server.http.Invocation.service(Invocati on.java:291)
at com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:132)
at com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:341)
at com.caucho.server.http.RunnerRequest.handleConnect ion(RunnerRequest.java:271)
at com.caucho.server.TcpConnection.run(TcpConnection. java:136)
at java.lang.Thread.run(Thread.java:536)

So, uh... any suggestions?
Reply With Quote
  #2  
Old 09-15-2002, 05:30 PM
JCharlesHolt JCharlesHolt is offline
 
Join Date: Aug 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I've still had no luck getting vBulletin to work with Java. vBulletin offers no support on it, and I'm pretty bummed that I shelled out the money for a copy and can't use it.

To reiterate, the bbthreadview cookie that vBulletin sets chokes the java server, due to the square brackets in the name.

I modified the code for vBulletin (v 2.6.6) to set a cookie without the brackets, and that works... but I can't figure out how to modify the PHP in the other files to read the new cookie properly.

In showthread.php, I modified line 253 from "bbthreadview[$threadid]" to "bbthreadview$threadid" and that works.

But in forumdisplay.php (and all other pages that have bbthreadview in them), it's a bit tricker. The code on line 612 reads "$bbthreadview[$thread[threadid]]". Well changing it to "$bbthreadview$thread[threadid]" didn't work at all. Changing it to "$bbthreadview[$threadthreadid] now at least runs, but it isn't reading the same name as the cookie.

I know nothing about PHP, and I was hoping SOMEONE could give me a hint on this. Otherwise, I'm fooged.

Any help would be greatly appreciated!
Reply With Quote
  #3  
Old 09-15-2002, 06:08 PM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you talked to your host? Maybe they can reconfigure the java server for you or something... I know less about this than you do, but hey...
Reply With Quote
  #4  
Old 09-15-2002, 08:55 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JCharlesHolt
So hopefully one of you might be able to offer a suggestion (other than just turning off cookies).
Can I ask what is wrong with just using sessions and not cookies? I know cookies are better but at least you would have a working board.

Changing the variable to $bbthreadview[$threadthreadid] won't work, as discovered because the threadid bit needs to be in brackets (the []) as it is an element of the $thread array, so in order to remove the brackets you would need to asign that element of the array to a variable beforehand and change the line.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05030 seconds
  • Memory Usage 2,193KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete