magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Web API call to /V1/orders changes Order Increment ID

Open Sunil-Nethues opened this issue 8 years ago • 23 comments

Preconditions

  1. Magento 2.

Steps to reproduce

  1. Create an Order.
  2. Note the Order Increment ID
  3. Update order via REST API: POST http://ce.dev.local/rest/V1/orders Accept: */* Cache-Control: no-cache Content-Type: application/json Authorization: Bearer <API key> { "entity": { "entityId": "<Order ID>", "state": "complete", "status": "complete" } }

Expected result

  1. Order Increment ID remains the same.

Actual result

  1. Order Increment ID is changed.

Sunil-Nethues avatar Aug 28 '18 07:08 Sunil-Nethues

Hi @Sunil-Nethues. Thank you for your report. To help us process this issue please make sure that you provided the following information:

  • [ ] Summary of the issue
  • [ ] Information on your environment
  • [ ] Steps to reproduce
  • [ ] Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me {$VERSION} instance

where {$VERSION} is version tags (starting from 2.2.0+) or develop branches (2.2-develop +). For more details, please, review the Magento Contributor Assistant documentation.

@Sunil-Nethues do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • [ ] yes
  • [ ] no

magento-engcom-team avatar Aug 28 '18 07:08 magento-engcom-team

@magento-engcom-team give me 2.2.0 instance

Sunil-Nethues avatar Aug 28 '18 08:08 Sunil-Nethues

Hi @Sunil-Nethues. Thank you for your request. I'm working on Magento 2.2.0 instance for you

magento-engcom-team avatar Aug 28 '18 08:08 magento-engcom-team

Hi @Sunil-Nethues, here is your Magento instance. Admin access: https://i-17828-2-2-0.engcom.dev.magento.com/admin Login: admin Password: 123123q Instance will be terminated in up to 3 hours.

magento-engcom-team avatar Aug 28 '18 08:08 magento-engcom-team

thanks @magento-engcom-team can i please request for sample data to reduce time replicating the issue ?

Sunil-Nethues avatar Aug 28 '18 08:08 Sunil-Nethues

@Sunil-Nethues, thank you for your report. We were not able to reproduce this issue by following the steps you provided. Please provide more detailed steps to reproduce or try to reproduce this issue on a clean installation or latest release.

ghost avatar Aug 28 '18 09:08 ghost

hi @magento-engcom-team i asked for the installation to have sample data installed, i am doing it manually give me some time to replicate it and send you a message.

Sunil-Nethues avatar Aug 28 '18 10:08 Sunil-Nethues

hi @magento-engcom-team we are succeeded in trying to replicate the issue on the fresh instance provided by you as well.

  1. I have done following, completed an order using Check/money order
  2. created a user with API access
  3. Run the shipment creation script from a thrdparty server in this case URL was : https://www.skinoracle.com/shiptest.php?oid=1 {you can use this url too by changing the order id}

I have attached the content of shiptest file with this comment.

shiptest.zip

After above url was run the shipment is created but the order increment is changes from 000000001 to 000000002

Please advise further.

Sunil-Nethues avatar Aug 28 '18 10:08 Sunil-Nethues

just an additional information if we pass the increment id while changing the status to complete in above file last call, the order increment id does not changes.

Sunil-Nethues avatar Aug 28 '18 11:08 Sunil-Nethues

hi @magento-engcom-team any information on this ticket please.

Regards Sunil

Sunil-Nethues avatar Aug 30 '18 13:08 Sunil-Nethues

hi @magento-engcom-team any information on this ticket please.

Regards Sunil

sunil-gcet avatar Sep 05 '18 13:09 sunil-gcet

@Sunil-Nethues, thank you for your report. We've acknowledged the issue and added to our backlog.

ghost avatar Sep 14 '18 14:09 ghost

@engcom-backlog-pb Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-95038, MAGETWO-95039 were created

magento-engcom-team avatar Sep 14 '18 14:09 magento-engcom-team

thanks @magento-engcom-team for acknowledging the issue, looking forward for the fix.

For more information if we send the order increment id with the call above the order increment id is not changed, i thought this might help.

sunil-gcet avatar Sep 17 '18 07:09 sunil-gcet

Hi @milindsingh. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if your want to validate it one more time, please, go though the following instruction:

  • [x] 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento-engcom-team give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • [ ] 3. Verify that the issue is reproducible on 2.2-develop branch.

    Details- Add the comment @magento-engcom-team give me 2.2-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.2-develop branch, please add the label Reproduced on 2.2.x

  • [ ] 4. If the issue is not relevant or is not reproducible any more, feel free to close it.

magento-engcom-team avatar Dec 25 '18 06:12 magento-engcom-team

@magento-engcom-team give me 2.3-develop instance

milindsingh avatar Dec 28 '18 06:12 milindsingh

Hi @milindsingh. Thank you for your request. I'm working on Magento 2.3-develop instance for you

magento-engcom-team avatar Dec 28 '18 06:12 magento-engcom-team

Hi @milindsingh, here is your Magento instance. Admin access: https://i-17828-2-3-develop.instances.magento-community.engineering/admin Login: admin Password: 123123q Instance will be terminated in up to 3 hours.

magento-engcom-team avatar Dec 28 '18 06:12 magento-engcom-team

@magento-engcom-team @engcom-backlog-pb I am not able to produce the issue regarding increment id change, but I found a new one in Magento 2.3-develop instance.

  • Create shipment with API with following data, and I see a broken Magento Admin UI for Shipment View.
{
  "entity": {
    "increment_id": "000000002",
    "order_id": 1,
     "items": [
        {
          "sku": "Test",
          "qty": 1
        }
      ],
    "tracks": [
      {
        "order_id": 1,
        "qty": 1,
        "track_number": "123",
        "title": "Test",
        "carrier_code": "dhl"
      }
    ]  
  }
}

https i 17828 2 3 develop instances magento community engineering admin admin order_shipment view shipment_id 1

screenshot from 2018-12-28 13-19-42

milindsingh avatar Dec 28 '18 07:12 milindsingh

#dmcdindia1

milindsingh avatar May 04 '19 05:05 milindsingh