Commit 9284ef6f authored by Rostislav Dublin (EPAM)'s avatar Rostislav Dublin (EPAM)
Browse files

Merge branch 'GCP-validation-error' into 'master'

(GONRG-1838) GCP cannot retrieve a record with space

See merge request osdu/platform/system/storage!151
parents e53dcc49 fd3f87b6
......@@ -28,6 +28,19 @@ In order to run the service locally or remotely, you will need to have the follo
| `GOOGLE_AUDIENCES` | ex `*****` | Client ID for getting access to cloud resources | yes | |
| `GOOGLE_APPLICATION_CREDENTIALS` | ex `/path/to/directory/service-key.json` | Service account credentials, you only need this if running locally | yes | |
###Requirements for requests.
Record identifiers cannot contain a space character.
At the same time, they may contain a % character, which, when combined with subsequent numeric characters,
may cause the application to misinterpret that combination.
For example, the "%20" combination will be interpreted as a space " " character.
To correctly transfer such an identifier, you should additionally perform the url-encode operation on it.
This functionality can be built into the front-end application, or you can use an online url-encoder
tool ( eg.:
Thus, having ID "osdu:work-product-component--WellboreMarkerSet:3D%20Kirchhoff%20DepthMigration" (with %20 combination)
you should url-encode it and request
"osdu%3Awork-product-component--WellboreMarkerSet%3A3D%2520Kirchhoff%2520DepthMigration" instead.
### Run Locally
Check that maven is installed:
......@@ -11,4 +11,7 @@ JAVA_GC_OPTS=-XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupanc
\ No newline at end of file
# Spring boot config
\ No newline at end of file
......@@ -18,6 +18,7 @@ import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
public class TestRecordsApiAcceptance extends RecordsApiAcceptanceTests {
......@@ -38,6 +39,7 @@ public class TestRecordsApiAcceptance extends RecordsApiAcceptanceTests {
public void setup() throws Exception {
this.testUtils = new GCPTestUtils();
this.configUtils = new ConfigUtils("");
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment