Skip to content
  1. Aug 25, 2023
  2. Jul 31, 2023
    • Yacine BOUHALA's avatar
      [hsbc] add owner to loans · ac959748
      Yacine BOUHALA authored and Damien Mat Jedrzejewski's avatar Damien Mat Jedrzejewski committed
      An update was introduced in hsbc accounts
       in order  to ensure that loans belong to the "Loan" class
       rather than the "Account" class.
       However, while doing so,
       we forgot to assign an owner to the loans,
       which is something we do with regular accounts.
       As a result, this has created a bug in the code.
      ac959748
  3. Jul 17, 2023
  4. Jun 09, 2023
  5. Jun 04, 2023
  6. Apr 11, 2023
  7. Feb 11, 2023
  8. Feb 10, 2023
  9. Dec 19, 2022
  10. Sep 05, 2022
  11. Aug 22, 2022
  12. Aug 12, 2022
  13. Jun 27, 2022
  14. May 23, 2022
    • Heddy's avatar
      [hsbc] fix otp url · 1f96770e
      Heddy authored and ntome's avatar ntome committed
      bad domain name for otp url
      which causes an error during SSL
      certificat verifaction
      1f96770e
  15. Apr 28, 2022
    • Heddy's avatar
      [hsbc] fix investments and history for wealth accounts · 0965c313
      Heddy authored and ntome's avatar ntome committed
      Life insurances details pages need a token in request.
      We use 2 new forms because forms are create by javascript
      with field token already filled.
      
      For PEA accounts we have to take care about 2 things:
      - leave "espace tiers" before
      - return empty list if we try to fetch investments
      for other people's accounts
      0965c313
  16. Mar 09, 2022
  17. Feb 28, 2022
  18. Jan 13, 2022
  19. Jun 30, 2021
    • Stéphane Sobucki's avatar
      [hsbc] Sturdy handle_otp by adding otp_form to states · 39fcaf86
      Stéphane Sobucki authored and hydrargyrum's avatar hydrargyrum committed
      Because relogin or ActionNeeded can happen during the handle_otp, solely
      relying on the presence of the otp config value may cause some issue. We
      might already have validated the otp once but we will run handle_otp
      once again.
      
      Also using locate_browser() when handling otp can lead to weird
      behaviour. In our case it leads to unavailable page.
      
      To fix this we don't use locate_browser() anymore, instead we store the
      otp_form_data and otp_validation_url to use them in handle_otp. We also
      use their presence in states to be sure that it's the first time we call
      handle_otp.
      
      Closes: 337@sibi
      39fcaf86
    • Stéphane Sobucki's avatar
      [hsbc] Change BASEURL and handle new BrowserUnavailable message · 7dece3e3
      Stéphane Sobucki authored and hydrargyrum's avatar hydrargyrum committed
      The old BASEURL is not reachable anymore. There was no big issue with
      the browser since it would switch to the new BASEURL if needed.
      
      Handle new message: 'service is temporarily unavailable'.
      
      Closes: 18054@sibi
      7dece3e3
  20. Jun 05, 2021
    • Stéphane Sobucki's avatar
      [hsbc] Avoid false positive error messages · b5ffe7be
      Stéphane Sobucki authored and hydrargyrum's avatar hydrargyrum committed
      commit 8087d2f6dea023946894032a8fde7c1bac6438ce added the handling of
      more error cases and a check for error messages at the `end_login()`
      step to fix `FormNotFound` errors.
      
      At this step, error messages and the message upon a succesful login are
      located under the same XPath. So, we might raise false login errors.
      
      To avoid false positives, we check whether we are logged in or not before handling
      errors.
      b5ffe7be
    • Stéphane Sobucki's avatar
      [hsbc] Handle relogin after otp validation · bd67ef24
      Stéphane Sobucki authored and hydrargyrum's avatar hydrargyrum committed
      In some scenarios, relogin are triggered. If it happens inside
      `handle_otp`, the otp value stored in config will not be cleared.
      
      The consequence is that we will try to validate the otp once again, even
      though we might not even be on the right page.
      
      To fix that we reset the otp value to its default value manually.
      bd67ef24
    • Stéphane Sobucki's avatar
      [hsbc] Handle more login errors · 74cf825f
      Stéphane Sobucki authored and hydrargyrum's avatar hydrargyrum committed
      Handle more login error messages, updated XPath for errors in
      LoginPage's `on_load()` method.
      
      Additionaly, added login errors check in `end_login()` to avoid
      FormNotFound exception due to a blocked account access.
      74cf825f
    • Christophe François's avatar
      [hsbc] Fix access to life insurance space · b3c48eca
      Christophe François authored and hydrargyrum's avatar hydrargyrum committed
      If we don't go to the account's owner's space before we try to go to the
      life insurances website, we arrive on the "useless page".
      b3c48eca
  21. May 24, 2021
  22. Apr 08, 2021
    • Christophe François's avatar
      [hsbc] Handle 404 error on form submit for invests · 3d25dcbe
      Christophe François authored and hydrargyrum's avatar hydrargyrum committed
      For some accounts, the form to go to the invests page redirects to a
      404. There is no detail available on the website for these accounts.
      3d25dcbe
    • Florent Viard's avatar
      [hsbc] Handle the fingerprint form page (lifeinsurance) · 2321f068
      Florent Viard authored and hydrargyrum's avatar hydrargyrum committed
      ... that could appear when going on some lifeinsurances accounts
      
      When we are trying to go on some lifeinsurances account pages,
      sometimes we get instead an intermediary blank page with a form.
      
      It looks like that a javascript browser fingerprint has to be done to
      fill the form and submit it.
      Otherwise, when we submit without it or a wrong value, we are redirected
      back to the home page.
      
      I'm not completely sure why it is sometimes needed, and if ever we would
      go to the right page if ever the fingerprint was correct.
      
      I guess that might be the case for empty or special state life
      insurances.
      
      Anyway, for the moment, we just properly detect that we arrived on this
      page and five up for this life insurance account.
      2321f068
    • Florent Viard's avatar
      [hsbc] Retrieve the web_space directly from the current page · 582f18fa
      Florent Viard authored and hydrargyrum's avatar hydrargyrum committed
      if we are already inside the accounts or ownerlist pages
      582f18fa
  23. Apr 04, 2021
  24. Mar 24, 2021
  25. Oct 28, 2020
  26. Sep 23, 2020
  27. Aug 26, 2020
  28. Aug 07, 2020
  29. Jun 17, 2020
    • Christophe François's avatar
      [hsbc] Catch BrowserUnavailable error while fetching invests · 5ff962ab
      Christophe François authored and hydrargyrum's avatar hydrargyrum committed
      Some wealth accounts are now available only on the linebourse space. The
      current way of fetching accounts results in an error message.
      
      The linebourse space is not accessible with the current authentication
      so for now we catch the error so the accounts can be fetched (although
      without investments details and history).
      5ff962ab
  30. May 07, 2020