• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • APLAWS
  • Patches

Fix language negotiation issue

Brought to you by: lbcfrancois, mentaldaze, pboy
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Tickets ▾
    • Patches
    • Bugs
    • Support Requests
    • Feature Requests
  • News
  • Discussion
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • v1.0.1

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#43 Fix language negotiation issue

open
nobody
None
5
2005-12-01
2005-12-01
Alun 'Will' Williams
No

If a URL is submitted without a language extension
(e.g. *.jsp instead of *.en), and the client
(user-agent) doesn't supply any language preferences in
the request, a 404 error is returned (unless the
content item is being cached by the server).

This has implications for our site(s), where the *.jsp
extension has been carried over (in content) as part of
a recent migration. If we use a link checker which
doesn't specify a language extension we get a number of
'false' broken links.

This patch takes the existing languages configuration
parameter (com.arsdigita.cms.languages), and uses it as
the basis for server language preferences. Thus if no
suitable language match is found in the URL extension
or client request, then the server preferences are
considered.

The supplied patch file is made against the 1.0.2
release (r982).

Alun

Note: There is still a related issue outstanding, in
that it appears that no language negotiation takes
place if a content item is cached by the server. In
this case, presumably, whichever language item is held
- is served up without negotiation.

Discussion

  • Alun 'Will' Williams

    Alun 'Will' Williams - 2005-12-01
     
    language.diff
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    225 Broadway Suite 1600
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2025 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.