Can't Search by AssetID in EasyEdit


#1

Matrix Version: 5.4.2.0

This first appeared in 2014 after we upgraded our system to v5 something. I’d long forgotten it until it popped up again via an editor’s report.

The problem is simple: if you try to search for an asset by assetid in EasyEdit, the search fails every time. Searching with keywords work perfectly.

Has anyone else experienced this and managed to figure out why the search by assetid doesn’t work?

Though I am not too worried about this, I’d love to get this sorted so any help is appreciated.


(Bart Banda) #2

Sounds familiar, but I believe it has been fixed since that version at least.
Is there anything in the network request response that gives you any hints?
Also, from memory, it might have something to do with if you have multiple protocols applied to your Edit+ and your assets you are searching for, is that the case here?


#3

Edit+ is HTTPS only, our site (tmbc.gov.uk) is HTTPS only and only our domain URLs are applied on assets under site asset. However, we have assets outside the site asset that have multiple URLs because we have multi-domain setup (5 separate sites).
I don’t see any difference in requests & responses between assetid and text searches, maybe I am missing something.

ASSETID search:
Request H:
POST /services/advice-and-benefits/grants/_edit?SQ_BACKEND_PAGE=header HTTP/1.1
Host: www.tmbc.gov.uk
Connection: keep-alive
Content-Length: 174
Pragma: no-cache
Cache-Control: no-cache
Accept: /
Origin: https://www.tmbc.gov.uk
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.tmbc.gov.uk/services/advice-and-benefits/grants/_edit
Accept-Encoding: gzip, deflate, br
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Cookie: _ga=GA1.3.12.1544; tmbc-consent=true; resolution=1920; _gid=GA1.3.1145.1537; SQ_SYSTEM_SESSION=hvqo5eacqmq61h3; csrf=6e36e6fd2bbd

Response H:
HTTP/1.1 200 OK
Date: Mon, 02 Jul 2018 08:22:47 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Vary: Accept-Encoding,Origin
Content-Encoding: gzip
Strict-Transport-Security: max-age=31536000; includeSubDomains
Access-Control-Allow-Origin: https://www.tmbc.gov.uk
Access-Control-Allow-Headers: origin, x-requested-with, content-type
Access-Control-Allow-Methods: POST,GET,OPTIONS
Content-Length: 8859
Connection: close
Content-Type: text/html; charset=utf-8

Form Data:
token: 52f1e7ae
process_form: 1
asset_search: 21776
asset_search_root: 9195,9195,10215,16196,94322,96044,95782
asset_search_redirect: 0

===========================================================================
Text search:

Request H:
POST /services/advice-and-benefits/grants/_edit?SQ_BACKEND_PAGE=header HTTP/1.1
Host: www.tmbc.gov.uk
Connection: keep-alive
Content-Length: 177
Pragma: no-cache
Cache-Control: no-cache
Accept: /
Origin: https://www.tmbc.gov.uk
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.tmbc.gov.uk/services/advice-and-benefits/grants/_edit
Accept-Encoding: gzip, deflate, br
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Cookie: _ga=GA1.3.1273.29644; tmbc-consent=true; resolution=1920; _gid=GA1.3.10.17; SQ_SYSTEM_SESSION=hvnsn1ii11h3; csrf=6e36e495

Response H:
HTTP/1.1 200 OK
Date: Mon, 02 Jul 2018 08:27:36 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Vary: Accept-Encoding,Origin
Content-Encoding: gzip
Strict-Transport-Security: max-age=31536000; includeSubDomains
Access-Control-Allow-Origin: https://www.tmbc.gov.uk
Access-Control-Allow-Headers: origin, x-requested-with, content-type
Access-Control-Allow-Methods: POST,GET,OPTIONS
Content-Length: 9046
Connection: close
Content-Type: text/html; charset=utf-8

Form Data:
token: 52
process_form: 1
asset_search: #21776
asset_search_root: 9195,9195,10215,16196,94322,96044,95782
asset_search_redirect: 0

(cookie & token values have been edited by me)


(Bart Banda) #4

Just found this which is probably the fix you need: https://squizmap.squiz.net/matrix/11227
Was released in version 5.4.2.1 so it should be easy to patch onto your system as a patch upgrade.
I’d suggest contacting Squiz Support/your account manager to investigate the possibility of a patch upgrade if you need this.


#5

Brilliant! Thank you. Saved me the trouble to try to find if there is anything on squizmap about it.

The most important to me is to know that it is not something broken in our system only. It’s good to know that it gets fixed when I next do the upgrade.