@jsonsafro $this->pantheonGuzzle->getQueryResult()
is a generic method for all kind of calls. The returned result is either `json_decoded` array or the string.
The following piece of code returns a file and result is read as a string.
$file_contents = $this->pantheonGuzzle->getQueryResult('admin/file', [
'query' => [
'action' => 'VIEW',
'file' => $filename,
],
]);
I did follow the steps from #4 but couldn't reproduce.
If you are using 8.1.10 version of the module, then can you please help me figure out the issue?
My configuration as follows:
- Detected Solr Version: 8.11.2
- Schema Version: 4.3.5 (was 4.2 after I upgraded to solr 8 but updated it as per 3424724#comment-15742180 ๐ Search API Schema reverts back to 4.2 after deploys or randomly Active )
I am using default schema. All the files loaded on the admin form are text files or xml files and both are returned as string from the `getQueryResult` call.
Can you please confirm if this is the same configuration on your end? Or is there any particular case or schema that is causing this error? Or if you figured out the issue, please feel free to raise a pull request at https://github.com/pantheon-systems/search_api_pantheon.
I am unable to reproduce. Can you please confirm looking into the logs that it is the same error you are facing?
Fixed in the 8.1.10 release.
I continued testing the MR on my local. I see two tests are failing which are because of a single reason. The xml format is not rendering properly. The error is following:
DOMException: Invalid Character Error in DOMDocument->createElement() (line 490 of /app/vendor/symfony/serializer/Encoder/XmlEncoder.php).
The reason is the uuid part inside the component key.
"components": {
"38a9bdec-3df6-457d-bf7a-15b19bd67736": {
}
Does anybody have a suggestion on this problem?
Paragraph does it like this and it works fine with paragraph:
"field_test": [
{
"target_id": 1,
"target_revision_id": 1,
"target_type": "paragraph",
"target_uuid": "d1fd68e4-e561-4d09-afd4-cbb6ac86d190"
},
{
"target_id": 2,
"target_revision_id": 2,
"target_type": "paragraph",
"target_uuid": "02b5f3d6-8cf5-4b31-9b07-cb5480223860"
}
]
I rebased the MR with 9.4.x branch. I am not able to edit the base branch in the MR. I am not sure if I need any permission for that.
@tim.plunkett can you please update that?
sumitmadan โ made their first commit to this issueโs fork.