CHAT_OUTPUT_BEGIN
COMMAND_ID=NEWFI-260907-A-PORTAL200-APPLY4FIX1-RCA5
STATUS=OK
RC=0
HOST=pve01
MODE=read-only
COMPONENT=newfi-portal200-template-core-order-compact-rca
REFERENCE_REGISTER_CHECK=OK
REFERENCE_SHA256=5a3d8e5154c41cb582a4e0aca68090be1f0138918bf82131a948df326f9d8d66
ERROR_REGISTER_CHECK=OK
ERROR_REGISTER_SHA256=3b09a553ec0f527ed3afeed4753f52a74ee3036045bbfb3c685e9f8af4ba7ba0
COMMAND_SHA256=a248577aad05735aea22d9086779b52efe1cdd227e0beecfa77e1f8730bacce9
DUPLICATE_FAILED_COMMAND_BLOCKED=false
EXECUTION_STARTED=true
CHANGE_DECLARED=false
RESULT_CONTRACT_VALID=true
RESULT_CONTRACT_STATUS=NOT_APPLICABLE
RESULT_CONTRACT_ERROR=NONE
COMMAND_RC=0
CHANGES_MADE=false
ROLLBACK_STARTED=false
ROLLBACK_RESTORED=null
MUTATION_OUTCOME=NO_MUTATION
SANITIZED=yes
SECRETS_INCLUDED=no
PRIVATE_ADDRESSES_INCLUDED=no
RAW_EVIDENCE_SHA256=511b1d2ae2292c5a365702038cd0a2317a368e105e461ac12a8bfc93940a250f
SANITIZED_OUTPUT_SHA256=511b1d2ae2292c5a365702038cd0a2317a368e105e461ac12a8bfc93940a250f
OUTPUT_BEGIN
RCA5_BEGIN=true
COMMAND_ID=NEWFI-260907-A-PORTAL200-APPLY4FIX1-RCA5
MUTATION_SCOPE=NONE_READ_ONLY
MUTATIONS_PERFORMED=NO
ERROR_REGISTER_CHECK=OK
ERROR_REGISTER_SHA256=3b09a553ec0f527ed3afeed4753f52a74ee3036045bbfb3c685e9f8af4ba7ba0
REFERENCE_CHECK=OK
REFERENCE_SHA256=5a3d8e5154c41cb582a4e0aca68090be1f0138918bf82131a948df326f9d8d66
AUTHORITY_CHECK_SCOPE=READABILITY_ONLY_INCIDENTS_NOT_CLOSED
RCA4_HISTORY_SHA256=0c3318ac2149f3d9d5bd644cd9e06c48b4dddffc1685546287d6324c23217923
RCA4_STATUS=OK
RCA4_FINAL_DECISION=RCA4_COMPLETE_NO_MUTATION_TEMPLATE_XML_IDENTITY_READY
GIT_HEAD={"err":"","out":"06bab5acd124e768f70305b3d7eca2f595871890","rc":0}
GIT_STATUS={"err":"","out":"","rc":0}
GIT_REMOTE_HEAD=06bab5acd124e768f70305b3d7eca2f595871890
CANDIDATE_XML_SHA256=1650c3d868d4bc47703f1b75f1f179cd25309b2d3b20a2b848e81a4423c00861
CANDIDATE_CHILDREN_COMPACT=[{"i":0,"style_id":"0","tag":"template","text_bytes":7027,"text_sha256":"2a7b332223b7fb0af18cfb9659d1698603faa79d5d0f63c49359dd6a1c8fbf7a","title":"newfi_portal","type":"public","version_id":"1000010","version_string":"1.0.0 Alpha 1"},{"i":1,"style_id":"0","tag":"template","text_bytes":3634,"text_sha256":"25b1dc49e89ef7615a11cd1023876c4ab9b5f96f90b1fca52a4815bb5992fbe8","title":"newfi_portal.less","type":"public","version_id":"1000010","version_string":"1.0.0 Alpha 1"}]
CANDIDATE_DUPLICATE_IDENTITY_KEYS={}
TEMPLATE_IMPORT_LINES={"err":"","lines":[{"n":70,"s":"else"},{"n":71,"s":"{"},{"n":72,"s":"$existing = [];"},{"n":73,"s":"}"},{"n":74,"s":""},{"n":75,"s":"$i = 0;"},{"n":76,"s":"$last = 0;"},{"n":77,"s":""},{"n":78,"s":"foreach ($entries AS $entry)"},{"n":79,"s":"{"},{"n":80,"s":"$i++;"},{"n":81,"s":""},{"n":82,"s":"if ($i <= $start)"},{"n":83,"s":"{"},{"n":84,"s":"continue;"},{"n":85,"s":"}"},{"n":86,"s":""},{"n":87,"s":"$type = (string) $entry['type'];"},{"n":88,"s":"$title = (string) $entry['title'];"},{"n":89,"s":"$entity = $existing[$type][$title] ?? $this->create();"},{"n":90,"s":"$entity->setOption('check_duplicate', false);"},{"n":91,"s":"$entity->setOption('report_modification_errors', false);"},{"n":92,"s":"$entity->getBehavior(DevOutputWritable::class)->setOption('write_dev_output', false);"},{"n":93,"s":""},{"n":94,"s":"$this->importMappedAttributes($entry, $entity);"},{"n":95,"s":"$entity->style_id = 0;"},{"n":96,"s":"$entity->template = $this->getCdataValue($entry);"},{"n":97,"s":"$entity->addon_id = $addOnId;"},{"n":98,"s":"$entity->save(true, false);"},{"n":99,"s":""},{"n":100,"s":"\\XF::dequeueRunOnce('styleLastModifiedDate');"},{"n":101,"s":""},{"n":102,"s":"if ($this->resume($maxRunTime, $startTime))"},{"n":103,"s":"{"},{"n":104,"s":"$last = $i;"},{"n":105,"s":"break;"},{"n":106,"s":"}"},{"n":107,"s":"}"},{"n":108,"s":"return ($last ?: false);"},{"n":109,"s":"}"},{"n":110,"s":""}],"path":"/var/www/forums/newfi/public/src/XF/AddOn/DataType/Template.php","rc":0}
ABSTRACT_IMPORT_LINES={"err":"","lines":[{"n":255,"s":"foreach ($this->getMappedAttributes() AS $attr)"},{"n":256,"s":"{"},{"n":257,"s":"if (in_array($attr, $maintained))"},{"n":258,"s":"{"},{"n":259,"s":"continue;"},{"n":260,"s":"}"},{"n":261,"s":""},{"n":262,"s":"if (self::USE_AUTO_CDATA)"},{"n":263,"s":"{"},{"n":264,"s":"if (isset($el[$attr]))"},{"n":265,"s":"{"},{"n":266,"s":"$entity->$attr = (string) $el[$attr];"},{"n":267,"s":"}"},{"n":268,"s":"else if (isset($el->{$attr}))"},{"n":269,"s":"{"},{"n":270,"s":"$entity->$attr = (string) $el->{$attr};"},{"n":271,"s":"}"},{"n":272,"s":"}"},{"n":273,"s":"else"},{"n":274,"s":"{"},{"n":275,"s":"$entity->$attr = (string) $el[$attr];"},{"n":276,"s":"}"},{"n":277,"s":"}"},{"n":278,"s":"}"},{"n":279,"s":""},{"n":280,"s":"protected function pluckXmlAttribute(\\SimpleXMLElement $els, $key)"},{"n":281,"s":"{"},{"n":282,"s":"$values = [];"},{"n":283,"s":"$i = 0;"},{"n":284,"s":"foreach ($els AS $el)"},{"n":285,"s":"{"}],"path":"/var/www/forums/newfi/public/src/XF/AddOn/DataType/AbstractDataType.php","rc":0}
ENTITY_SET_LINES={"err":"","lines":[{"n":630,"s":"throw new \\LogicException(\"Entity is read only\");"},{"n":631,"s":"}"},{"n":632,"s":""},{"n":633,"s":"if ($this->_deleted)"},{"n":634,"s":"{"},{"n":635,"s":"throw new \\LogicException(\"Attempted to set '$key' on a deleted entity\");"},{"n":636,"s":"}"},{"n":637,"s":""},{"n":638,"s":"if ($this->_writePending == 'delete')"},{"n":639,"s":"{"},{"n":640,"s":"throw new \\LogicException(\"Attempted to set '$key' while a deletion was pending\");"},{"n":641,"s":"}"},{"n":642,"s":""},{"n":643,"s":"if ($this->_writePending && empty($options['forceSet']))"},{"n":644,"s":"{"},{"n":645,"s":"throw new \\LogicException(\"Attempted to set '$key' while a save was pending without forceSet\");"},{"n":646,"s":"}"},{"n":647,"s":""},{"n":648,"s":"if (!isset($this->_structure->columns[$key]))"},{"n":649,"s":"{"},{"n":650,"s":"if (empty($options['skipInvalid']))"}],"path":"/var/www/forums/newfi/public/src/XF/Mvc/Entity/Entity.php","rc":0}
TEMPLATE_IMPORT_CALL_ORDER_GREP={"err":"","lines":["17:\t\treturn 'templates';","22:\t\treturn 'template';","30:\t\t\t->order(['type', 'title'])->fetch();","36:\t\t\t$this->exportCdata($node, $entry->template);","44:\tpublic function importAddOnData($addOnId, \\SimpleXMLElement $container, $start = 0, $maxRunTime = 0)","58:\t\t\t\t'type' => (string) $entry['type'],","59:\t\t\t\t'title' => (string) $entry['title'],","68:\t\t\t\t->groupBy('type', 'title');","87:\t\t\t$type = (string) $entry['type'];","88:\t\t\t$title = (string) $entry['title'];","89:\t\t\t$entity = $existing[$type][$title] ?? $this->create();","94:\t\t\t$this->importMappedAttributes($entry, $entity);","96:\t\t\t$entity->template = $this->getCdataValue($entry);","98:\t\t\t$entity->save(true, false);","113:\t\t$existing = $this->findAllForType($addOnId)->where('style_id', 0)->fetch()->groupBy('type', 'title');","125:\t\t\t$type = $attributes['type'];","126:\t\t\t$title = $attributes['title'];","128:\t\t\tif (isset($existing[$type][$title]))","130:\t\t\t\tunset($existing[$type][$title]);","159:\t\t\t'type',","160:\t\t\t'title',"],"rc":0}
DB_SCHEMAS=["xf_newfi"]
XF_TEMPLATE_INDEXES={"err":"","rc":0,"rows":["xf_template\t0\tPRIMARY\t1\ttemplate_id\tA\t1307\tNULL\tNULL\t\tBTREE\t\t\tNO","xf_template\t0\ttype_title_style_id\t1\ttype\tA\t6\tNULL\tNULL\t\tBTREE\t\t\tNO","xf_template\t0\ttype_title_style_id\t2\ttitle\tA\t1307\tNULL\tNULL\t\tBTREE\t\t\tNO","xf_template\t0\ttype_title_style_id\t3\tstyle_id\tA\t1307\tNULL\tNULL\t\tBTREE\t\t\tNO"]}
CURRENT_TEMPLATE_ROWS={"err":"","rc":0,"rows":["1610\t0\tpublic\tnewfi_portal\tNewfi/Portal\t1f484c8cf6bdeda8fda2974abf8a57f8cc7453fe2a779af7c735afa3b73aa741"]}
FINAL_DECISION=RCA5_COMPLETE_NO_MUTATION_CORE_IMPORT_ORDER_COMPACT_READY
RCA5_END=true

OUTPUT_END
CHAT_OUTPUT_END
