File tree 4 files changed +12
-12
lines changed
frontend/pages/SoftwarePage
SoftwareVersionDetailsPage
SoftwareVulnerabilityDetailsPage
4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ const SoftwareOSDetailsPage = ({
103
103
enabled : ! ! osVersionIdFromURL ,
104
104
select : ( data ) => data . os_version ,
105
105
onError : ( error ) => {
106
- // 404s returned for both non-existent and non-accessable entities
106
+ // 403s returned for both non-existent and non-accessable entities
107
107
// which we intentionally handle with the same empty state for security
108
- if ( isAxiosError ( error ) && error . response ?. status !== 404 ) {
108
+ if ( isAxiosError ( error ) && error . response ?. status !== 403 ) {
109
109
handlePageError ( error ) ;
110
110
}
111
111
} ,
@@ -161,7 +161,7 @@ const SoftwareOSDetailsPage = ({
161
161
onTeamChange = { onTeamChange }
162
162
/>
163
163
) }
164
- { /* at this point, error can only be 404 per above handling */ }
164
+ { /* at this point, error can only be 403 per above handling */ }
165
165
{ isOsVersionError ? (
166
166
< DetailsNoHosts
167
167
header = "OS not detected"
Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ const SoftwareTitleDetailsPage = ({
75
75
{
76
76
select : ( data ) => data . software_title ,
77
77
onError : ( error ) => {
78
- // 404s returned for both non-existent and non-accessable entities
78
+ // 403s returned for both non-existent and non-accessable entities
79
79
// which we intentionally handle with the same empty state for security
80
- if ( isAxiosError ( error ) && error . response ?. status !== 404 ) {
80
+ if ( isAxiosError ( error ) && error . response ?. status !== 403 ) {
81
81
handlePageError ( error ) ;
82
82
}
83
83
} ,
@@ -109,7 +109,7 @@ const SoftwareTitleDetailsPage = ({
109
109
onTeamChange = { onTeamChange }
110
110
/>
111
111
) }
112
- { /* at this point, error can only be 404 per above handling */ }
112
+ { /* at this point, error can only be 403 per above handling */ }
113
113
{ isSoftwareTitleError ? (
114
114
< DetailsNoHosts
115
115
header = "Software not detected"
Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ const SoftwareVersionDetailsPage = ({
78
78
{
79
79
select : ( data ) => data . software ,
80
80
onError : ( error ) => {
81
- // 404s returned for both non-existent and non-accessable entities
81
+ // 403s returned for both non-existent and non-accessable entities
82
82
// which we intentionally handle with the same empty state for security
83
- if ( isAxiosError ( error ) && error . response ?. status !== 404 ) {
83
+ if ( isAxiosError ( error ) && error . response ?. status !== 403 ) {
84
84
handlePageError ( error ) ;
85
85
}
86
86
} ,
@@ -128,7 +128,7 @@ const SoftwareVersionDetailsPage = ({
128
128
onTeamChange = { onTeamChange }
129
129
/>
130
130
) }
131
- { /* at this point, error can only be 404 per above handling */ }
131
+ { /* at this point, error can only be 403 per above handling */ }
132
132
{ isSoftwareVersionError ? (
133
133
< DetailsNoHosts
134
134
header = "Software not detected"
Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ const SoftwareVulnerabilityDetailsPage = ({
80
80
{
81
81
select : ( data ) => data . vulnerability ,
82
82
onError : ( error ) => {
83
- // 404s returned for both non-existent and non-accessable entities
83
+ // 403s returned for both non-existent and non-accessable entities
84
84
// which we intentionally handle with the same empty state for security
85
- if ( isAxiosError ( error ) && error . response ?. status !== 404 ) {
85
+ if ( isAxiosError ( error ) && error . response ?. status !== 403 ) {
86
86
handlePageError ( error ) ;
87
87
}
88
88
} ,
@@ -137,7 +137,7 @@ const SoftwareVulnerabilityDetailsPage = ({
137
137
onTeamChange = { onTeamChange }
138
138
/>
139
139
) }
140
- { /* at this point, error can only be 404 per above handling */ }
140
+ { /* at this point, error can only be 403 per above handling */ }
141
141
{ isVulnError ? (
142
142
< DetailsNoHosts
143
143
header = "Vulnerability not detected"
You can’t perform that action at this time.
0 commit comments