-
Type:
New Feature
-
Status:
To Do
-
Priority:
High
-
Resolution:
Unresolved
-
Affects Version/s:
None
-
-
-
Company:
All Clients/Multiple Clients
-
-
Sprint:
DMS - Gap Fall & Win Sprint 3, DMS - Gap Fall & Win Sprint 4, Spring-2020 - Sprint 3, Spring-2020 - Sprint 4, Spring-2020 - Sprint 5, Spring-2020 - Sprint 6
"Activate and Deactivate company" section and about API response codes. We need to differentiate when a company exists vs invalid payload content. Currently, both cases return 400 code which is not compliant with HTTP standards
{"report":{"apdex":1,"isInitial":true,"journeyId":"5e83fc28-86a7-40e5-b004-062a9c63cfa4","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":755.0999999046326,"redirectCount":0,"resourceLoadedEnd":365.7999997138977,"resourceLoadedStart":163.5,"resourceTiming":[{"duration":9,"initiatorType":"link","name":"https://jira.workterra.net/s/3003653444a1e1a85555cab7dcfb3a21-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/css/_super/batch.css","startTime":163.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":172.5,"responseStart":0,"secureConnectionStart":0},{"duration":21.59999990463257,"initiatorType":"link","name":"https://jira.workterra.net/s/dd6a0911920485696ac20493290df627-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/3abe50d469404b639745df44b51476b6/_/download/contextbatch/css/jira.browse.project,jira.view.issue,project.issue.navigator,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&richediton=true","startTime":164.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":185.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":21.59999990463257,"initiatorType":"link","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/8.5.0/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.css","startTime":164.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":185.89999961853027,"responseStart":0,"secureConnectionStart":0},{"duration":21.40000009536743,"initiatorType":"link","name":"https://jira.workterra.net/s/bd548f27bbf8f278bd83b60dd3284ed8-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:global-static-adgs/jira.webresources:global-static-adgs.css","startTime":164.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":186,"responseStart":0,"secureConnectionStart":0},{"duration":21.40000009536743,"initiatorType":"link","name":"https://jira.workterra.net/s/70725731a158a7140f19ddbd4201ba27-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:global-static/jira.webresources:global-static.css","startTime":164.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":186.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":147.39999961853027,"initiatorType":"script","name":"https://jira.workterra.net/s/f2623af22c15df767ec6ff268ae0b8bd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":165,"connectEnd":165,"connectStart":165,"domainLookupEnd":165,"domainLookupStart":165,"fetchStart":165,"redirectEnd":0,"redirectStart":0,"requestStart":187.69999980926514,"responseEnd":312.3999996185303,"responseStart":212.69999980926514,"secureConnectionStart":165},{"duration":200,"initiatorType":"script","name":"https://jira.workterra.net/s/6ce676f2a5bcc9651cef6e7956f05def-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/3abe50d469404b639745df44b51476b6/_/download/contextbatch/js/jira.browse.project,jira.view.issue,project.issue.navigator,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":165.7999997138977,"connectEnd":165.7999997138977,"connectStart":165.7999997138977,"domainLookupEnd":165.7999997138977,"domainLookupStart":165.7999997138977,"fetchStart":165.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":187.7999997138977,"responseEnd":365.7999997138977,"responseStart":250.69999980926514,"secureConnectionStart":165.7999997138977},{"duration":42.69999980926514,"initiatorType":"script","name":"https://jira.workterra.net/s/ecf7ec549751ae117b778f0525d6d371-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/4.1.5/_/download/resources/com.atlassian.plugins.atlassian-chaperone:hotspot-tour/hotspot-tour.js?batch=false&locale=en-US","startTime":166.09999990463257,"connectEnd":166.09999990463257,"connectStart":166.09999990463257,"domainLookupEnd":166.09999990463257,"domainLookupStart":166.09999990463257,"fetchStart":166.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":187.89999961853027,"responseEnd":208.7999997138977,"responseStart":208,"secureConnectionStart":166.09999990463257},{"duration":43.09999990463257,"initiatorType":"script","name":"https://jira.workterra.net/s/6aa3fcf1fac5fd551eee0b69077524e6-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/aae1242f5fc81cc6a5bb8bc963ccda29/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en-US","startTime":166.2999997138977,"connectEnd":166.2999997138977,"connectStart":166.2999997138977,"domainLookupEnd":166.2999997138977,"domainLookupStart":166.2999997138977,"fetchStart":166.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":187.89999961853027,"responseEnd":209.39999961853027,"responseStart":208.89999961853027,"secureConnectionStart":166.2999997138977},{"duration":43.700000286102295,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":166.39999961853027,"connectEnd":166.39999961853027,"connectStart":166.39999961853027,"domainLookupEnd":166.39999961853027,"domainLookupStart":166.39999961853027,"fetchStart":166.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":188,"responseEnd":210.09999990463257,"responseStart":209.5,"secureConnectionStart":166.39999961853027},{"duration":44,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":166.59999990463257,"connectEnd":166.59999990463257,"connectStart":166.59999990463257,"domainLookupEnd":166.59999990463257,"domainLookupStart":166.59999990463257,"fetchStart":166.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":188.09999990463257,"responseEnd":210.59999990463257,"responseStart":210.09999990463257,"secureConnectionStart":166.59999990463257},{"duration":44.40000009536743,"initiatorType":"script","name":"https://jira.workterra.net/s/ecf7ec549751ae117b778f0525d6d371-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/8.5.0/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.js?locale=en-US","startTime":166.7999997138977,"connectEnd":166.7999997138977,"connectStart":166.7999997138977,"domainLookupEnd":166.7999997138977,"domainLookupStart":166.7999997138977,"fetchStart":166.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":189.39999961853027,"responseEnd":211.19999980926514,"responseStart":210.69999980926514,"secureConnectionStart":166.7999997138977},{"duration":20.59999990463257,"initiatorType":"link","name":"https://jira.workterra.net/s/05c862146699bb029ceb0a489075e63b-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/bcd66e9a133a1b9f5fd14b56841e1c5b/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":167,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":187.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":45.40000009536743,"initiatorType":"script","name":"https://jira.workterra.net/rest/api/1.0/shortcuts/805012/9b4bc78b7cc5c86b31ff012e5c329c28/shortcuts.js?context=issuenavigation&context=issueaction","startTime":167.09999990463257,"connectEnd":167.09999990463257,"connectStart":167.09999990463257,"domainLookupEnd":167.09999990463257,"domainLookupStart":167.09999990463257,"fetchStart":167.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":191.89999961853027,"responseEnd":212.5,"responseStart":212,"secureConnectionStart":167.09999990463257},{"duration":22.800000190734863,"initiatorType":"link","name":"https://jira.workterra.net/s/9095228fa10daa2d3e3d7d5760c95e91-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/72477c22780abda5f51fe696920d843f/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.css?jira.create.linked.issue=true&richediton=true","startTime":167.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":190.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":103.2999997138977,"initiatorType":"script","name":"https://jira.workterra.net/s/c19a1b46e985d7fb85efaf27c8febfdd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/72477c22780abda5f51fe696920d843f/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.js?jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":167.5,"connectEnd":167.5,"connectStart":167.5,"domainLookupEnd":167.5,"domainLookupStart":167.5,"fetchStart":167.5,"redirectEnd":0,"redirectStart":0,"requestStart":193.09999990463257,"responseEnd":270.7999997138977,"responseStart":269.7999997138977,"secureConnectionStart":167.5},{"duration":89.5,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":182.09999990463257,"connectEnd":182.09999990463257,"connectStart":182.09999990463257,"domainLookupEnd":182.09999990463257,"domainLookupStart":182.09999990463257,"fetchStart":182.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":214.7999997138977,"responseEnd":271.59999990463257,"responseStart":271,"secureConnectionStart":182.09999990463257},{"duration":90.09999990463257,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":182.09999990463257,"connectEnd":182.09999990463257,"connectStart":182.09999990463257,"domainLookupEnd":182.09999990463257,"domainLookupStart":182.09999990463257,"fetchStart":182.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":221.5,"responseEnd":272.19999980926514,"responseStart":271.69999980926514,"secureConnectionStart":182.09999990463257},{"duration":119.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.workterra.net/rest/webResources/1.0/resources","startTime":513.5999999046326,"connectEnd":513.5999999046326,"connectStart":513.5999999046326,"domainLookupEnd":513.5999999046326,"domainLookupStart":513.5999999046326,"fetchStart":513.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":607.7999997138977,"responseEnd":633.5,"responseStart":632.7999997138977,"secureConnectionStart":513.5999999046326}],"threshold":1000,"fetchStart":0,"domainLookupStart":3,"domainLookupEnd":24,"connectStart":24,"connectEnd":71,"secureConnectionStart":48,"requestStart":71,"responseStart":142,"responseEnd":181,"domLoading":146,"domInteractive":830,"domContentLoadedEventStart":830,"domContentLoadedEventEnd":896,"domComplete":972,"loadEventStart":972,"loadEventEnd":974,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"f3ee22ff1bdbc4","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":48,"dbReadsTimeInMs":7,"dbConnsTimeInMs":9,"applicationHash":"156decd7d2b4272533aa6cefc8294af635e1da97","experiments":[]}}
Hi Rohan J Khandave,
Validation means user data input validation: if data is missing, empty, null, zero, not parseable, etc. -> return 400.
If the data format is valid but when looking up into your database, there's no match -> return 404.
This behavior should be indeed enforce on all API endpoints. There is very strong difference between "invalid input" and "missing requested resource".
This is a weird logic but why not. That case should return 409 and then we will ignore on our side meaning the company has been already deactivated.
Thanks for your patience!