Edgewall Software
Modify

Opened 12 years ago

#791 new defect

bitten-slave: problem with AccountManagerPlugin

Reported by: A.Visser@… Owned by:
Priority: major Milestone: 0.6.2
Component: Build slave Version: 0.6
Keywords: Cc:
Operating System: Linux

Description

bitten-slave parses the output from Acount Manager? with the following regexp:

FORM_TOKEN_RE = re.compile('__FORM_TOKEN\" value=\"(.+)\"')

The order of the elements of the line containg FORM_TOKEN seems to be random on my system, e.g.

<value="8677a280e856107c273be316" input name="__FORM_TOKEN" type="hidden" /></div>

For this reason I either get the message "... does not support form authentication" or HTTP error 400 (for <input name="FORM_TOKEN" value="8677a280e856107c273be316" type="hidden")

Changing the expression to

('__FORM_TOKEN[^>]*value=\"([^"]+)\"|value=\"([^"]+)[^>]*__FORM_TOKEN')

seems to solve the problem, but there must exist a better regexp :-)

Regards, Anke

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.