Upgrade to 0.44.1 broke our site

Ewout ter Haar ewout at usp.br
Thu Jul 25 15:28:20 BRT 2013


On Thu, Jul 25, 2013 at 3:10 PM, Bráulio Bhavamitra <braulio at eita.org.br> wrote:

> The magic was actually due to a bug in the code I submitted. I haven't
> checked for nil or preloaded with a default value. In cirandas this value is
> not nil, that's why the problem doesnt happen there.

My question remains: why did the quality control tests not catch it
before the release went out?

>
> About the escaped html, I still don't get the problem. It seems that the
> debian rails has a different behaviour than the official rails (2.3.15), the
> one used in cirandas.

I think Terceiro has some explaining to do. As I understand it, his
argument for using the debian rails and debian package management
system is so that administrators can use their debian managements
skills to mantain their sites. Well, it seems that reality is
different: twice now an apt-get upgrade broke my site: first when the
debian rails became incompatible with the debian noosfero (a few
months ago) and now because the debian noosfero (stable!) just broke
for some reason.

Am I missing something?

Ewout

>
> Regards,
> Braulio
>
> Em 24/07/2013 18:57, "Ewout ter Haar" <ewout at usp.br> escreveu:
>
>> This solved the problem on individual posts. Thanks! Can you explain
>> what is the magic?
>>
>> But the is stil the escaped HTML problem on blog listing pages:
>> http://test.stoa.usp.br/ewout/blog
>>
>> Seriously, Colivre, WTF? How can this happen? What is wrong with our
>> test instance and what is the difference between our test instances
>> and yours? What can we do to help you not releasing stable noosfero
>> versions that completely break our site? Do you need access to our
>> database, so you can test stuff with real data? It it our fault? Does
>> our test environment not reflect the recommended debian configuration?
>>
>> Also, why didn't this happen with cirandas? What did they do to not
>> break their whole site?
>>
>> Ewout
>>
>> On Wed, Jul 24, 2013 at 6:24 PM, Leandro Nunes <leandronunes at gmail.com>
>> wrote:
>> > Try this in console.
>> >
>> >>> e = Environment.last  # I have only one environment
>> >>> e.access_control_allow_origin= []
>> > => []
>> >>> e.save
>> > => true
>> >
>> > I think this is sufficient
>> >
>> > Regards
>> >
>> > On Wed, Jul 24, 2013 at 6:11 PM, Ewout ter Haar <ewout at usp.br> wrote:
>> >>
>> >> I disabled the 2 plugins in the web interface and restarted the
>> >> service. It did not solve the problem.
>> >>
>> >> I notice that for example
>> >>
>> >>
>> >> http://test.stoa.usp.br/stoa/usp/bubalinos-apresentam-rapida-recuperacao-em-exposicao-ao-sol-revela-pesquisa-da-fzea
>> >> is ok in Firefox, but gives a Noosfero error where the title bar should
>> >> be.
>> >>
>> >> I would attach a screenshot, but its 300k and I guess the list
>> >> software does'nt like it.
>> >>
>> >> Ewout
>> >>
>> >> On Wed, Jul 24, 2013 at 5:33 PM, Leandro Nunes <leandronunes at gmail.com>
>> >> wrote:
>> >> > Hello Ewout,
>> >> >
>> >> > Which plugins are active in your environment.
>> >> > There is a problem with this version and the plugins
>> >> > 'google_analytics'
>> >> > and
>> >> > 'require_auth_to_comment'
>> >> >
>> >> > Basically the problem is the inclusion of ApplicationHelper in some
>> >> > classes
>> >> > of these plugins.
>> >> >
>> >> > If you need so much of them you have to find and comment the line
>> >> > bellow
>> >> >
>> >> >      include ApplicationHelper
>> >> >
>> >> > Note that comment the code could break another part of the system.
>> >> > For
>> >> > example, I needed require_auth_to_comment plugin activated and I made
>> >> > the
>> >> > following hotspot on server:
>> >> >
>> >> > -------------------------------------------
>> >> > class RequireAuthToCommentPlugin < Noosfero::Plugin
>> >> >
>> >> >   include ActionView::Helpers::TagHelper
>> >> >   include ActionView::Helpers::FormTagHelper
>> >> > #  include ApplicationHelper
>> >> >   include FormsHelper
>> >> > -------------------------------------------
>> >> >
>> >> > I reported these problems to Rodrigo and he is working in a
>> >> > definitive
>> >> > solution.
>> >> >
>> >> > Regards
>> >> >
>> >> >
>> >> > On Wed, Jul 24, 2013 at 4:49 PM, Ewout ter Haar <ewout at usp.br> wrote:
>> >> >>
>> >> >> We upgraded our test instance from 0.43 to 0.44.1 and are left with
>> >> >> our site in an un-usable state:
>> >> >> 1. URLs that simply throw a HTTP 500:
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://test.stoa.usp.br/stoa/stoa/melhorias-de-usabilidade-e-novas-funcionalidades-para-o-stoa
>> >> >>   Processing ContentViewerController#view_page (for 143.107.128.138
>> >> >> at
>> >> >> 2013-07-24 16:43:03) [GET]
>> >> >>   Parameters: {"profile"=>"stoa", "action"=>"view_page",
>> >> >> "page"=>["stoa", "melhorias-de-usabilidade-e-novas-f\
>> >> >> uncionalidades-para-o-stoa"], "controller"=>"content_viewer"}
>> >> >>   HTTP Referer: http://test.stoa.usp.br/
>> >> >>   User Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.4
>> >> >> (KHTML,
>> >> >> like Gecko) Chrome/22.0.1229.94 Safari/\
>> >> >> 537.4
>> >> >>   Accept-Language: en-US,pt-BR;q=0.8,en;q=0.6,nl;q=0.4
>> >> >> Rendering template within layouts/application-ng
>> >> >> Rendering content_viewer/view_page
>> >> >>
>> >> >> ActionView::TemplateError (undefined method `profile' for
>> >> >> nil:NilClass) on line #37 of app/views/comment/_com\
>> >> >> ment.rhtml:
>> >> >>
>> >> >> 2. URLs that render a HTTP 500 in the middle of the page:
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://test.stoa.usp.br/stoa/chamada-da-4a-conferencia-luso-brasileira-sobre-acesso-aberto-2013
>> >> >>
>> >> >> Processing ContentViewerController#view_page (for 143.107.128.138 at
>> >> >> 2013-07-24 16:46:31) [POST]
>> >> >>   Parameters: {"profile"=>"stoa", "action"=>"view_page",
>> >> >> "page"=>["chamada-da-4a-conferencia-luso-brasileira-\
>> >> >> sobre-acesso-aberto-2013"], "controller"=>"content_viewer",
>> >> >> "toolbar"=>"true"}
>> >> >>   HTTP Referer:
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://test.stoa.usp.br/stoa/chamada-da-4a-conferencia-luso-brasileira-sobre-acesso-aberto-20\
>> >> >> 13
>> >> >>   User Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.4
>> >> >> (KHTML,
>> >> >> like Gecko) Chrome/22.0.1229.94 Safari/\
>> >> >> 537.4
>> >> >>   Accept-Language: en-US,pt-BR;q=0.8,en;q=0.6,nl;q=0.4
>> >> >>
>> >> >> NoMethodError (undefined method `include?' for nil:NilClass):
>> >> >>   app/controllers/application_controller.rb:11:in
>> >> >> `allow_cross_domain_access'
>> >> >>
>> >> >> 3. Blog listings with escaped HTML :
>> >> >> http://test.stoa.usp.br/ewout/blog
>> >> >>
>> >> >>
>> >> >> What could have happened? I notice que cirandas is on 0.44.1 as
>> >> >> well.
>> >> >> What can I do to diagnose this problem? In what way my test instance
>> >> >> is different from the test instances of colivre and the production
>> >> >> instance of cirandas?
>> >> >>
>> >> >> Ewout - Equipe Stoa
>> >> >>
>> >> >> --
>> >> >> http://social.stoa.usp.br/ewout
>> >> >> F. 30916696
>> >> >> _______________________________________________
>> >> >> Noosfero-dev mailing list
>> >> >> Noosfero-dev at listas.softwarelivre.org
>> >> >>
>> >> >> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Dois Axé!!!
>> >> >
>> >> > -----
>> >> > "Comece fazendo o que é necessário, depois o que é possível e de
>> >> > repente
>> >> > você estará fazendo o impossível."
>> >> >                                    São Francisco de Assis
>> >> > Leandro Nunes
>> >> >
>> >> > _______________________________________________
>> >> > Noosfero-dev mailing list
>> >> > Noosfero-dev at listas.softwarelivre.org
>> >> > http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> http://social.stoa.usp.br/ewout
>> >> F. 30916696
>> >> _______________________________________________
>> >> Noosfero-dev mailing list
>> >> Noosfero-dev at listas.softwarelivre.org
>> >> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev
>> >
>> >
>> >
>> >
>> > --
>> > Dois Axé!!!
>> >
>> > -----
>> > "Comece fazendo o que é necessário, depois o que é possível e de repente
>> > você estará fazendo o impossível."
>> >                                    São Francisco de Assis
>> > Leandro Nunes
>> >
>> > _______________________________________________
>> > Noosfero-dev mailing list
>> > Noosfero-dev at listas.softwarelivre.org
>> > http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev
>> >
>>
>>
>>
>> --
>> http://social.stoa.usp.br/ewout
>> F. 30916696
>> _______________________________________________
>> Noosfero-dev mailing list
>> Noosfero-dev at listas.softwarelivre.org
>> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev
>
>
> _______________________________________________
> Noosfero-dev mailing list
> Noosfero-dev at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev
>



-- 
http://social.stoa.usp.br/ewout
F. 30916696


More information about the Noosfero-dev mailing list