Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gajim gajim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 221
    • Issues 221
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • gajimgajim
  • gajimgajim
  • Issues
  • #10010

Validating URLs that contain long username:password@ parts results in '(Invalid URL)' when too long

Please first check if another issue has been opened for your problem

Versions

  • OS: Linux / OpenBSD
  • Gajim version: 1.1.3
  • GTK version: 3.24.14
  • Python-nbxmpp version: 0.6.10

Steps to reproduce the problem

  1. Select URL "http://etwas-mit-bindestrich:und-password@undvielzulangemundunverstaendlichemhostnamevielliecht.onion"
  2. Paste it into a chat window
  3. Example output: '‎C-Keen‎: http://etwas-mit-bindestrich:und-password@undvielzulangemundunverstaendlichemhostnamevielliecht.onion (Invalid URL)'

Expected behavior

The URL should not be marked as Invalid.

Actual behavior

The code in File "/usr/local/lib/python3.7/encodings/idna.py", line 73, in ToASCII checks the domain name part and also checks the username:password@ bit. That's incorrect and results in a too long token.

Assignee
Assign to
Time tracking