Opened 6 years ago

Last modified 4 years ago

#2311 new defect

Forced Scheduler don't erforce required or need_email

Reported by: Jiuka Owned by:
Priority: major Milestone: 0.9.+
Version: master Keywords: users, force
Cc:

Description

ForceBuildActionResource ask Authz for the username and pass this as owner to ForceScheduler?.force

Authz.getUsernameFull returns eigther the formvalue username or "<unknown>" for unauthenticated users.

ForceScheduler thin check if owner is None then get the value from UserNameParameter which enforce the required and/or need_email.

As getUsernameFull will return u if the form was not filled in or "<unknown>" if the form input was missing, this will never happens.

Change History (4)

comment:1 Changed 6 years ago by dustin

  • Keywords users added
  • Milestone changed from undecided to 0.8.+

comment:2 Changed 6 years ago by Jeremy.Cornett

I have seen this behavior as well. I've even attempted to specify a regex patter in a StringParameter?, and the regex does not perform a validation.

username=StringParameter?(name="username", label="Username: ", required=True, size="30", regex="[A-Za-z]+.[A-Za-z]$"),

comment:3 Changed 5 years ago by dustin

  • Keywords force added

comment:4 Changed 4 years ago by dustin

  • Milestone changed from 0.8.+ to 0.9.+

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.