This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git

commit 370ec7f4f6697ddbda2dd4a2d990ddbc0eb76354
Author: Robert Lazarski <[email protected]>
AuthorDate: Sat Apr 4 09:52:08 2026 -1000

    AP: remove hardcoded /home/myuser/ paths from curl examples in userguides
    
    Replace @/home/myuser/login.dat etc. with @login.dat so examples work
    from any working directory. Identified by Gemini code review.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 .../xdoc/docs/json-springboot-tomcat11-userguide.xml | 20 ++++++++++----------
 src/site/xdoc/docs/json-springboot-userguide.xml     | 20 ++++++++++----------
 2 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/site/xdoc/docs/json-springboot-tomcat11-userguide.xml 
b/src/site/xdoc/docs/json-springboot-tomcat11-userguide.xml
index 7777d7c4b3..25d887d75e 100644
--- a/src/site/xdoc/docs/json-springboot-tomcat11-userguide.xml
+++ b/src/site/xdoc/docs/json-springboot-tomcat11-userguide.xml
@@ -448,10 +448,10 @@ sender configuration to your axis2.xml file:</p>
 Invoking the client for a login that returns a token can be done as follows:
 </p>
 <pre>
-curl -v -H "Content-Type: application/json" -X POST --data 
@/home/myuser/login.dat http://localhost:8080/services/loginService
+curl -v -H "Content-Type: application/json" -X POST --data @login.dat 
http://localhost:8080/services/loginService
 </pre>
 <p>
-Where the contents of /home/myuser/login.dat are:
+Where the contents of login.dat are:
 </p>
 <pre>
 
{"doLogin":[{"arg0":{"email":[email protected],"credentials":userguide}}]}
@@ -467,10 +467,10 @@ Invoking the client for a Test Service that validates a 
sample token can be done
 follows:
 </p>
 <pre>
-curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" -H "Content-Type: 
application/json" -X POST --data @/home/myuser/test.dat 
http://localhost:8080/services/testws'
+curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" -H "Content-Type: 
application/json" -X POST --data @test.dat 
http://localhost:8080/services/testws'
 </pre>
 <p>
-Where the contents of /home/myuser/test.dat are below. arg0 is a var name
+Where the contents of test.dat are below. arg0 is a var name
 and is used by Axis2 as part of its reflection based code:
 </p>
 <pre>
@@ -496,11 +496,11 @@ Here are examples of how to invoke the service using 
cURL:</p>
 curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
      -H "Content-Type: application/json" \
      -X POST \
-     --data @/home/myuser/small_dataset.dat \
+     --data @small_dataset.dat \
      https://localhost:8443/services/BigDataH2Service
 </pre>
 
-<p>Where the contents of /home/myuser/small_dataset.dat are:</p>
+<p>Where the contents of small_dataset.dat are:</p>
 
 <pre>
 {"processBigDataSet":[{"arg0":{
@@ -520,11 +520,11 @@ curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
 curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
      -H "Content-Type: application/json" \
      -X POST \
-     --data @/home/myuser/medium_dataset.dat \
+     --data @medium_dataset.dat \
      https://localhost:8443/services/BigDataH2Service
 </pre>
 
-<p>Where the contents of /home/myuser/medium_dataset.dat are:</p>
+<p>Where the contents of medium_dataset.dat are:</p>
 
 <pre>
 {"processBigDataSet":[{"arg0":{
@@ -544,11 +544,11 @@ curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
 curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
      -H "Content-Type: application/json" \
      -X POST \
-     --data @/home/myuser/large_dataset.dat \
+     --data @large_dataset.dat \
      https://localhost:8443/services/BigDataH2Service
 </pre>
 
-<p>Where the contents of /home/myuser/large_dataset.dat are:</p>
+<p>Where the contents of large_dataset.dat are:</p>
 
 <pre>
 {"processBigDataSet":[{"arg0":{
diff --git a/src/site/xdoc/docs/json-springboot-userguide.xml 
b/src/site/xdoc/docs/json-springboot-userguide.xml
index 60c5973462..d864bd026b 100644
--- a/src/site/xdoc/docs/json-springboot-userguide.xml
+++ b/src/site/xdoc/docs/json-springboot-userguide.xml
@@ -349,10 +349,10 @@ sender configuration to your axis2.xml file:</p>
 Invoking the client for a login that returns a token can be done as follows:
 </p>
 <pre>
-curl -v -H "Content-Type: application/json" -X POST --data 
@/home/myuser/login.dat 
http://localhost:8080/axis2-json-api/services/loginService
+curl -v -H "Content-Type: application/json" -X POST --data @login.dat 
http://localhost:8080/axis2-json-api/services/loginService
 </pre>
 <p>
-Where the contents of /home/myuser/login.dat are:
+Where the contents of login.dat are:
 </p>
 <pre>
 
{"doLogin":[{"arg0":{"email":[email protected],"credentials":userguide}}]}
@@ -368,10 +368,10 @@ Invoking the client for a Test Service that validates a 
sample token can be done
 follows:
 </p>
 <pre>
-curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" -H "Content-Type: 
application/json" -X POST --data @/home/myuser/test.dat 
http://localhost:8080/axis2-json-api/services/testws'
+curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" -H "Content-Type: 
application/json" -X POST --data @test.dat 
http://localhost:8080/axis2-json-api/services/testws'
 </pre>
 <p>
-Where the contents of /home/myuser/test.dat are below. arg0 is a var name 
+Where the contents of test.dat are below. arg0 is a var name 
 and is used by Axis2 as part of its reflection based code:
 </p>
 <pre>
@@ -397,11 +397,11 @@ Here are examples of how to invoke the service using 
cURL:</p>
 curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
      -H "Content-Type: application/json" \
      -X POST \
-     --data @/home/myuser/small_dataset.dat \
+     --data @small_dataset.dat \
      https://localhost:8443/axis2-json-api/services/BigDataH2Service
 </pre>
 
-<p>Where the contents of /home/myuser/small_dataset.dat are:</p>
+<p>Where the contents of small_dataset.dat are:</p>
 
 <pre>
 {"processBigDataSet":[{"arg0":{
@@ -421,11 +421,11 @@ curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
 curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
      -H "Content-Type: application/json" \
      -X POST \
-     --data @/home/myuser/medium_dataset.dat \
+     --data @medium_dataset.dat \
      https://localhost:8443/axis2-json-api/services/BigDataH2Service
 </pre>
 
-<p>Where the contents of /home/myuser/medium_dataset.dat are:</p>
+<p>Where the contents of medium_dataset.dat are:</p>
 
 <pre>
 {"processBigDataSet":[{"arg0":{
@@ -445,11 +445,11 @@ curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
 curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" \
      -H "Content-Type: application/json" \
      -X POST \
-     --data @/home/myuser/large_dataset.dat \
+     --data @large_dataset.dat \
      https://localhost:8443/axis2-json-api/services/BigDataH2Service
 </pre>
 
-<p>Where the contents of /home/myuser/large_dataset.dat are:</p>
+<p>Where the contents of large_dataset.dat are:</p>
 
 <pre>
 {"processBigDataSet":[{"arg0":{

Reply via email to