Ticket #2311 (new defect)

Opened 12 months ago

Last modified 3 months ago

Forced Scheduler don't erforce required or need_email

Reported by: Jiuka Owned by:
Priority: major Milestone: 0.8.+
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

comment:1 Changed 11 months ago by dustin

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

comment:2 Changed 4 months 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 3 months ago by dustin

  • Keywords users, force added; users removed
Note: See TracTickets for help on using tickets.