Ticket #371 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Events timeline has gone in last version

Reported by: business@… Owned by: business@…
Priority: major Milestone: 0.7.0
Component: Study view Version: 0.6.6.1
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description

In the study overview, the events timeline is suddenly gone... Any idea what could have caused this?

Attachments

Screen shot 2011-03-18 at 10.36.50 AM.png Download (39.0 KB) - added by work@… 3 years ago.
javascript errors

Change History

Changed 3 years ago by work@…

javascript errors

Changed 3 years ago by work@…

It appears the 'timeline' ajax page (views/study/createTimelineBandsJs.gsp) is incompatible with the newly introduced Apache virtual host directive to filter 'gscf-0.6.7-ci' from HTML sources:

# <Location />
# SetOutputFilter? proxy-html
# ProxyHTMLURLMap /gscf-0.6.7-ci/ /
# </Location>

Not sure why not...

Changed 3 years ago by work@…

The javascript creating the timeline is a dedicated view generating Javascript. However, proxy-html encapsulates this with <body><html>...</body></html> and escapes some things...

Difference from a broken js (with proxy-html) to the working js (no proxy-html):

1c1,3
< <html><body><p>/*
---
> 
> 
> /*
21c23
< 	var dateStr = &quot;2010/09/14 00:00:00&quot;;
---
> 	var dateStr = "2010/09/14 00:00:00";
42c44
< 	bandInfos[0].labeller = new Timeline.RelativeDateLabeller( &quot;en&quot;, 0, firstDate );
---
> 	bandInfos[0].labeller = new Timeline.RelativeDateLabeller( "en", 0, firstDate );
45,47c47,49
< 	  title: &quot;Profiling of promoter occupancy by PPARα in human hepatoma cells via ChIP-chip analysis&quot;,
< 	  subjects: &quot;&quot;,
< 	  className: &quot;studytitle&quot;
---
> 	  title: "Profiling of promoter occupancy by PPARα in human hepatoma cells via ChIP-chip analysis",
> 	  subjects: "",
> 	  className: "studytitle"
60c62
< 	  var event_url = '/gscf-0.6.7-ci/study/events/1261?startDate=1284415200000&amp;study=1256';
---
> 	  var event_url = '/gscf-0.6.7-ci/study/events/1261?startDate=1284415200000&study=1256';
84,86c86,88
< 		title: &quot;Group 1&quot;,
< 		className: &quot;&quot;,
< 		subjects: &quot;Subject 1, Subject 2, Subject 3&quot;
---
> 		title: "Group 1",
> 		className: "",
> 		subjects: "Subject 1, Subject 2, Subject 3"
101d102
< </p></body></html>
\ No newline at end of file

Changed 3 years ago by work@…

  • status changed from new to assigned
  • owner changed from work@… to business@…

resolved in r1645

Changed 3 years ago by work@…

Changed the output header to text/javascript in r1645, confirmed the fix to be working with virtual host configuration using proxy-html:

jeroen@mbp ~/Desktop $ diff 1256 1256.working 
3d2
< 
jeroen@mbp ~/Desktop $

resolved on ci...

Changed 3 years ago by work@…

resolved setting the content type in the view:

<% response.contentType = "text/javascript" %>

Changed 3 years ago by work@…

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.