Tolerance_time plugin breaking comments on 0.47

Rodrigo Souto rodrigo at colivre.coop.br
Fri Apr 25 10:03:10 BRT 2014


Hey Braulio,

Is this happening with every content or just with a specific content?
I tried to reproduce it on alpha and on my local machine but couldn't do
it. Seems like for some reason the ToleranceTimePlugin::Publication
creation is using some already used target, which, theoretically, would
be impossible to happen because it creates a new Publication for each
comment or content in the moment of their creation only. Can you verify
if there is more than one comment on your instance with the id 277091
already created? Or if there really is another Publication with this
target?

Braulio escreveu isso ai:
> ---------- Forwarded message ----------
> From: Erro Blogoosfero <blogoosfero.erro at eita.org.br>
> Date: 2014-04-24 18:20 GMT-03:00
> Subject: Fwd: [Noosfero ERROR] comment#create (ActiveRecord::RecordInvalid)
> "A validação falhou: Target já está em uso"
> To: brauliobo at gmail.com
> 
> 
> 
> 
> 
> -------- Mensagem original --------  Assunto: [Noosfero ERROR]
> comment#create (ActiveRecord::RecordInvalid) "A validação falhou: Target já
> está em uso"  Data: Thu, 24 Apr 2014 16:57:32 -0300  De:
> noreply at blogoosfero.cc  Para: blogoosfero.erro at eita.org.br
> 
> A ActiveRecord::RecordInvalid occurred in comment#create:
> 
>   A validação falhou: Target já está em uso
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/validations.rb:1101:in
> `save_without_dirty!'
> 
> -------------------------------
> Request:
> -------------------------------
> 
>   * URL       :
> http://blogoosfero.cc/profile/pos-graduacao-fpa/comment/create/277091
>   * IP address: 200.209.72.1
>   * Parameters: {"confirm"=>"true", "id"=>"277091",
> "comment"=>{"title"=>"Salve!!!!", "reply_of_id"=>"", "body"=>"Meu nome
> é Janaína Lúcia Feijó, nascida no Rio Grande do Sul, e criada no Rio
> de Janeiro. Sou mãe da Debora e do Josué.   Iniciei minha educação
> formal em 1979, momento no qual quis ser professora. Este desejo
> colocou-me em movimento e atenta ás interações e possibilidades com o
> outro, demarcando diferenças e semelhanças e dando novos sentidos/
> significados tanto aos saberes críticos, quanto aos anseios e sonhos.
> Minha caminhada relativa à formação profissional, primeiramente como
> professora de ballet e de piano conjuntamente com a realização de ser
> mãe.  Atualmente Pedagoga/Orientadora, aliando neste percurso os
> ideais, as conquistas e as militâncias.\r\nCompreendo a Educação
> Social como um dos fatores de transformação do ser humano, reiterando
> a importância da participação democrática como princípio basilar de
> meu trabalho,
>  projetan
>  do ações que possam funcionar como instrumentos de sensibilização
> pública e de promoção de direitos. Minhas experiências formativas, as
> quais relacionadas à educação preventiva, a segurança dos direitos e a
> ética em Percursos Sociais Formativos foram aprofundados, em especial,
> com minha atuação em Políticas Públicas para Crianças, adolescentes e
> jovens, também  com atuação como Conselheira Tutelar no Município de
> Gravataí e hoje atuando no MDA.\r\nPara a construção da minha
> identidade profissional, como educadora social e gestora, este Curso
> se torna essencial, pois procuro construir minha formação, transitando
> nas seguintes áreas do conhecimento: Educação, Direitos Humanos e
> Segurança Pública com cidadania, dando ênfase a Gestão e Inclusão
> Social.\r\nUm grande Salve a Equipe FPA e aos colegas de
> curso!!!!\r\n"}, "controller"=>"comment",
> "profile"=>"pos-graduacao-fpa", "action"=>"create", "view"=>""}
>   * Rails root: /home/noosfero/noosfero
> 
> 
> -------------------------------
> Backtrace:
> -------------------------------
> 
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/validations.rb:1101:in
> `save_without_dirty!'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/dirty.rb:87:in
> `save_without_transactions!'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:200:in
> `save!'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in
> `transaction'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:182:in
> `transaction'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:200:in
> `save!'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:208:in
> `rollback_active_record_state!'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:200:in
> `save!'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/validations.rb:1070:in
> `create!'
>   [RAILS_ROOT]/config/plugins/tolerance_time/lib/ext/comment.rb:5
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/callbacks.rb:182:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/callbacks.rb:182:in
> `evaluate_method'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/callbacks.rb:166:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/callbacks.rb:93:in
> `run'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/callbacks.rb:92:in
> `each'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/callbacks.rb:92:in
> `send'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/callbacks.rb:92:in
> `run'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/callbacks.rb:276:in
> `run_callbacks'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/callbacks.rb:344:in
> `callback'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/callbacks.rb:267:in
> `create'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/base.rb:2933:in
> `create_or_update_without_callbacks'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/callbacks.rb:250:in
> `create_or_update'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/base.rb:2583:in
> `save_without_validation'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/validations.rb:1089:in
> `save_without_dirty'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/dirty.rb:79:in
> `save_without_transactions'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:229:in
> `send'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:229:in
> `with_transaction_returning_status'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in
> `transaction'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:182:in
> `transaction'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:228:in
> `with_transaction_returning_status'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:196:in
> `save'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:208:in
> `rollback_active_record_state!'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/transactions.rb:196:in
> `save'
>   [RAILS_ROOT]/app/controllers/public/comment_controller.rb:74:in `create'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/base.rb:1333:in
> `send'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/base.rb:1333:in
> `perform_action_without_filters'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/filters.rb:617:in
> `call_filters'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/filters.rb:638:in
> `run_before_filters'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/filters.rb:206:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/filters.rb:206:in
> `around_proc'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/callbacks.rb:182:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/callbacks.rb:182:in
> `evaluate_method'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/filters.rb:184:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/filters.rb:635:in
> `run_before_filters'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/filters.rb:615:in
> `call_filters'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/filters.rb:610:in
> `perform_action_without_benchmark'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in
> `perform_action_without_rescue'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in
> `ms'
>   /home/noosfero/.rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/benchmark.rb:308:in
> `realtime'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/core_ext/benchmark.rb:17:in
> `ms'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/benchmarking.rb:68:in
> `perform_action_without_rescue'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/rescue.rb:160:in
> `perform_action_without_flash'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/flash.rb:151:in
> `perform_action'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/base.rb:532:in
> `send'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/base.rb:532:in
> `process_without_filters'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/filters.rb:606:in
> `process'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/base.rb:391:in
> `process'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/base.rb:386:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/routing/route_set.rb:438:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:87:in
> `dispatch'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:121:in
> `_call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:130:in
> `build_middleware_stack'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/sass-3.3.4/lib/sass/plugin/rack.rb:54:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/sass-3.3.4/lib/sass/plugin/rack.rb:54:in
> `call'
>   [RAILS_ROOT]/vendor/plugins/noosfero_caching/init.rb:39:in `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/string_coercion.rb:25:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/rack-1.1.6/lib/rack/head.rb:9:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/rack-1.1.6/lib/rack/methodoverride.rb:24:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/params_parser.rb:15:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/session/abstract_store.rb:177:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:29:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
> `cache'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:9:in
> `cache'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/query_cache.rb:28:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/activesupport-2.3.15/lib/active_support/cache/strategy/local_cache.rb:25:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/failsafe.rb:26:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/rack-1.1.6/lib/rack/lock.rb:11:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/rack-1.1.6/lib/rack/lock.rb:11:in
> `synchronize'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/rack-1.1.6/lib/rack/lock.rb:11:in
> `call'
>   /home/noosfero/.rvm/gems/ree-1.8.7-2012.02 at noosfero/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:106:in
> `call'
>   /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:74:in
> `process_request'
>   /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:141:in
> `accept_and_process_next_request'
>   /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:109:in
> `main_loop'
>   /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in
> `start_threads'
>   /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:442:in
> `initialize'
>   /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:442
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> "Lute pela sua ideologia. Seja um com sua ideologia. Viva pela sua
> ideologia. Morra por sua ideologia" P.R. Sarkar
> 
> EITA - Educação, Informação e Tecnologias para Autogestão
> http://cirandas.net/brauliobo
> http://eita.org.br
> 
> "Paramapurusha é meu pai e Parama Prakriti é minha mãe. O universo é meu
> lar e todos nós somos cidadãos deste cosmo. Este universo é a imaginação da
> Mente Macrocósmica, e todas as entidades estão sendo criadas, preservadas e
> destruídas nas fases de extroversão e introversão do fluxo imaginativo
> cósmico. No âmbito pessoal, quando uma pessoa imagina algo em sua mente,
> naquele momento, essa pessoa é a única proprietária daquilo que ela
> imagina, e ninguém mais. Quando um ser humano criado mentalmente caminha
> por um milharal também imaginado, a pessoa imaginada não é a propriedade
> desse milharal, pois ele pertence ao indivíduo que o está imaginando. Este
> universo foi criado na imaginação de Brahma, a Entidade Suprema, por isso
> a propriedade deste universo é de Brahma, e não dos microcosmos que também
> foram criados pela imaginação de Brahma. Nenhuma propriedade deste mundo,
> mutável ou imutável, pertence a um indivíduo em particular; tudo é o
> patrimônio comum de todos."
> Restante do texto em
> http://cirandas.net/brauliobo/blog/a-problematica-de-hoje-em-dia

> _______________________________________________
> Noosfero-dev mailing list
> Noosfero-dev at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev


-- 
Rodrigo Souto <rodrigo at colivre.coop.br> :: 55 71 8131-7714
Colivre - Cooperativa de Tecnologias Livres
http://www.colivre.coop.br/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20140425/edf3eea6/attachment-0001.pgp>


More information about the Noosfero-dev mailing list