Skip to content

Commit

Permalink
Editor / Suggestions / Too large parameters (#5385)
Browse files Browse the repository at this point in the history
Some processes may have large parameters too long to be posted in URL depending on container config.
```
[WARNING] URI is too large >8192
```

eg. while adding feature catalogue with 128 columns definitions!
```

b_term;Terminus (Oui/Non);C;
c_mode;Mode de transport (MET : métro);C;
c_station;Station (B);C;
....
```
POST parameters in body instead.
 

Another option would be to increase `jetty.request.header.size`.
  • Loading branch information
fxprunayre authored Feb 1, 2021
1 parent d17d490 commit 489a7df
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@
.then(function() {
if (!skipSave) {
$http.post('../api/records/' + (params.id || params.uuid) +
'/processes/' + params.process + '?' +
gnUrlUtils.toKeyValue(params)
'/processes/' + params.process,
gnUrlUtils.toKeyValue(params),
{headers : { 'Content-Type': 'application/x-www-form-urlencoded' }}
).then(function(data) {
$http.get('../api/records/' + gnCurrentEdit.id + '/editor' +
'?currTab=' + gnCurrentEdit.tab).then(function(data) {
Expand All @@ -94,8 +95,9 @@
});
} else {
$http.post('../api/records/' + (params.id || params.uuid) +
'/processes/' + params.process + '?' +
gnUrlUtils.toKeyValue(params)
'/processes/' + params.process,
gnUrlUtils.toKeyValue(params),
{headers : { 'Content-Type': 'application/x-www-form-urlencoded' }}
).then(function(data) {
defer.resolve(data);
});
Expand Down

0 comments on commit 489a7df

Please sign in to comment.