Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

support for roxy.jar #716

Closed
kgcprakash opened this issue Jan 15, 2017 · 6 comments
Closed

support for roxy.jar #716

kgcprakash opened this issue Jan 15, 2017 · 6 comments

Comments

@kgcprakash
Copy link

kgcprakash commented Jan 15, 2017

Hi,
ML version :: 8.0-6.1 (using the 1.7.2 version of roxy)
My company is moving towards roxy jar (from file system based roxy). so far i have encountered couple of issues.

  1. the password entered in cmd prompt is visible (earlier when the password is entered it will not display like unix prompt)

  2. in the earlier version we had a small xquery written to get a collection count and it was working fine. Now the output is coming along with some hex deciamal char and data type and content type. How to get rid of it? (tried few options in ruby which dint help. Any link or help would be of great help).
    *****************exactly like below but spelling is bit off; sorry !! *****
    --acdebefacdd
    Content type: text/plain
    X-Primitive : integer

    10
    *****************end of return ****
    (earlier i used to get only the 10)

Thanks and Regards.
kgcprakash

@dmcassel
Copy link
Collaborator

The second issue is because we switched Roxy to use the /v1/eval endpoint with MarkLogic 8 (and 9). That endpoint gives a multi-part response. If you send the result to the parse_multipart function defined in util.rb, you should get back just the string "10". Give that a try, and if you have trouble, please file a separate issue.

@RobertSzkutak
Copy link
Contributor

RobertSzkutak commented Jan 16, 2017

Confirmed that issue 1 exists on Windows Powershell and cygwin bash.

@kgcprakash
Copy link
Author

kgcprakash commented Jan 16, 2017

Thank you very much David ( i will download the relevant jar-1.7.4, test and if issue persists, i will opene a new case).

@RobertSzkutak
Copy link
Contributor

Per direct request from a major customer I will take this on as my top priority and work to resolve it.

@RobertSzkutak RobertSzkutak added this to the 1.7.5 milestone Jan 16, 2017
@RobertSzkutak
Copy link
Contributor

The only advice I've found on the net is to try compiling with later builds of JRuby. Will be testing out several builds as I put the release together tomorrow. (There's also advice out there recommending certain gems but I'd personally prefer to avoid adding dependencies wherever possible).

@RobertSzkutak
Copy link
Contributor

@kgcprakash I've just submitted a PR with a fix which you can use to build a working JAR. We anticipate making a new release of Roxy before the end of the week at which point a JAR will be available for download.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants