Constructor of a SearchResultModel called twice

View: New views
9 Messages — Rating Filter:   Alert me  

Constructor of a SearchResultModel called twice

by Matteo Pelucco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi all,
extending SearchResultModel with a custom search result model (which
uses also an hibernate supported db) I've found a curious thing.
While debugging, this code

***
testHibernateWrite();
***

is called twice!
That piece of code is inside the TemplateModel constructor:

******************************
public class CustomSearchResultModel extends SearchResultModel{

   private Logger log =
LoggerFactory.getLogger(CustomSearchResultModel.class);
       
   public CustomSearchResultModel(Content content, RenderableDefinition
definition, RenderingModel parent) {
     super(content, definition, parent);
     log.debug("constructor");
               
     testHibernateWrite();
               
}

public void testHibernateWrite(){
...
}
******************************


Does anybody explain that?
Does it depend on Eclipse debugger tool?
That class is used as modelClass for a template...

Thanks for any help or suggestion!
Matteo


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: Constructor of a SearchResultModel called twice

by Jan Haderka-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Perhaps you have two instances of the search paragraph on your page?
I just double checked with the original model and it is created only
once when accessing the search result page
http://localhost:8080/magnoliaAuthor/demo-project/service/search-result.html?queryStr=hey

Jan

On Wed, 2009-11-11 at 09:36 +0100, Matteo Pelucco wrote:

> Hi all,
> extending SearchResultModel with a custom search result model (which
> uses also an hibernate supported db) I've found a curious thing.
> While debugging, this code
>
> ***
> testHibernateWrite();
> ***
>
> is called twice!
> That piece of code is inside the TemplateModel constructor:
>
> ******************************
> public class CustomSearchResultModel extends SearchResultModel{
>
>    private Logger log =
> LoggerFactory.getLogger(CustomSearchResultModel.class);
>
>    public CustomSearchResultModel(Content content, RenderableDefinition
> definition, RenderingModel parent) {
>      super(content, definition, parent);
>      log.debug("constructor");
>
>      testHibernateWrite();
>
> }
>
> public void testHibernateWrite(){
> ...
> }
> ******************************
>
>
> Does anybody explain that?
> Does it depend on Eclipse debugger tool?
> That class is used as modelClass for a template...
>
> Thanks for any help or suggestion!
> Matteo
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: Constructor of a SearchResultModel called twice

by Matteo Pelucco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Jan Haderka ha scritto:
> Perhaps you have two instances of the search paragraph on your page?
> I just double checked with the original model and it is created only
> once when accessing the search result page
> http://localhost:8080/magnoliaAuthor/demo-project/service/search-result.html?queryStr=hey
>
> Jan

No, double cheked me too..
The strange thing is that Eclipse debugger has around 30 daemon thread
on, like

...
Daemon Thread [owfe::expool.shced] (Running)
Daemon Thread [http-8080-1] (Running)
Daemon Thread [http-8080-2] (Running)
Daemon Thread [http-8080-...] (Running)
...

and during a page request on localhost (Tomcat 6 - as Dynamic Web
Project) 2 daemons handle it, for example

1. F5 on Firefox
2. Eclipse debugger stop the request handling
Daemon Thread [http-8080-8] (Suspended)...
3. F8 on Eclipse, request goes on and a new record is present on DB
4. Eclipse debugger stop the request handling
Daemon Thread [http-8080-11] (Suspended)...
5. F8 on Eclipse, request goes on and a new record is present on DB
6. End.

It is caused by 2 Firefox request, noticed enabling Firebug Network Console.
Why?

On the demo.magnolia-cms.... only one request start with one F5 hit...
even on other sites we did...

Tomcat is starting with these options:

-Xmx512m -XX:PermSize=128M -XX:MaxPermSize=256M start

-Dcatalina.base="C:\dev\workspaces\project\.metadata\.plugins\org.eclipse.wst.server.core\tmp0"
-Dcatalina.home="C:\dev\apache-tomcat\apache-tomcat-6.0.20"
-Dwtp.deploy="C:\dev\workspaces\project\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps"
-Djava.endorsed.dirs="C:\dev\apache-tomcat\apache-tomcat-6.0.20\endorsed"

I really don't know..
M.


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: Re: Constructor of a SearchResultModel called twice

by Jan Haderka-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Last time I've seen similar thing before it was caused by the form being
submitted twice (once via javascript invoked by onClick() of the submit
button and once by the normal form submit). If you get 2 distinct
requests, then I would look for source in the place from where the
submit comes ... or maybe you render the page twice (not sure how you
would do that :D ).


On Wed, 2009-11-11 at 11:00 +0100, Matteo Pelucco wrote:

> Jan Haderka ha scritto:
> > Perhaps you have two instances of the search paragraph on your page?
> > I just double checked with the original model and it is created only
> > once when accessing the search result page
> > http://localhost:8080/magnoliaAuthor/demo-project/service/search-result.html?queryStr=hey
> >
> > Jan
>
> No, double cheked me too..
> The strange thing is that Eclipse debugger has around 30 daemon thread
> on, like
>
> ...
> Daemon Thread [owfe::expool.shced] (Running)
> Daemon Thread [http-8080-1] (Running)
> Daemon Thread [http-8080-2] (Running)
> Daemon Thread [http-8080-...] (Running)
> ...
>
> and during a page request on localhost (Tomcat 6 - as Dynamic Web
> Project) 2 daemons handle it, for example
>
> 1. F5 on Firefox
> 2. Eclipse debugger stop the request handling
> Daemon Thread [http-8080-8] (Suspended)...
> 3. F8 on Eclipse, request goes on and a new record is present on DB
> 4. Eclipse debugger stop the request handling
> Daemon Thread [http-8080-11] (Suspended)...
> 5. F8 on Eclipse, request goes on and a new record is present on DB
> 6. End.
>
> It is caused by 2 Firefox request, noticed enabling Firebug Network Console.
> Why?
>
> On the demo.magnolia-cms.... only one request start with one F5 hit...
> even on other sites we did...
>
> Tomcat is starting with these options:
>
> -Xmx512m -XX:PermSize=128M -XX:MaxPermSize=256M start
>
> -Dcatalina.base="C:\dev\workspaces\project\.metadata\.plugins\org.eclipse.wst.server.core\tmp0"
> -Dcatalina.home="C:\dev\apache-tomcat\apache-tomcat-6.0.20"
> -Dwtp.deploy="C:\dev\workspaces\project\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps"
> -Djava.endorsed.dirs="C:\dev\apache-tomcat\apache-tomcat-6.0.20\endorsed"
>
> I really don't know..
> M.
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: Constructor of a SearchResultModel called twice

by Matteo Pelucco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jan Haderka ha scritto:
> Last time I've seen similar thing before it was caused by the form being
> submitted twice (once via javascript invoked by onClick() of the submit
> button and once by the normal form submit). If you get 2 distinct
> requests, then I would look for source in the place from where the
> submit comes ... or maybe you render the page twice (not sure how you
> would do that :D ).

I don't know.
These are the steps I made:

1) Duplicated stkArticle
2) Renamed as projectSearchResult
3) Duplicated paragraph stkSearchResult (in feature catalog)
4) Renamed as projectSearchResult
5) Changed paragraph modelClass to <package>.ProjectSearchResultModel
(the one you see in my original message
6) Instantiated a new page and assigned projectSearchResult tpl
7) Instantiated a new paragraph in mainArea of the page
8) called the page with ?queryStr=myText parameter at the end

9) Got 2 request!

I've replicated this also on demo.magnolia-cms.com, doing the following
steps:

1) create a new "untitled" page
2) calling it (so using POP theme..)

The second request seems to happen onDomReady event (jQuery / DOM
related..). Maybe a bug on STK POP Theme?

Just to be complete:

- a screenshot
http://img21.imageshack.us/img21/6459/screenshot119f.jpg

- a Live HTTP Header log
(attached)

HTH, Matteo

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------

http://safebrowsing.clients.google.com/safebrowsing/downloads?client=navclient-auto-ffox&appver=3.0.15&pver=2.2&wrkey=AKEgNisXOAJKep5rneUPO57yM8BstGGrERUvCBhHbACGvWfge95Vx_CGSmCpTrHFJpbrIF92jTrCe3olCP4la38X0UDyy536ig==

POST /safebrowsing/downloads?client=navclient-auto-ffox&appver=3.0.15&pver=2.2&wrkey=AKEgNisXOAJKep5rneUPO57yM8BstGGrERUvCBhHbACGvWfge95Vx_CGSmCpTrHFJpbrIF92jTrCe3olCP4la38X0UDyy536ig== HTTP/1.1
Host: safebrowsing.clients.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Length: 102
Content-Type: text/plain
Cookie: PREF=ID=55cbdd6e5380ba24:U=1db5062e131b3e84:TM=1230629507:LM=1255957257:GM=1:S=zqMxAysLlbF1Ovj_; NID=28=R7MY80q1dNAGrF4_LCz6S1WxjCoYXCLt2uKFwVranoaJ43z4pMW9eo8oYa5opQbcUBgDNcMz1ocOxlbZTcH3JwYwi8jkp7AwGEy-YbF-J0JBBm2Zek9zPPq1Tlruu3fQ; rememberme=true; SID=DQAAAIIAAADpN7_D4vtMvmOl2xmLmXFgZlwaZpNDjeOZz1-cLG3ZtRSChxueLevQAT3FCFCRc1iWkrusBphG2Ehtv86K_BfAuk5bp7rKg2M802_L7wjHN3F0A8SGCd-NYgOmNC9sWMQnJeWUKmlZ8CoeatsG-wLBeKKdx4vhdmX4WeBKkxF8GlPdiiOZLoieoYiBRizKios; HSID=AXqxricI6kyvItCXm
goog-malware-shavar;a:13731-15872:s:14687-16715:mac
goog-phish-shavar;a:54833-74574:s:41222-50687:mac

HTTP/1.x 200 OK
Content-Type: application/vnd.google.safebrowsing-update
Date: Wed, 11 Nov 2009 12:22:33 GMT
Server: Chunked Update Server
Content-Length: 203
X-XSS-Protection: 0
----------------------------------------------------------
http://safebrowsing-cache.google.com/safebrowsing/rd/goog-phish-shavar_a_74571-74575.74571-74575.:

GET /safebrowsing/rd/goog-phish-shavar_a_74571-74575.74571-74575.: HTTP/1.1
Host: safebrowsing-cache.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: PREF=ID=55cbdd6e5380ba24:U=1db5062e131b3e84:TM=1230629507:LM=1255957257:GM=1:S=zqMxAysLlbF1Ovj_; NID=28=R7MY80q1dNAGrF4_LCz6S1WxjCoYXCLt2uKFwVranoaJ43z4pMW9eo8oYa5opQbcUBgDNcMz1ocOxlbZTcH3JwYwi8jkp7AwGEy-YbF-J0JBBm2Zek9zPPq1Tlruu3fQ; rememberme=true; SID=DQAAAIIAAADpN7_D4vtMvmOl2xmLmXFgZlwaZpNDjeOZz1-cLG3ZtRSChxueLevQAT3FCFCRc1iWkrusBphG2Ehtv86K_BfAuk5bp7rKg2M802_L7wjHN3F0A8SGCd-NYgOmNC9sWMQnJeWUKmlZ8CoeatsG-wLBeKKdx4vhdmX4WeBKkxF8GlPdiiOZLoieoYiBRizKios; HSID=AXqxricI6kyvItCXm

HTTP/1.x 200 OK
Content-Type: application/vnd.google.safebrowsing-chunk
Date: Wed, 11 Nov 2009 12:17:29 GMT
Server: Chunked Update Server
Content-Length: 423
Age: 304
X-XSS-Protection: 0
Cache-Control: public,max-age=21600
----------------------------------------------------------
http://demo.magnolia-cms.com/untitled.html

GET /untitled.html HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 1941
Connection: close
Content-Type: text/html;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/small.css

GET /stk-resources/default/resources/templating-kit/themes/pop/css/small.css HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/css,*/*;q=0.1
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 2462
Connection: close
Content-Type: text/css;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/wide.css

GET /stk-resources/default/resources/templating-kit/themes/pop/css/wide.css HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/css,*/*;q=0.1
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 835
Connection: close
Content-Type: text/css;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/print.css

GET /stk-resources/default/resources/templating-kit/themes/pop/css/print.css HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/css,*/*;q=0.1
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 812
Connection: close
Content-Type: text/css;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/js/all.js

GET /stk-resources/default/resources/templating-kit/js/all.js HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: */*
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 81766
Connection: close
Content-Type: application/x-javascript;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css

GET /stk-resources/default/resources/templating-kit/themes/pop/css/styles.css HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/css,*/*;q=0.1
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 17549
Connection: close
Content-Type: text/css;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/js/init-behaviour.js

GET /stk-resources/default/resources/templating-kit/themes/pop/js/init-behaviour.js HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: */*
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 2079
Connection: close
Content-Type: application/x-javascript;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/untitled.html

GET /untitled.html HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 1941
Connection: close
Content-Type: text/html;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/submit.png

GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/submit.png HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Disposition: attachment; filename=submit.png
Content-Length: 209
Connection: close
Content-Type: image/png;charset=UTF-8
X-Pad: avoid browser bug
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/branding.png

GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/branding.png HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Disposition: attachment; filename=branding.png
Content-Length: 319
Connection: close
Content-Type: image/png;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global-line.png

GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global-line.png HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Disposition: attachment; filename=nav-global-line.png
Content-Length: 124
Connection: close
Content-Type: image/png;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global.png

GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global.png HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Disposition: attachment; filename=nav-global.png
Content-Length: 928
Connection: close
Content-Type: image/png;charset=UTF-8
----------------------------------------------------------

Re: Constructor of a SearchResultModel called twice

by Matteo Pelucco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jan Haderka ha scritto:
> Last time I've seen similar thing before it was caused by the form being
> submitted twice (once via javascript invoked by onClick() of the submit
> button and once by the normal form submit). If you get 2 distinct
> requests, then I would look for source in the place from where the
> submit comes ... or maybe you render the page twice (not sure how you
> would do that :D ).

I don't know.
These are the steps I made:

1) Duplicated stkArticle
2) Renamed as projectSearchResult
3) Duplicated paragraph stkSearchResult (in feature catalog)
4) Renamed as projectSearchResult
5) Changed paragraph modelClass to <package>.ProjectSearchResultModel
(the one you see in my original message
6) Instantiated a new page and assigned projectSearchResult tpl
7) Instantiated a new paragraph in mainArea of the page
8) called the page with ?queryStr=myText parameter at the end

9) Got 2 request!

I've replicated this also on demo.magnolia-cms.com, doing the following
steps:

1) create a new "untitled" page
2) calling it (so using POP theme..)

The second request seems to happen onDomReady event (jQuery / DOM
related..). Maybe a bug on STK POP Theme?

Just to be complete:

- a screenshot
http://img21.imageshack.us/img21/6459/screenshot119f.jpg

- a Live HTTP Header log
(attached)

HTH, Matteo


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------

http://safebrowsing.clients.google.com/safebrowsing/downloads?client=navclient-auto-ffox&appver=3.0.15&pver=2.2&wrkey=AKEgNisXOAJKep5rneUPO57yM8BstGGrERUvCBhHbACGvWfge95Vx_CGSmCpTrHFJpbrIF92jTrCe3olCP4la38X0UDyy536ig==

POST /safebrowsing/downloads?client=navclient-auto-ffox&appver=3.0.15&pver=2.2&wrkey=AKEgNisXOAJKep5rneUPO57yM8BstGGrERUvCBhHbACGvWfge95Vx_CGSmCpTrHFJpbrIF92jTrCe3olCP4la38X0UDyy536ig== HTTP/1.1
Host: safebrowsing.clients.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Length: 102
Content-Type: text/plain
Cookie: PREF=ID=55cbdd6e5380ba24:U=1db5062e131b3e84:TM=1230629507:LM=1255957257:GM=1:S=zqMxAysLlbF1Ovj_; NID=28=R7MY80q1dNAGrF4_LCz6S1WxjCoYXCLt2uKFwVranoaJ43z4pMW9eo8oYa5opQbcUBgDNcMz1ocOxlbZTcH3JwYwi8jkp7AwGEy-YbF-J0JBBm2Zek9zPPq1Tlruu3fQ; rememberme=true; SID=DQAAAIIAAADpN7_D4vtMvmOl2xmLmXFgZlwaZpNDjeOZz1-cLG3ZtRSChxueLevQAT3FCFCRc1iWkrusBphG2Ehtv86K_BfAuk5bp7rKg2M802_L7wjHN3F0A8SGCd-NYgOmNC9sWMQnJeWUKmlZ8CoeatsG-wLBeKKdx4vhdmX4WeBKkxF8GlPdiiOZLoieoYiBRizKios; HSID=AXqxricI6kyvItCXm
goog-malware-shavar;a:13731-15872:s:14687-16715:mac
goog-phish-shavar;a:54833-74574:s:41222-50687:mac

HTTP/1.x 200 OK
Content-Type: application/vnd.google.safebrowsing-update
Date: Wed, 11 Nov 2009 12:22:33 GMT
Server: Chunked Update Server
Content-Length: 203
X-XSS-Protection: 0
----------------------------------------------------------
http://safebrowsing-cache.google.com/safebrowsing/rd/goog-phish-shavar_a_74571-74575.74571-74575.:

GET /safebrowsing/rd/goog-phish-shavar_a_74571-74575.74571-74575.: HTTP/1.1
Host: safebrowsing-cache.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: PREF=ID=55cbdd6e5380ba24:U=1db5062e131b3e84:TM=1230629507:LM=1255957257:GM=1:S=zqMxAysLlbF1Ovj_; NID=28=R7MY80q1dNAGrF4_LCz6S1WxjCoYXCLt2uKFwVranoaJ43z4pMW9eo8oYa5opQbcUBgDNcMz1ocOxlbZTcH3JwYwi8jkp7AwGEy-YbF-J0JBBm2Zek9zPPq1Tlruu3fQ; rememberme=true; SID=DQAAAIIAAADpN7_D4vtMvmOl2xmLmXFgZlwaZpNDjeOZz1-cLG3ZtRSChxueLevQAT3FCFCRc1iWkrusBphG2Ehtv86K_BfAuk5bp7rKg2M802_L7wjHN3F0A8SGCd-NYgOmNC9sWMQnJeWUKmlZ8CoeatsG-wLBeKKdx4vhdmX4WeBKkxF8GlPdiiOZLoieoYiBRizKios; HSID=AXqxricI6kyvItCXm

HTTP/1.x 200 OK
Content-Type: application/vnd.google.safebrowsing-chunk
Date: Wed, 11 Nov 2009 12:17:29 GMT
Server: Chunked Update Server
Content-Length: 423
Age: 304
X-XSS-Protection: 0
Cache-Control: public,max-age=21600
----------------------------------------------------------
http://demo.magnolia-cms.com/untitled.html

GET /untitled.html HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 1941
Connection: close
Content-Type: text/html;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/small.css

GET /stk-resources/default/resources/templating-kit/themes/pop/css/small.css HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/css,*/*;q=0.1
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 2462
Connection: close
Content-Type: text/css;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/wide.css

GET /stk-resources/default/resources/templating-kit/themes/pop/css/wide.css HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/css,*/*;q=0.1
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 835
Connection: close
Content-Type: text/css;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/print.css

GET /stk-resources/default/resources/templating-kit/themes/pop/css/print.css HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/css,*/*;q=0.1
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 812
Connection: close
Content-Type: text/css;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/js/all.js

GET /stk-resources/default/resources/templating-kit/js/all.js HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: */*
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 81766
Connection: close
Content-Type: application/x-javascript;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css

GET /stk-resources/default/resources/templating-kit/themes/pop/css/styles.css HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/css,*/*;q=0.1
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 17549
Connection: close
Content-Type: text/css;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/js/init-behaviour.js

GET /stk-resources/default/resources/templating-kit/themes/pop/js/init-behaviour.js HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: */*
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 2079
Connection: close
Content-Type: application/x-javascript;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/untitled.html

GET /untitled.html HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/untitled.html
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 1941
Connection: close
Content-Type: text/html;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/submit.png

GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/submit.png HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Disposition: attachment; filename=submit.png
Content-Length: 209
Connection: close
Content-Type: image/png;charset=UTF-8
X-Pad: avoid browser bug
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/branding.png

GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/branding.png HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Disposition: attachment; filename=branding.png
Content-Length: 319
Connection: close
Content-Type: image/png;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global-line.png

GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global-line.png HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Disposition: attachment; filename=nav-global-line.png
Content-Length: 124
Connection: close
Content-Type: image/png;charset=UTF-8
----------------------------------------------------------
http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global.png

GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global.png HTTP/1.1
Host: demo.magnolia-cms.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113

HTTP/1.x 200 OK
Date: Wed, 11 Nov 2009 14:11:32 GMT
Server: Apache/2.2.3 (Red Hat)
X-Magnolia-Registration: Registered
Content-Disposition: attachment; filename=nav-global.png
Content-Length: 928
Connection: close
Content-Type: image/png;charset=UTF-8
----------------------------------------------------------

Re: Re: Constructor of a SearchResultModel called twice

by Jan Haderka-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Congratulations, you have found a new issue. Logged as
http://jira.magnolia-cms.com/browse/MGNLSTK-518
... the workaround for the moment is to make sure you have logo image
defined on the page.
Cheers,
Jan


On Wed, 2009-11-11 at 13:36 +0100, Matteo Pelucco wrote:

