Manuel created this task.
Manuel added projects: Wikidata Analytics, Wikidata, Wikibase REST API.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  **User story:** 
  As a Product Manager of Wikidata, 
  I want to be able to identify what clients are using the REST API on Wikidata
  in order to better understand the usage.
  
  **Problem:**
  Many users don't follow our User-Agent_policy 
<https://meta.wikimedia.org/wiki/User-Agent_policy>. The likely reason is that 
users don't change the default user agent strings (e.g. 
"python-requests/2.28.1") to include all the information that is required by 
the policy.
  
  **Solution:**
  We could check if the specified user agent is following the required format. 
If not the request results in a 400 response (error code: malformed-user-agent, 
message: Request must include User-Agent header in the specified format, see 
https://meta.wikimedia.org/wiki/User-Agent_policy.)
  
  **User-Agent policy:**
  
  > User-Agent: CoolBot/0.0 (https://example.org/coolbot/; [email protected]) 
generic-library/0.0
  
  The required generic format is `<client name>/<version> (<contact 
information>) <library/framework name>/<version> [<library name>/<version> 
...]`. Parts that are not applicable can be omitted.
  
  **Notes:**
  
  - We have already prohibited empty user agent strings (see T318151 
<https://phabricator.wikimedia.org/T318151>). \o/
  
  **Acceptance criteria:**
  
  [ ] If the user agent policy is not followed, the request results in the 
specified 400 response.
  
  **Open questions:**
  
  - Alternatively, we could also think of applying throttling in case the 
criteria are not met.
  
  **Community communication:**

TASK DETAIL
  https://phabricator.wikimedia.org/T329044

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Manuel
Cc: Aklapper, Lydia_Pintscher, Manuel, Astuthiodit_1, karapayneWMDE, Invadibot, 
maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, 
Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to