Project

General

Profile

Actions

action #11050

closed

Creating API keys with expiration produce user unfriendly error message

Added by oholecek about 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
-
Start date:
2016-03-02
Due date:
% Done:

0%

Estimated time:

Description

observation

Beginner user wants to create API key with set expiration. There is no help specifying in what format expiration date should be entered so she tries 1 (as 1day). Following error is then displayed:

Error adding the API key: Date must be in format (?^a:^\d{4}-\d{2}-\d{2}(?: \d{2}:\d{2}(?::\d{2})?)?$)

This is technically correct, but hard to understand for casual user. Furthermore it would be handy to be able to enter expiration day in days (in the meaning for how long the key is valid).

steps to reproduce

  • try to create API key with currently invalid date like 1

problem

N/A

suggestion

Display help message with text similar to: 'Wrong date format. Example 2016-03-02' or better implement some smart expiration date computation since it seems currently one has to use 4digits year, 2digits month and so on.

workaround

N/A

Actions #1

Updated by okurz about 7 years ago

  • Status changed from New to Resolved
  • Assignee set to coolo

commit 7e5180d
Author: Stephan Kulow coolo@suse.de
Date: Tue Jul 5 19:50:04 2016 +0200

Give the user better hints on what we expect for the expiry date

fixing https://github.com/os-autoinst/openQA/issues/770
Actions

Also available in: Atom PDF