Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sw360-dev] rest api response code when moderation request is created
  • From: "Jaeger, Michael C." <michael.c.jaeger@xxxxxxxxxxx>
  • Date: Mon, 5 Oct 2020 11:13:45 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PX56sszmTjUJnIZTe+zYbox9n602wjP8NzYuASODqYk=; b=a3hLTV6YTu6Q+u3u0ppaOQSI24jgYJOWS5ZmjX35QqpC56IvwZLWo9g6brC1mAvw2W7/1j46JCLilgTT8QQeM23xXsrGiRh0EmR9njTyLJOZaYNdmF0viAqlc2HI8Jb+hmj544ob4JoR+rINYYaeeB6YXF0V6Aaavj+KFAg9q4UiC0LfUQ5Ace6ZjVc/tbeOrkqZb8Hj8NPoWIITwVaV+S45RwxvRr5etjHD3UG81I1MpQ0hTclMb9lDOflbCuxpej+2JfDG5oPbKwqOXBHtm9hQDNf6sG/lE6RbQlfFyu0XYty55MDmhwefGpk6U0QHrL/9MtHiwE0ABeB5QxDuEQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H+MO0OTqHU2mphO3IABfqnvMAKswSiXDIevCmRUuQjd5SapJjpHVhLRMQz78zt2/RNPouL0cde0sY7IGXtIIiNNuc09EVcUXwwZDy7tiwziFZpigTIxTjUwWgsaCEIgE10obYhILF5wIgDKFo3gvS8IvzsBC9imQDjLhcYMr8USiA8jNXRUUSip5M0WifWyx0y7hk0qG3gXgZaot+0IAzhTWeppbzNm+1lbqaZPr9mXw5NfqTqdPzGFQw2aWL0YcmqS0PARiHZFJxuik0TycnwI1eU1K5rAYiT7gZa3FYqwsGnAJ8lnjAycEPVSZNJAU600xFYCXdWsdOpZu7eGM3A==
  • Delivered-to: sw360-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sw360-dev>
  • List-help: <mailto:sw360-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sw360-dev>, <mailto:sw360-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sw360-dev>, <mailto:sw360-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels: MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_Enabled=true; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_ActionId=b1a5e04d-55fd-46c0-b1d7-d40598456221; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_SetDate=2020-10-05T11:13:03Z; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_SiteId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_Enabled=true; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_ContentBits=0; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_Method=Standard; MSIP_Label_a59b6cd5-d141-4a33-8bf1-0ca04484304f_Name=Restricted Default;
  • Thread-index: AQHWmwiXnYm0oWYFOUuJkBr5T9i6KQ==
  • Thread-topic: rest api response code when moderation request is created
  • User-agent: Microsoft-MacOutlook/16.41.20091302

Hello,

 

maybe a topic for today’s telco: were experiencing “a not so expected” behavior on the sw360 rest api when using antenna: Documents is there, so it is also not updated, but a moderation request is created.

 

If the user would be a clearing admin, then release and component changes would be accepted without moderation request.

 

However, if the user is a user (role), then the change of the component or release, which the user has not created, will result in a moderation request.

 

This case: returns a 500 which is kind of breaking the execution flow. Issue is created here:

 

https://github.com/eclipse/sw360/issues/1003

 

I am not sure which of the available http response codes would be better for “moderation request created”, maybe

 

* 202, accepted, but not done

* 304, not modified, but a retransmit is not required

* 409 conflict

 

My person favorite is 304 because it indicates: it is not really a fail (like 400s), but also not done (like 200s).

 

Kind regards,

  Michael

 

 


Back to the top