Opened 3 years ago

Closed 2 years ago

#8970 closed defect (duplicate)

audocomplete fails to function under Trac 0.12

Reported by: rudy@… Owned by: rjollos
Priority: normal Component: AutocompleteUsersPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)

the plugin currently fails to function under 0.12, if you place a line just above

req.send('\n'.join(users).encode('utf-8'), 'text/plain')


req.send_header('Content-Length', len('\n'.join(users).encode('utf-8')))

it will be functional again.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by rjollos

  • Description modified (diff)

comment:2 Changed 2 years ago by rjollos

  • Status changed from new to assigned

comment:3 Changed 2 years ago by rjollos

  • Resolution set to duplicate
  • Status changed from assigned to closed

The send_header method only needs to be called when calling the write method directly. In AutocompleteUsers, we are calling send, which calls send_header before write in both:

Further investigation reveals that the issue with calling write rather than send was already fixed in #6339 / [7293].

Please reopen if you continue to have trouble using the latest version of the trunk code.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.