[Wikidata-bugs] [Maniphest] [Commented On] T244046: Consider creating a Wikibase Property type for patterns

2020-02-03 Thread abian
abian added a comment.


  A specific data/property type for regular expressions or patterns would:
  
  - ensure that the stored regular expressions or patterns are syntactically 
correct, in a similar way that quantity-type properties ensure that their 
statements are not paragraphs, something from which all implementations, tools 
and reusers would benefit;
  - introduce a specific input (interface) control in Wikibase (not 
WikibaseQualityConstraints) that could make pattern editing more friendly: 
monospaced text, warnings, colored brackets, and all the amazing features that 
the developers want to implement. :-)
  
  This does not solve the low-level security issues of each implementation 
(e.g., avoid running the regular expression "'; DROP TABLE important_things;").

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

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

To: abian
Cc: Lucas_Werkmeister_WMDE, Aklapper, abian, darthmon_wmde, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T244046: Consider creating a Wikibase Property type for patterns

2020-02-03 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  > Some technical issues … that are related to the lack of ability to manage 
regular expressions are described on T176312 
, T214378 
, T236150 
 and T240884 
.
  
  How would any of these be affected by a separate data type for regular 
expressions / patterns? The problem is the same: we still need to evaluate 
user-specified (untrusted) regular expressions safely; I don’t see what a 
separate data type would change here.

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, abian, darthmon_wmde, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs