Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

rewrite_domains cuts off dynamic parts of image URLs #311

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Check out example page 
http://www.html.de/html-und-xhtml/39659-tweet-follow-button-anpassen.html#post28
8229
2. Notice that the post includes a graphic with the URL 
http://www.html.de/attachment.php?attachmentid=2066&d=1308593673
3. Enable rewrite_domains with domain sharding and the following config:
    ModPagespeedEnableFilters rewrite_domains
    ModPagespeedMapOriginDomain localhost www.html.de
    ModPagespeedMapOriginDomain localhost s10.bmedien.eu
    ModPagespeedMapOriginDomain localhost s11.bmedien.eu
    ModPagespeedShardDomain www.html.de s10.bmedien.eu,s11.bmedien.eu
4. I would expect the original pic URL to get rewritten using domain sharding. 
Sharding does happen, but the URL gets modified and the full SRC of the images 
now "//s11.bmedien.eu/attachment.php". Image can not be loaded any more.



What is the expected output? What do you see instead?

The original parameters in the SRC URL get cut off; URL of the pic is destroyed.
ORIGINAL URL
http://www.html.de/attachment.php?attachmentid=2066&d=1308593673
INCORRECTLY SHARDED URL
//s11.bmedien.eu/attachment.php
EXPECTED OUTPUT
//s11.bmedien.eu/attachment.php?attachmentid=2066&d=1308593673

What version of the product are you using (please check X-Mod-Pagespeed
header)?

0.9.17.7-716

Original issue reported on code.google.com by fxres...@gmail.com on 21 Jun 2011 at 12:20

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions