reportportal / service-api

Report portal. Main API Service
Apache License 2.0
43 stars 65 forks source link

Unable to add filter with colon (":") character #1967

Closed smerberg closed 3 months ago

smerberg commented 3 months ago

I'm able to reproduce this behavior through both the API and UI, so I think it's an API bug. Apologies if that is not the case.

My team runs tests on multiple servers, so on each launch we have an attribute with a key of "server" and a value of the corresponding server address (i.e. https://abc.xyz).

I am also able to reproduce this behavior on the demo site @ https://demo.reportportal.io/ui/#default_personal/launches/all

Version info: API Service: 5.10.1; Index Service: 5.10.0; Jobs Service: 5.10.0; Authorization Service: 5.10.0; Service UI: 5.10.0;

This worked up until we upgraded recently (I think we were on 5.6 before).

Steps to reproduce the issue:

  1. Load the launches page of RP demo site: https://demo.reportportal.io/ui/#default_personal/launches/all
  2. Add a new attribute to any of the existing launches - key = server, value = https://reportportal.io image
  3. After saving the new attribute, it looks like the server value is split on the colon (I actually don't see this part of the issue on my company's server, but I did see it on the RP demo server, so I included it since it seems relevant). image
  4. Add a new filter with attribute key/value of "server" and "https://reportportal.io" image
  5. After creating the new filter and saving it, it does actually seem to work initially, even though the "server" value is cut off for the filter and the launch attributes image
  6. Click on the "Filters" link in the panel on the left side.
  7. Select the newly created filter
  8. No results display in launches image The filter also does not pull any data into dashboards that we create
smerberg commented 3 months ago

I opened this as a bug on the main repo (https://github.com/reportportal/reportportal/issues/2254), closing this one