spring boot rest error

Mike Barnes <mike.barnes-f9aWwpgOZj5Wk0Htik3J/[email protected]> Wed, 29 Nov 2017 08:29:41 -0800
Newsgroups gmane.org.user-groups.ajug.members
Message-ID <[email protected]>
--===============7255532069494768348==
Content-Type: multipart/alternative;
	boundary="_BD54248F-674B-41C1-95B3-DB8657DC3486_"

--_BD54248F-674B-41C1-95B3-DB8657DC3486_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Can someone help me understand why I am unable to find a record when the st=
ring has periods in the string (.)

Example:

http://localhost:8080/v1/security/account/name/My.Company

The Spring Boot rest api appears to be truncating the value when a period a=
ppears.

In the rest log I see name=3DMy
Instead of name=3DMy.Company

This is how I have defined the function:

	@GetMapping(value =3D "/name/{name}")
	public ResponseEntity<?> getAccountByName(@PathVariable("name") String nam=
e) {

Any help would be appreciated.

Thanks
Mike Barnes


Sent from Mail for Windows 10


--_BD54248F-674B-41C1-95B3-DB8657DC3486_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of=
fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta ht=
tp-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta name=
=3DGenerator content=3D"Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Courier New";}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style></head><body lang=3DEN-US link=3Dblue vlink=3D"#954F72"><div cla=
ss=3DWordSection1><p class=3DMsoNormal>Can someone help me understand why I=
 am unable to find a record when the string has periods in the string (.)</=
p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Example:</=
p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><pre><a href=3D"http://loc=
alhost:8080/v1/security/account/name/My.Company">http://localhost:8080/v1/s=
ecurity/account/name/My.Company</a></pre><pre><o:p>&nbsp;</o:p></pre><pre>T=
he Spring Boot rest api appears to be truncating the value when a period ap=
pears.</pre><pre><o:p>&nbsp;</o:p></pre><pre>In the rest log I see name=3DM=
y</pre><pre>Instead of name=3DMy.Company</pre><pre><o:p>&nbsp;</o:p></pre><=
pre>This is how I have defined the function:</pre><pre><o:p>&nbsp;</o:p></p=
re><pre>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 @GetMapping(value =3D &q=
uot;/name/{name}&quot;)</pre><pre>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 public ResponseEntity&lt;?&gt; getAccountByName(@PathVariable(&quot;nam=
e&quot;) String name) {</pre><pre><o:p>&nbsp;</o:p></pre><pre>Any help woul=
d be appreciated.</pre><pre><o:p>&nbsp;</o:p></pre><pre>Thanks</pre><pre>Mi=
ke Barnes</pre></div><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DM=
soNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Sent from <a href=3D"htt=
ps://go.microsoft.com/fwlink/?LinkId=3D550986">Mail</a> for Windows 10</p><=
p class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></body></html>=

--_BD54248F-674B-41C1-95B3-DB8657DC3486_--


--===============7255532069494768348==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KYWp1Zy1tZW1i
ZXJzIG1haWxpbmcgbGlzdAphanVnLW1lbWJlcnNAbGlzdHMuYWp1Zy5vcmcKTWFuYWdlIHlvdXIg
c3Vic2NyaXB0aW9uIGFuZCB1bnN1YnNjcmliZSBodHRwOi8vbGlzdHMuYWp1Zy5vcmcvbWFpbG1h
bi9saXN0aW5mby9hanVnLW1lbWJlcnM=

--===============7255532069494768348==--