Menu

#2045 French characters replaced with HTML encoding on dashlet

2.7.7
closed
None
User Interface
Medium
3.0.0
defect
2022-07-26
2022-03-10
No

Hello,

I noticed an issue that could be resolved in the next patch. When adding a Header with statistic dashlet, Group by values with French characters appear to be displaying HTML encoding instead (screenshot attached).

After investigating the iTop base code, we noticed that there is a function to encode HTML special characters, which is used twice before output. If we were to remove one of them, it displays the characters correctly.

2 Attachments

Discussion

  • Kirushoth Kirubaharan

    The function is called HtmlEntities which is defined in /application/utils.inc.php. It is then called in /application/displayblock.class.inc.php on line 1048 on a string that was already encoded.

     
  • Pierre Goiffon

    Pierre Goiffon - 2022-03-22

    Hello,

    We had some bugs like this during the beta.

    I see there are no problems on the demo :
    https://demo.combodo.com/simple/pages/UI.php
    Login admin-fr / admin
    Welcome screen
    "Gestion des demandes" dashlet

    Are you really running iTop 3.0.0 final version on not one of its beta ?

     
    • Kirushoth Kirubaharan

      Hello,

      Yes, we are running iTop 3.0.0 final version, which was downloaded from source forge. https://sourceforge.net/projects/itop/files/itop/3.0.0/

      Were you able to look into the function is called HtmlEntities, defined in /application/utils.inc.php? It is then called in /application/displayblock.class.inc.php on line 1048 on a string that was already encoded. We noticed that this function will encode HTML special characters, which is used twice before output. If we were to remove one of them, it displays the characters correctly.

       
  • Pierre Goiffon

    Pierre Goiffon - 2022-03-22
    • status: new --> more-info-needed
    • assigned_to: Guillaume Lajarige --> Pierre Goiffon
     
  • Pierre Goiffon

    Pierre Goiffon - 2022-03-23

    Many thanks, I can now reproduce easily !
    I've created a bug in Combodo's internal DB : N°4991 N°4538

     

    Last edit: Pierre Goiffon 2022-03-24
  • Pierre Goiffon

    Pierre Goiffon - 2022-03-23
    • status: more-info-needed --> accepted
     
  • Kirushoth Kirubaharan

    I noticed this issue was not fixed in 3.0.1. Could you provide a date for when we can expect it to be resolved?

     
    • Hipska

      Hipska - 2022-05-17

      Milestone is "unassigned" and status is not "resolved" yet. So there is no indication it would have been fixed in 3.0.1.

       
  • Pierre Goiffon

    Pierre Goiffon - 2022-05-17

    Hello,
    The bug is been working on currently. We will update this ticket when we will publish the version including this fix.
    In the meantime you can check regularly the iTop repo log : you will find the internal ref "N°4538" on each corresponding commit log message.

     
  • Benjamin DALSASS

    • status: accepted --> closed
    • Milestone: Unassigned --> 2.7.7
     
  • Benjamin DALSASS

    Fix iTop 2.7.7 will be delivered next week

     
  • Kirushoth Kirubaharan

    iTop version 2.7.7?

    We currently have v3.0.1 installed

     
  • Guillaume Lajarige

    Fixes from iTop 2.7.7 will be integrated in iTop 3.0.2 which will roll out early autumn.

    Cheers,
    Guillaume

     
    👍
    1
  • Vincent @ Combodo

    It will also be included in 3.0.2 planned for September...

     

Log in to post a comment.