<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>10509</bug_id>
          
          <creation_ts>2010-08-30 14:45:30 +0000</creation_ts>
          <short_desc>Relative redirection makes internal addresses appear to the external world</short_desc>
          <delta_ts>2010-08-30 14:47:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Web interface</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="fd">fd</assigned_to>
          
          
          <qa_contact name="fd">fd</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38208</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2010-08-30 14:45:30 +0000</bug_when>
    <thetext>The mobileOK Checker servlet redirects users to the home page when users try to check an empty URI or an empty extract. That&apos;s fine except the code uses response.sendRedirect with a relative path.

This path gets completed internally with the server host name to create an absolute redirect URI of the form:
 http://waxler.w3.org/mobileok/
 http://tahiti.w3.org/mobileok/

These addresses should never appear in users address bars. What should rather appear is:
 http://validator.w3.org/mobile/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38209</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2010-08-30 14:47:53 +0000</bug_when>
    <thetext>Redirection now uses the requested URI, trimmed down to the last &quot;/&quot; to redirect the user. This URI should always be something like http://validator.w3.org/mobile/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>