Git Product home page Git Product logo

mautic-users-batch-repo's Introduction

mautic-users-batch-repo

To reproduce a bug regarding consistent behavior in the batch edit API for users.

How to test

  1. Clone this repo
  2. Make sure you update $this->apiUrl in index.php, line 30, with your Mautic URL.
  3. Run php index.php. Try multiple times. This was my output after running multiple times:
dennis@mautic-users-batch-repo-web:/var/www/html$ php index.php
Successfully created user with ID 215 and username API_9STdqrKb
Successfully created user with ID 216 and username API_t3BkHRX1
Successfully created user with ID 217 and username API_UyzMXT6L
Successfully updated 3 users
Successfully deleted 3 users

dennis@mautic-users-batch-repo-web:/var/www/html$ php index.php
Successfully created user with ID 218 and username API_W5smdejC
Successfully created user with ID 219 and username API_xkgQYW2F
Successfully created user with ID 220 and username API_4plzg5Xs
Error in edit action - 400: username: Username is already in use. Please choose another., email: Email is already in use. Please choose another.
Error in edit action - 400: username: Username is already in use. Please choose another., email: Email is already in use. Please choose another.
Error in edit action - 400: username: Username is already in use. Please choose another., email: Email is already in use. Please choose another.

dennis@mautic-users-batch-repo-web:/var/www/html$ php index.php
Successfully created user with ID 239 and username API_7SEjbTzZ
Successfully created user with ID 240 and username API_slbf40QD
Successfully created user with ID 241 and username API_y2zULNGV
Successfully updated 3 users
Successfully deleted 3 users

dennis@mautic-users-batch-repo-web:/var/www/html$ php index.php
Successfully created user with ID 242 and username API_Xena0Jw7
Successfully created user with ID 243 and username API_Vwv8AIyZ
Successfully created user with ID 244 and username API_2VSnFgsp
Error in edit action - 400: username: Username is already in use. Please choose another., email: Email is already in use. Please choose another.
Error in edit action - 400: username: Username is already in use. Please choose another., email: Email is already in use. Please choose another.

mautic-users-batch-repo's People

Contributors

dennisameling avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.