Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

& character in endpoint result are badly managed #4

Open
fcorti opened this issue Jun 4, 2017 · 2 comments
Open

& character in endpoint result are badly managed #4

fcorti opened this issue Jun 4, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@fcorti
Copy link
Owner

fcorti commented Jun 4, 2017

In some environments (also on linux), endpoint like:

/alfresco/api/-default-/public/alfresco/versions/1/people?maxItems=${maxItems}&skipCount=${skipCount}
/alfresco/api/-default-/public/alfresco/versions/1/people?maxItems=1000000000&skipCount=1&fields=%7B%7D

http://localhost:8080/pentaho/plugin/Alflytics/api/getendpoints?paramendpointId=alfrescoPeople

http://localhost:8080/pentaho/plugin/Alflytics/api/getendpoints?paramendpointId=alfrescoPeopleCount

Can cause a bad result:

http://192.10.2.41:80/alfresco/api/-default-/public/workflow/versions/1skipCount=0
http://192.10.2.41:80/alfresco/api/-default-/public/workflow/versions/1fields=%7B%7D

The & seems to be a problem in some environments.

@nourmail
Copy link

nourmail commented Jun 4, 2017

Hi,
Please find bellow the URLs result :

  1. http://localhost:8080/pentaho/plugin/Alflytics/api/getendpoints?paramendpointId=alfrescoPeople
    Result :
    {"resultset":[["alfrescoPeople","skipCount=${skipCount}"]],"metadata":[{"colIndex":0,"colType":"String","colName":"endpointId"},{"colIndex":1,"colType":"String","colName":"endpoint"}],"queryInfo":{"totalRows":1}}

  2. http://localhost:8080/pentaho/plugin/Alflytics/api/getendpoints?paramendpointId=alfrescoPeopleCount

Result :
{"resultset":[["alfrescoPeopleCount","fields=%7B%7D"]],"metadata":[{"colIndex":0,"colType":"String","colName":"endpointId"},{"colIndex":1,"colType":"String","colName":"endpoint"}],"queryInfo":{"totalRows":1}}

@fcorti
Copy link
Owner Author

fcorti commented Jun 4, 2017

Here the issue.
The correct results should be:

{"metadata":[{"colIndex":0,"colType":"String","colName":"endpointId"},{"colIndex":1,"colType":"String","colName":"endpoint"}],"queryInfo":{"totalRows":1},"resultset":[["alfrescoPeople","/alfresco/api/-default-/public/alfresco/versions/1/people?maxItems=${maxItems}&skipCount=${skipCount}"]]}

{"metadata":[{"colIndex":0,"colType":"String","colName":"endpointId"},{"colIndex":1,"colType":"String","colName":"endpoint"}],"queryInfo":{"totalRows":1},"resultset":[["alfrescoPeopleCount","/alfresco/api/-default-/public/alfresco/versions/1/people?maxItems=1000000000&skipCount=1&fields=%7B%7D"]]}

Please replace the file called getEndpoints.ktr into the <pentaho-server>/pentaho-solutions/system/Alflytics/endpoints/kettle with the file at the link here.

Then stop/start pentaho again and repeat the test executing the two URLs in the browser.
Please share the result here.

fcorti added a commit that referenced this issue Jun 4, 2017
@fcorti fcorti added the bug label Jun 4, 2017
@fcorti fcorti self-assigned this Jun 4, 2017
@fcorti fcorti added this to the 5.0 milestone Jun 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants