-
Notifications
You must be signed in to change notification settings - Fork 149
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
Weird css in some rows of ACA search results #4254
Comments
@DenysVuika my guessing is that there is some error in this method: Some inputs, like a nested "aca-highlight" input would create this issue. A better approach could be to use HTML elements for this replacement. Something similar to:
|
I tried this and it still shows the same error. |
In that case, the fix should be something like:
|
tried that also, didn't work. I think we need to search for wrongly escaped chars not only on the prefix/postfix, but also on the entire title/name/description/content |
my dev just found out that the function : highlights?.forEach((highlight) => { is inserting the wrong code (n class="aca-highlight">). The highlight is imported from @alfresco/js-api. |
any workaround on this? |
@sergiobaiao @aborroy I will investigate this issue, can you please provide a pdf and a search phrase that I could use to reproduce this issue on my local env? This would be very helpful as I've never seen this issue before |
i can do better...is there a way i can contact you directly so i can send you an username/password to my alfresco server? |
Yes you can message me on MS Teams, Slack or send me an email -> [email protected] |
Hi Michal, did you receive my email? |
Hello Sergio, yes I did, thank you! I was able to access the server and replicate the issue, I'm investigating the code now |
Okay I analyzed what's going on there and it seems that this is an issue with search engine, instead of providing proper prefix |
@sergiobaiao could I use one of the PDFs for which the issue is observed and attach it to the bug report for the BE team? So that they can reproduce it locally in their ACS instance? Also please let me know which search engine you're using in your instance, is it SOLR or ES? |
Yes you can, these are public domain documents. We're using SOLR. You can forward that login info too if needed. |
Okay so I was able to reproduce this issue locally with Solr, I created the bug for the BE team and passed the info for them |
is there a link for me to follow the bug report? |
Yes -> https://hyland.atlassian.net/browse/ACS-9073 sorry I forgot to put it here |
it seems i cannot access it:
[email protected] doesn't have access to Jira on hyland.atlassian.net.
…On Mon, Dec 16, 2024 at 11:46 AM MichalKinas ***@***.***> wrote:
Yes -> https://hyland.atlassian.net/browse/ACS-9073 sorry I forgot to put
it here
—
Reply to this email directly, view it on GitHub
<#4254 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGV4PGTGVUE47FL5VIWLGIT2F3RTZAVCNFSM6AAAAABSJW5ULSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBVHAYTSNRTGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Atenciosamente,
--- ============ ---
Sérgio Baião
--- ============ ---
|
I'm sorry but we cannot grant you access there, this bug will be picked up by the BE team as soon as this will be possible, I will update you on the progress and planned release date here |
Describe the bug
I'm having some weird ACA search results within my environment, like the picture bellow:
Some rows in the results are showing "n class='aca-highlight'>" within the title, description and/or content. Aparently this only happens to my own Alfresco data, since @aborroy was able to replicate this with his own local data, but did replicate with my data from my Alfresco server.
Environment
ALFRESCO_CE_TAG=23.2.1
SEARCH_CE_TAG=2.0.9.1
SHARE_TAG=23.2.1
ACA_TAG=4.4.1
POSTGRES_TAG=15.6
#POSTGRES_TAG=14.4
MARIADB_TAG=11.3.2
TRANSFORM_ENGINE_TAG=5.1.0
ACTIVEMQ_TAG=5.18-jre17-rockylinux8
To Reproduce
Steps to reproduce the behavior:
I don't think this will happen to everyone, maybe it's related to wrong character encoding from metadata on the search results, that maybe wrongly escaping quotes or any other chars. Also, the last line from each row is showing a lot of weird chars also.
Screenshots
ACA Search Results:
Share Search Results: (same user and same search term)
P.S - I can provide a Consumer only user with restricted access to anyone who wants to test this against my Alfresco server.
The text was updated successfully, but these errors were encountered: