An error occurred fetching the project authors.
  1. 12 Jul, 2017 6 commits
  2. 05 Jul, 2017 2 commits
  3. 20 Apr, 2017 3 commits
  4. 23 Dec, 2016 2 commits
  5. 09 Aug, 2016 1 commit
  6. 26 Apr, 2016 1 commit
  7. 21 Apr, 2016 1 commit
  8. 17 Mar, 2016 1 commit
  9. 25 Feb, 2016 1 commit
  10. 14 Jan, 2016 1 commit
    • Romain Courteaud's avatar
      ERP5Site: stop displaying Basic auth popup in the browser · 419abc03
      Romain Courteaud authored
      When a user is already authenticated (by any method) and an Unauthorized error occurs, ZPublisher returns the WWW-Authenticate HTTP header which leads to a blocking popup authentication window in user browser.
      
      This patch just desactivate the HTTP header. Except this, error is handled as previously.
      419abc03
  11. 12 Jan, 2016 1 commit
  12. 08 Oct, 2015 1 commit
    • Julien Muchembled's avatar
      Fix memory leak and DoS in ERP5Site.log() and Base.log() · be2bf77b
      Julien Muchembled authored
      ERP5Site.log and Base.log are wrappers to the 'log' function from
      Product.ERP5Type.Log, but parameters were forwarded in a wrong way
      when called with a single argument:
      
        self.log(message) # Base method
      
      This was equivalent to:
      
        log(message, '')  # function from Product.ERP5Type.Log
      
      And the whole message was later part of subsystem in:
      
        logger = logging.getLogger(subsystem)
      
      But because loggers are never freed, it is important that 'subsystem' does not
      vary too often, to avoid a memory leak.
      
      The fix is to simply forwarding parameters with catchall arguments, instead of
      duplicating the signature from Product.ERP5Type.Log.
      
      Of course, it remains important to call these methods correctly, otherwise
      memory leaks can happen again. For this reason, catchall arguments also
      prevents ERP5Site.log and Base.log to be called by ZPublisher.
      Reported-by: Kirill Smelkov's avatarKirill Smelkov <kirr@nexedi.com>
      Reviewed-by: Kirill Smelkov's avatarKirill Smelkov <kirr@nexedi.com>
      be2bf77b
  13. 19 Aug, 2015 1 commit
  14. 17 Aug, 2015 1 commit
    • Vincent Pelletier's avatar
      ERP5Site: Improve getDefaultModule*. · 0d9c6e7c
      Vincent Pelletier authored
      Add support for visibility checking.
      Use portal_type accessors, not properties.
      Also, original implementation of getDefaultModuleId would get the object,
      then its id. getDefaultModuleValue using it, it was getting the object,
      then its id, then the object again...
      Also, follow naming convention: getters returning documents are named
      getXxxValue, not getXxx.
      0d9c6e7c
  15. 27 Mar, 2015 1 commit
    • Julien Muchembled's avatar
      CMFActivity: automatic migration of queues and removal of button to recreate tables · 3d644bde
      Julien Muchembled authored
      The action to recreate activity tables while preserving existing messages
      was unsafe for 2 reasons:
      - if any error happened, messages could be lost
      - it relied on Message.reactivate
      
      Which this patch, any instance created after commit d881edd1 (Aug 2010) will
      upgrade successfully. For older instances, make sure you have no activity left.
      
      For cases where 'ALTER TABLE' would not work, a better way to implement repair
      functionality would be:
      - one action to backup all messages in ZODB
      - and another to restore them
      And maybe a security so that during the backup-clear-restore sequence,
      activities can't be created nor processed.
      
      If any column is added in the future, it would still be possible to write code
      that fills them by inspecting messages.
      3d644bde
  16. 17 Feb, 2015 1 commit
    • Julien Muchembled's avatar
      Reimplement MRP for new simulation · a39bcc3e
      Julien Muchembled authored
      MRP was broken and unused for a long time, since legacy simulation was dropped.
      This commits resuscitates MRP, at least:
      - expanding, for both operation and sourcing
      - building of production reports & production packing lists
      
      Business Processes replaces Supply Chains.
      trade_phase replaces industrial_phase
      industrial_phase is now used to variate partially produced resources.
      a39bcc3e
  17. 30 Jan, 2015 1 commit
  18. 16 Oct, 2014 1 commit
  19. 04 Sep, 2014 1 commit
  20. 28 Apr, 2014 1 commit
  21. 19 Mar, 2014 1 commit
  22. 19 Feb, 2014 1 commit
  23. 31 Oct, 2013 1 commit
    • Arnaud Fontaine's avatar
      Portal Type as Classes, ZODB Property Sheets: Ensure that they are reset on · 2e16e170
      Arnaud Fontaine authored
      other ZEO clients even if ZODB Components are not.
      
      Steps to reproduce:
      
        1/ On zope1, view and edit a person to make sure class is fully loaded.
        2/ On zope2 add an interaction in person_interaction_workflow and add a script raising an exception.
        3/ Edit a person on zope2. The exception is raised, confirming that the interaction is called.
      
        When editing a person on zope1, the exception is not raised.
      2e16e170
  24. 10 Sep, 2013 2 commits
  25. 09 Sep, 2013 1 commit
  26. 09 Jul, 2013 1 commit
  27. 05 Jun, 2013 1 commit
    • Arnaud Fontaine's avatar
      Avoid regeneration of classes when starting a node within a cluster with already started nodes. · 20362ede
      Arnaud Fontaine authored
      When starting a node, ERP5Site.__of__ calls ComponentTool.reset(), which was
      never synchronised so it returned True (without generating a new cookie at its
      level) and causing synchronizeDynamicModules to be called with
      force=True. This generated a new cookie and leading to dynamic classes being
      meaninglessly regenerated on all nodes.
      
      Instead, modify ComponentTool.reset() behavior so it *always* reset Portal
      Type classes when Components are reset (as it should have always been as the
      class inheritance may have been modified) and force regeneration of Portal
      Type classes in this method if reset is True.
      Signed-off-by: Vincent Pelletier's avatarVincent Pelletier <vincent@nexedi.com>
      20362ede
  28. 02 May, 2013 1 commit
  29. 15 Apr, 2013 2 commits