> Jan Haderka ha scritto:
> > Last time I've seen similar thing before it was caused by the form being
> > submitted twice (once via javascript invoked by onClick() of the submit
> > button and once by the normal form submit). If you get 2 distinct
> > requests, then I would look for source in the place from where the
> > submit comes ... or maybe you render the page twice (not sure how you
> > would do that :D ).
>
> I don't know.
> These are the steps I made:
>
> 1) Duplicated stkArticle
> 2) Renamed as projectSearchResult
> 3) Duplicated paragraph stkSearchResult (in feature catalog)
> 4) Renamed as projectSearchResult
> 5) Changed paragraph modelClass to <package>.ProjectSearchResultModel
> (the one you see in my original message
> 6) Instantiated a new page and assigned projectSearchResult tpl
> 7) Instantiated a new paragraph in mainArea of the page
> 8) called the page with ?queryStr=myText parameter at the end
>
> 9) Got 2 request!
>
> I've replicated this also on demo.magnolia-cms.com, doing the following
> steps:
>
> 1) create a new "untitled" page
> 2) calling it (so using POP theme..)
>
> The second request seems to happen onDomReady event (jQuery / DOM
> related..). Maybe a bug on STK POP Theme?
>
> Just to be complete:
>
> - a screenshot
> http://img21.imageshack.us/img21/6459/screenshot119f.jpg
>
> - a Live HTTP Header log
> (attached)
>
> HTH, Matteo
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------
> plain text document attachment (lhh.log)
> http://safebrowsing.clients.google.com/safebrowsing/downloads?client=navclient-auto-ffox&appver=3.0.15&pver=2.2&wrkey=AKEgNisXOAJKep5rneUPO57yM8BstGGrERUvCBhHbACGvWfge95Vx_CGSmCpTrHFJpbrIF92jTrCe3olCP4la38X0UDyy536ig==
>
> POST /safebrowsing/downloads?client=navclient-auto-ffox&appver=3.0.15&pver=2.2&wrkey=AKEgNisXOAJKep5rneUPO57yM8BstGGrERUvCBhHbACGvWfge95Vx_CGSmCpTrHFJpbrIF92jTrCe3olCP4la38X0UDyy536ig== HTTP/1.1
> Host: safebrowsing.clients.google.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Content-Length: 102
> Content-Type: text/plain
> Cookie: PREF=ID=55cbdd6e5380ba24:U=1db5062e131b3e84:TM=1230629507:LM=1255957257:GM=1:S=zqMxAysLlbF1Ovj_; NID=28=R7MY80q1dNAGrF4_LCz6S1WxjCoYXCLt2uKFwVranoaJ43z4pMW9eo8oYa5opQbcUBgDNcMz1ocOxlbZTcH3JwYwi8jkp7AwGEy-YbF-J0JBBm2Zek9zPPq1Tlruu3fQ; rememberme=true; SID=DQAAAIIAAADpN7_D4vtMvmOl2xmLmXFgZlwaZpNDjeOZz1-cLG3ZtRSChxueLevQAT3FCFCRc1iWkrusBphG2Ehtv86K_BfAuk5bp7rKg2M802_L7wjHN3F0A8SGCd-NYgOmNC9sWMQnJeWUKmlZ8CoeatsG-wLBeKKdx4vhdmX4WeBKkxF8GlPdiiOZLoieoYiBRizKios; HSID=AXqxricI6kyvItCXm
> goog-malware-shavar;a:13731-15872:s:14687-16715:mac
> goog-phish-shavar;a:54833-74574:s:41222-50687:mac
>
> HTTP/1.x 200 OK
> Content-Type: application/vnd.google.safebrowsing-update
> Date: Wed, 11 Nov 2009 12:22:33 GMT
> Server: Chunked Update Server
> Content-Length: 203
> X-XSS-Protection: 0
> ----------------------------------------------------------
> http://safebrowsing-cache.google.com/safebrowsing/rd/goog-phish-shavar_a_74571-74575.74571-74575.:
>
> GET /safebrowsing/rd/goog-phish-shavar_a_74571-74575.74571-74575.: HTTP/1.1
> Host: safebrowsing-cache.google.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Cookie: PREF=ID=55cbdd6e5380ba24:U=1db5062e131b3e84:TM=1230629507:LM=1255957257:GM=1:S=zqMxAysLlbF1Ovj_; NID=28=R7MY80q1dNAGrF4_LCz6S1WxjCoYXCLt2uKFwVranoaJ43z4pMW9eo8oYa5opQbcUBgDNcMz1ocOxlbZTcH3JwYwi8jkp7AwGEy-YbF-J0JBBm2Zek9zPPq1Tlruu3fQ; rememberme=true; SID=DQAAAIIAAADpN7_D4vtMvmOl2xmLmXFgZlwaZpNDjeOZz1-cLG3ZtRSChxueLevQAT3FCFCRc1iWkrusBphG2Ehtv86K_BfAuk5bp7rKg2M802_L7wjHN3F0A8SGCd-NYgOmNC9sWMQnJeWUKmlZ8CoeatsG-wLBeKKdx4vhdmX4WeBKkxF8GlPdiiOZLoieoYiBRizKios; HSID=AXqxricI6kyvItCXm
>
> HTTP/1.x 200 OK
> Content-Type: application/vnd.google.safebrowsing-chunk
> Date: Wed, 11 Nov 2009 12:17:29 GMT
> Server: Chunked Update Server
> Content-Length: 423
> Age: 304
> X-XSS-Protection: 0
> Cache-Control: public,max-age=21600
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/untitled.html
>
> GET /untitled.html HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Encoding: gzip
> Vary: Accept-Encoding
> Content-Length: 1941
> Connection: close
> Content-Type: text/html;charset=UTF-8
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/small.css
>
> GET /stk-resources/default/resources/templating-kit/themes/pop/css/small.css HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: text/css,*/*;q=0.1
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/untitled.html
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Encoding: gzip
> Vary: Accept-Encoding
> Content-Length: 2462
> Connection: close
> Content-Type: text/css;charset=UTF-8
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/wide.css
>
> GET /stk-resources/default/resources/templating-kit/themes/pop/css/wide.css HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: text/css,*/*;q=0.1
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/untitled.html
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Encoding: gzip
> Vary: Accept-Encoding
> Content-Length: 835
> Connection: close
> Content-Type: text/css;charset=UTF-8
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/print.css
>
> GET /stk-resources/default/resources/templating-kit/themes/pop/css/print.css HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: text/css,*/*;q=0.1
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/untitled.html
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Encoding: gzip
> Vary: Accept-Encoding
> Content-Length: 812
> Connection: close
> Content-Type: text/css;charset=UTF-8
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/js/all.js
>
> GET /stk-resources/default/resources/templating-kit/js/all.js HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: */*
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/untitled.html
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Encoding: gzip
> Vary: Accept-Encoding
> Content-Length: 81766
> Connection: close
> Content-Type: application/x-javascript;charset=UTF-8
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
>
> GET /stk-resources/default/resources/templating-kit/themes/pop/css/styles.css HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: text/css,*/*;q=0.1
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/untitled.html
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Encoding: gzip
> Vary: Accept-Encoding
> Content-Length: 17549
> Connection: close
> Content-Type: text/css;charset=UTF-8
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/js/init-behaviour.js
>
> GET /stk-resources/default/resources/templating-kit/themes/pop/js/init-behaviour.js HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: */*
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/untitled.html
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Encoding: gzip
> Vary: Accept-Encoding
> Content-Length: 2079
> Connection: close
> Content-Type: application/x-javascript;charset=UTF-8
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/untitled.html
>
> GET /untitled.html HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: image/png,image/*;q=0.8,*/*;q=0.5
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/untitled.html
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Encoding: gzip
> Vary: Accept-Encoding
> Content-Length: 1941
> Connection: close
> Content-Type: text/html;charset=UTF-8
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/submit.png
>
> GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/submit.png HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: image/png,image/*;q=0.8,*/*;q=0.5
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Disposition: attachment; filename=submit.png
> Content-Length: 209
> Connection: close
> Content-Type: image/png;charset=UTF-8
> X-Pad: avoid browser bug
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/branding.png
>
> GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/branding.png HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: image/png,image/*;q=0.8,*/*;q=0.5
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Disposition: attachment; filename=branding.png
> Content-Length: 319
> Connection: close
> Content-Type: image/png;charset=UTF-8
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global-line.png
>
> GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global-line.png HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: image/png,image/*;q=0.8,*/*;q=0.5
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Disposition: attachment; filename=nav-global-line.png
> Content-Length: 124
> Connection: close
> Content-Type: image/png;charset=UTF-8
> ----------------------------------------------------------
> http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global.png
>
> GET /stk-resources/default/resources/templating-kit/themes/pop/img/bgs/nav-global.png HTTP/1.1
> Host: demo.magnolia-cms.com
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
> Accept: image/png,image/*;q=0.8,*/*;q=0.5
> Accept-Language: it,it-it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://demo.magnolia-cms.com/stk-resources/default/resources/templating-kit/themes/pop/css/styles.css
> Cookie: __utma=138021676.244077835.1255966092.1257492309.1257867543.7; __utmz=138021676.1257867543.7.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=magnolia; __qca=P0-280801196-1256567260158; savedStyleTitle=Aqua; JSESSIONID=A670C64DB6681F0AA4A0BD16C7CF3113
>
> HTTP/1.x 200 OK
> Date: Wed, 11 Nov 2009 14:11:32 GMT
> Server: Apache/2.2.3 (Red Hat)
> X-Magnolia-Registration: Registered
> Content-Disposition: attachment; filename=nav-global.png
> Content-Length: 928
> Connection: close
> Content-Type: image/png;charset=UTF-8
> ----------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: Constructor of a SearchResultModel called twice

by Matteo Pelucco :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Jan Haderka ha scritto:
> Congratulations, you have found a new issue. Logged as
> http://jira.magnolia-cms.com/browse/MGNLSTK-518
> ... the workaround for the moment is to make sure you have logo image
> defined on the page.
> Cheers,
> Jan

So, what have I earned?
:-)

Nice to hear that was a bug...


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: Re: Constructor of a SearchResultModel called twice

by Jan Haderka-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, 2009-11-11 at 16:56 +0100, Matteo Pelucco wrote:

> Jan Haderka ha scritto:
> > Congratulations, you have found a new issue. Logged as
> > http://jira.magnolia-cms.com/browse/MGNLSTK-518
> > ... the workaround for the moment is to make sure you have logo image
> > defined on the page.
> > Cheers,
> > Jan
>
> So, what have I earned?
> :-)

Umm, nothing i guess since you will earn the fix ... once it is done.

But here's the deal - submit a patch for the issue and you can have a
free beer next time you show up in Basel. How about that? :D

>
> Nice to hear that was a bug...
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------