Modify

Opened 6 years ago

Closed 5 years ago

#8970 closed defect (duplicate)

audocomplete fails to function under Trac 0.12

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

Description (last modified by Ryan J Ollos)

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')

with:

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 6 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 5 years ago by Ryan J Ollos

Status: newassigned

comment:3 Changed 5 years ago by Ryan J Ollos

Resolution: duplicate
Status: assignedclosed

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.

Modify Ticket

Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.