thegooglecodearchive / allforgood

Automatically exported from code.google.com/p/allforgood
0 stars 0 forks source link

Source Code Coming Through on Search Results #549

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to All for Good site
2. Set Location = Beverly Hills, CA
3. View search results

What is the expected output? What do you see instead?
some of the source code is coming through on the search results.  See 
attached screen shot.

What version of the product are you using? On what operating system?
I am using Windows XP, IE 7.

Please provide any additional information below.

Original issue reported on code.google.com by nadia.gh...@gmail.com on 19 Nov 2009 at 5:06

Attachments:

GoogleCodeExporter commented 9 years ago
I can see it too. I'll take a look.

Original comment by cinda...@gmail.com on 20 Nov 2009 at 6:03

GoogleCodeExporter commented 9 years ago
I looked in http://google1.osuosl.org/~footprint/listings.tsv, and the 
description is 
already corrupted there:

"Franklin Canyon Park Transformation (MRCA) Beverly Hills;; CA  102 <img 
src="http://info.laworks.com/images/LAWD2007/LAWD2007FC.jpg" This project is an 
ongoing effort;; tackling...."

I'm not sure what process creates the listings file, but I'll try to find out.

Original comment by cinda...@gmail.com on 20 Nov 2009 at 8:39

GoogleCodeExporter commented 9 years ago
So, I followed the link from the listing to the original source, and see valid 
HTML 
there; the listing contains an image:

http://www.laworks.com/projects/viewProject.php?
_mode=occurrenceView&_action=load&ixActivity=646&_clearFlag=specialevent&_cle
arFlag=course&ixAffiliateRegion=&sZipcode=&bAvailable=&dtBegin=&dtEnd=

I also don't see any problems when I artificially add an image tag to a 
description 
from a sample .xml listing source, and run it through footprint_lib.

However, I do see something suspicious--when I do a code search for 
laworks.com, I 
find some test data in an xml file that has corrupted HTML data similar to what 
is 
seen in this bug (URL and then snippet containing the bad HTML pasted here):

http://www.google.com/codesearch/p?
hl=en&sa=N&cd=3&ct=rc#DZ1qu2CRHmE/test_data/handsonnetwork.xml&q=lawor
ks.com

" <Description><strong>Come help L.A. Works give Franklin Canyon Park a 
Makeover!</strong>

<img src="http://info.laworks.com/images/LAWD2007/LAWD2007FC.jpg"

L.A. Works is expanding and solidifying our partnership with the ..."

So it seems like the XML data file itself already contains the corrupted HTML. 
What 
process creates these XML files?

Original comment by cinda...@gmail.com on 20 Nov 2009 at 11:14

GoogleCodeExporter commented 9 years ago

Original comment by adam.sah on 20 Nov 2009 at 11:59

GoogleCodeExporter commented 9 years ago

Original comment by ryanlees...@gmail.com on 3 Dec 2009 at 2:54