Closed
Bug 480480
Opened 15 years ago
Closed 15 years ago
Finding cluster with api/register/chknode has trailing newline
Categories
(Cloud Services :: General, defect)
Cloud Services
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Mardak, Unassigned)
Details
$ curl https://auth.services.mozilla.com/0.3/api/register/chknode/harikaried sj-weave01.services.mozilla.com $ Notice the next prompt $ starts on its own line. This is causing problems with the generated clusterURL because now it's... https://sj-weave01.services.mozilla.com / Not sure what's going on for the server, but we can work around it on the client by just doing res.data.trim()
Reporter | ||
Comment 1•15 years ago
|
||
Pushed a workaround for now. I'll leave the bug open for figuring out why the newline is there to begin with. http://hg.mozilla.org/labs/weave/rev/dce3e928fc11
Comment 2•15 years ago
|
||
FYI, we have plans to change what the server returns to be a URL instead of a domain name.
Comment 3•15 years ago
|
||
Adding Jeremy so that he can fix the current servers.
Comment 4•15 years ago
|
||
Newline has been removed.
Reporter | ||
Comment 5•15 years ago
|
||
Marking fixed per comment #4 and testing with curl shows no newline. I suppose we can just leave the workaround for now?
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 6•15 years ago
|
||
Yeah, it doesn't really matter either way. We'll want to parse full URLs in the future, probably.
Reporter | ||
Comment 7•15 years ago
|
||
http://hg.mozilla.org/labs/weave/rev/561603ff8747 Remove trailing newline bug 480480 work-around: trim().
Updated•15 years ago
|
Component: Weave → General
Product: Mozilla Labs → Weave
Target Milestone: -- → ---
Version: Trunk → unspecified
Updated•15 years ago
|
QA Contact: weave → general
You need to log in
before you can comment on or make changes to this bug.
Description
•