Guest User

Untitled

a guest
May 22nd, 2018
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. <cheimes> bhavik: edewata has approved the PR and I just landed the banner fix.
  2. <bhavik> cheimes: cool thanks ...I will run my test again with the nightly
  3. <edewata> cheimes: bhavik: thanks guys!
  4. <bhavik> edewata: by when can I see this change in nightly ?
  5. * aadhikar has quit (Quit: Leaving)
  6. <edewata> bhavik: according to the timestamp it's built everyday at 2am, probably EST
  7. <bhavik> edewata: ok
  8. <edewata> bhavik: but if you need it sooner I think I can create a manual build quickly
  9. <bhavik> edewata: sure, if possible I would like to test it out.
  10. <edewata> bhavik: ok, I'll ping you when it's ready
  11. <bhavik> edewata: thanks
  12. <edewata> bhavik: it's building https://copr.fedorainfracloud.org/coprs/g/pki/10.6-nightly/build/757300/
  13. <bhavik> edewata: thanks will try it out as soon as the build is complete
  14. * aakkiang (~aakkiang@dhcp129-20.rdu.redhat.com) has joined #cs
  15. * aakkiang has quit (Read error: Connection reset by peer)
  16. * aakkiang_ (~aakkiang@dhcp129-20.rdu.redhat.com) has joined #cs
  17. * aakkiang_ is now known as aakkiang
  18. * Amyra|out is now known as Amyra
  19. * gkapoor (~gkapoor@ovpn-117-10.sin2.redhat.com) has joined #cs
  20. * xdong has quit (Ping timeout: 612 seconds)
  21. * gparente_afk is now known as gparente
  22. * aborah_ (~aborah@dhcp223-44.pnq.redhat.com) has joined #cs
  23. * mhernon (~textual@ovpn-123-93.rdu2.redhat.com) has joined #cs
  24. * dpal (~dpal@ovpn-122-50.rdu2.redhat.com) has joined #cs
  25. * aborah has quit (Ping timeout: 612 seconds)
  26. * aborah_ has quit (Quit: Leaving)
  27. * tmihinto_mtg is now known as tmihinto
  28. * prasadk (~pkulkarn@10.76.0.150) has joined #cs
  29. * KeslerS (~kstrickl@ovpn-123-87.rdu2.redhat.com) has joined #cs
  30. * jaosorior_ is now known as jaosorior
  31. * mreznik|lunch is now known as mreznik
  32. * xdong (~xdong@ovpn-123-95.rdu2.redhat.com) has joined #cs
  33. * tmihinto is now known as tmihinto_lunch
  34. * praspa|afk is now known as praspa
  35. * jreznik_ (~jreznik@10.34.245.88) has joined #cs
  36. * dberry (~dberry@ovpn-124-28.rdu2.redhat.com) has joined #cs
  37. * jreznik has quit (Ping timeout: 612 seconds)
  38. <bhavik> edewata: we got 4 more tests passing after the fix, now the negative test where we set binary text for banner is failing with 'utf-8' codec can't decode byte 0xf3 in position 1: invalid continuation byte
  39. <bhavik> edewata: https://gitlab.com/bhavikbhavsar/pki/-/jobs/69731810
  40. <edewata> cheimes: ^^
  41. * rpattath (~rpattath@ovpn-124-213.rdu2.redhat.com) has joined #cs
  42. <cheimes> bhavik: 0xf3 is not valid UTF-8 encoded payload
  43. * drieden has quit (Ping timeout: 606 seconds)
  44. <bhavik> cheimes: agree it's a negative side test were I add binary text and check for response
  45. <cheimes> \xf3 is รณ in latin-1
  46. <cheimes> it's not text
  47. <bhavik> cheimes: previously it used to show ERROR: Banner contains invalid character(s)
  48. * prasadk is now known as prasadk|afk
  49. <cheimes> bhavik: ok, then the code needs to be changed and handle the issue earlier
  50. <edewata> bhavik: is there a stack trace?
  51. <bhavik> edewata: https://pastebin.com/3mRgbZLu
  52. * tmihinto_lunch is now known as tmihinto
  53. <edewata> cheimes: do you want to fix this, or should I?
  54. <cheimes> edewata: The fix should be easy, wrap the io.open() call in a try/except UnicodeDecodeError.
  55. <cheimes> I'm in a meeting
  56. <edewata> cheimes: yeah, there are 2 places though
  57. * rpattath has quit (Ping timeout: 612 seconds)
  58. <edewata> cheimes: when you have time: https://review.gerrithub.io/#/c/dogtagpki/pki/+/412043/
  59. * rrajashe (rrajashe@10.19.40.117) has joined #cs
  60. * rrajashe has quit (Remote host closed the connection)
  61. * akahat has quit (Quit: Leaving)
  62. * Amit-Kumar has quit (Remote closed the connection)
  63. <cheimes> edewata: I think you can remove the try/except around the XML code now.
  64. <edewata> cheimes: are you sure? what if the banner contains badly formatted xml tags?
  65. * drieden (~drieden@ovpn-116-239.phx2.redhat.com) has joined #cs
  66. <edewata> cheimes: or should we just remove the whole validation with xml?
  67. <cheimes> edewata: aah, you allow random characters?
  68. <cheimes> shouldn't you quote the XML?
  69. <edewata> cheimes: banner is admin configurable text file
  70. <edewata> cheimes: they can put anything
  71. <edewata> cheimes: we're just making sure it can be sent over REST API later
  72. <cheimes> edewata: then you are right
  73. <edewata> cheimes: the XML validation was done to detect invalid chars
  74. <cheimes> edewata: I thought it's plain-text only. But if you accept any XML, then you have to keep it.
  75. <cheimes> banner text will be UTF-8 now.
  76. <edewata> cheimes: then it's probably not needed anymore, the REST client will display the banner text as is, it's not going to be parsed as xml.
  77. * prasadk|afk is now known as prasadk
  78. * rpattath (~rpattath@ovpn-124-3.rdu2.redhat.com) has joined #cs
  79. * Amyra is now known as Amyra|IDMCall
  80. <edewata> cheimes: oh btw, we do want to show the position of the invalid char if possible
  81. <edewata> cheimes: so we may want to show the exception message
  82. <cheimes> +1
Add Comment
Please, Sign In to add comment