Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #5637

Closed (moved)
(moved)
Open
Created Apr 18, 2012 by Karsten Loesing@karsten

Ignore carriage returns when parsing descriptors

There are some (very old) server descriptors containing carriage returns in their contact line, more precisely in a full PGP key block. I'm attaching one such descriptor to this ticket.

It's unclear if carriage returns are permitted by dir-spec.txt. It does say "ArgumentChar ::= any printing ASCII character except NL.", but we know that Tor accepts non-ASCII characters in contact or platform lines, too. So, I guess the only non-permitted character is NL.

In metrics-lib, we parse descriptors using BufferedReader.readLine() which treats \n, \r, and \r\n all the same. We may have to write our own readLine() replacement that only accepts \n as line end.

This may also affect stem's descriptor parser.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking