PC Component Firmware integrity and security

I recently bought a new laptop.

If you read the news you must’ve noticed Vault 6 and Vault 7 leaks (from Wikileaks), which contain rootkits which sit on your Hard Drive Firmware, MBR and other hidden partitions. Since it’s out in the open not only state actors should be able to make such kind of hard to get rid of malware.

How do I check the integrity (checksums or similar) and secure the firmware on my hardware components (Hard Drive, Motherboard, SSD, USB Hub etc etc)?

Looking for a tool that can help me to sort a code component

my question is about finding a tool that can help me to sort all classes, and the variables and methods in each class. I’m doing a research and what I’m looking for is a software tool to find and report the following:

  • for any project, I need to find the classes
  • for each class, I need to know lines of code, attributes (variables), and methods
  • for each variable, I need to know the visibility (public, private, protected, ..), and type (int, double, string, array, …)
  • for each method, I need to know lines of code, the visibility (public, private, protected, ..), return type (int, double, string, …), and number and types of parameters

Informacion no se muestra en component de React

Estoy tratando de crear una ruta en la que pueda actualizar las paginas que tengo creadas acorde al _id especifico. El problema es que apesar de poder ver la informacion usando el Redux DevTools,etc todavia no puedo ver dicha informacion en el form que tengo creada en el componente.

Osea la ruta es algo asi:

<PrivateRoute exact path="/admin/pages/view/:id" component={PageView} /> 

En orden para poder acceder y ver la informacion correcta tengo que usar algo que se llama match para usarlo como un prop. Despues llamo al getPost con el el match.params.id en el useEffect que tengo creado. El problema reside despues de eso(en el setFormData).

En el setFormData estoy pasandole dos objetos, uno con el nombre de title y el otro con el nombre de text; ahi mismo estoy checando ‘si es que no hay page muestrame un string vacio, si no muestrame el valor correspondiente de la DB’. Por alguna razon no se muestran dicho valores!.

Aca les dejo el codigo:

import React, { useState, useEffect } from 'react'; import { Link, withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Spinner from '../../layout/Spinner'; import { getPost, updatePage } from '../../../actions/admin/page';  const Update = ({ getPost, pages: { page, loading }, match, updatePage, history }) => {    const [formData, setFormData] = useState({     title: '',     text: '',   });    useEffect(() => {     getPost(match.params.id);     setFormData({       title: !page ? '' : page.title,       text: !page ? '' : page.text     });     // eslint-disable-next-line   }, [       loading,       getPost,       match.params.id     ]);    const {     title,     text   } = formData;    const onChange = e =>     setFormData({ ...formData, [e.target.name]: e.target.value });    const onSubmit = e => {     e.preventDefault();     updatePage(formData, history, true);   };    return loading || page === null ? (     <Spinner />   ) : (       <section className="mb-3">         <div className="container-fluid">           <h1 className="border-bottom-dark pb-3 mb-3">Update Your Page</h1>           <small>* = required field</small>           <form className="form" onSubmit={e => onSubmit(e)}>             <div className="form-group">               <input                 type="text"                 placeholder="* Title"                 name="title"                 autoComplete="title"                 className="form-control"                 value=Informacion no se muestra en component de React                 onChange={e => onChange(e)}               />               <small className="form-text">Could be your own nickname</small>             </div>             <div className="form-group">               <textarea                 placeholder="Write here"                 name="text"                 autoComplete="text"                 className="form-control"                 value={text}                 onChange={e => onChange(e)}               />               <small className="form-text">So what are you up to?</small>             </div>             <div className="btn-group">               <input type="submit" className="btn btn-primary my-1" />               <Link className="btn btn-dark my-1" to="/admin/pages">Go Back</Link>             </div>           </form>         </div>       </section>     ); };  Update.propTypes = {   updatePage: PropTypes.func.isRequired,   getPost: PropTypes.func.isRequired,   pages: PropTypes.object.isRequired, };  const mapStateToProps = state => ({   pages: state.page });  export default connect(   mapStateToProps,   { getPost, updatePage } )(withRouter(Update)); 

Espero y me puedan hechar la mano que realmente me estoy frustrando un poquito xD.

Get order_id in UI Component GRID in a new Sales View Tab

After a lot of tries, I couldn’t manage to get an order_id to a Admin Grid Dataprovider.

This is the code I have

view/adminhtml/layout/sales_order_view.xml – To add a new tab to order view

<?xml version="1.0"?>     <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">         <body>             <referenceContainer name="left">                 <referenceBlock name="sales_order_tabs">                     <block class="Invoicing\Moloni\Block\Adminhtml\Order\View\Tab\Documents" name="sales_order_documents.grid.container"/>                     <action method="addTabAfter">                         <argument name="name" xsi:type="string">moloni_documents</argument>                         <argument name="block" xsi:type="string">sales_order_documents.grid.container</argument>                         <argument name="after" xsi:type="string">order_invoices</argument>                     </action>                 </referenceBlock>             </referenceContainer>             <referenceBlock name="sales_order_documents.grid.container">                 <uiComponent name="orders_documents_grid"/>             </referenceBlock>         </body>     </page> 

view/adminhtml/ui_components/orders_documents_grid.xml

<?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">     <argument name="data" xsi:type="array">         <item name="js_config" xsi:type="array">             <item name="provider" xsi:type="string">orders_documents_grid.orders_documents_grid_data_source</item>         </item>     </argument>     <settings>         <spinner>orders_documents_grid_columns</spinner>         <deps>             <dep>orders_documents_grid.orders_documents_grid_data_source</dep>         </deps>     </settings>     <dataSource name="orders_documents_grid_data_source" component="Magento_Ui/js/grid/provider">         <settings>             <filterUrlParams>                 <param name="order_id">*</param>             </filterUrlParams>             <updateUrl path="mui/index/render"/>         </settings>         <dataProvider class="Invoicing\Moloni\Ui\DataProvider\OrderDocumentsProvider" name="orders_documents_grid_data_source">             <settings>                 <requestFieldName>id</requestFieldName>                 <primaryFieldName>entity_id</primaryFieldName>             </settings>         </dataProvider>     </dataSource>      <columns name="orders_documents_grid_columns">         <column name="entity_name">             <settings>                 <filter>text</filter>                 <label translate="true">Nome</label>             </settings>         </column>          <column name="entity_vat">             <settings>                 <filter>text</filter>                 <label translate="true">Contribuinte</label>             </settings>         </column>     </columns> </listing> 

Ui/DataProvider/OrderDocumentsProvider.php

<?php /**  * Created by PhpStorm.  * User: Nuno  * Date: 30/07/2019  * Time: 16:20  */  namespace Invoicing\Moloni\Ui\DataProvider;  use Invoicing\Moloni\Libraries\MoloniLibrary\Moloni; use Magento\Ui\DataProvider\AbstractDataProvider; use Magento\Framework\App\Request\Http; use Magento\Sales\Api\OrderRepositoryInterface;  class OrderDocumentsProvider extends AbstractDataProvider {     /**      * @var \Magento\Ui\DataProvider\AddFieldToCollectionInterface[]      */     protected $  addFieldStrategies;      /**      * @var \Magento\Ui\DataProvider\AddFilterToCollectionInterface[]      */     protected $  addFilterStrategies;      /**      * @var Http      */     protected $  request;      /**      * @var OrderRepositoryInterface      */     protected $  orderRepository;      /**      * @var Moloni      */     private $  moloni;      /**      * Construct      *      * @param string $  name      * @param string $  primaryFieldName      * @param string $  requestFieldName      * @param Http $  request      * @param array $  meta      * @param array $  data      */     public function __construct(         $  name,         $  primaryFieldName,         $  requestFieldName,         Http $  request,         OrderRepositoryInterface $  orderRepository,         Moloni $  moloni,         array $  meta = [],         array $  data = []     )     {         $  this->request = $  request;         $  this->moloni = $  moloni;         $  this->orderRepository = $  orderRepository;         $  this->data = $  data;         parent::__construct($  name, $  primaryFieldName, $  requestFieldName, $  meta, $  data);     }      /**      * @return \Magento\Sales\Api\Data\OrderInterface      */     public function getOrder()     {         $  orderId = $  this->request->getParam("order_id");         return $  this->orderRepository->get($  orderId);     }      /***      * @return array      */     public function getData()     {         $  documentsList = [             [                 'entity_name' => print_r($  this->request->getParams(), true),                 'entity_vat' => print_r($  this->data, true)             ]         ];          return [             'totalRecords' => count($  documentsList),             'items' => $  documentsList,         ];     }      public function setLimit($  offset, $  size)     {     }      public function addOrder($  field, $  direction)     {     }      public function addFilter(\Magento\Framework\Api\Filter $  filter)     {     } } 

Whenever I try to open the sales order view, all other tabs load the url like this:

https://magento.retronwarz.com/admin/mui/index/render/key/0d7cba1af800b031dce791267facdc34b5a062f3932738f45e74225339a629e8/order_id/8/?namespace=sales_order_view_invoice_grid 

But, when I try to load my tab, the param order_id is not sent, so it looks like:

https://magento.retronwarz.com/admin/mui/index/render/key/0d7cba1af800b031dce791267facdc34b5a062f3932738f45e74225339a629e8/?namespace=orders_documents_grid&isAjax=true 

Does anyone know how I can overcome this and send the order_id to the tab URL?

Magento 2.3.2 Failed to load the “Magento_Checkout/js/view/billing-address/list” component

I am using one-step checkout and getting an error in checkout console. and also page redirects to /noroute/ 404 page.

[ERROR] Failed to load the “Magento_Checkout/js/view/billing-address/list” component.

I have checked in Magento 2.3.2 release note and see there is a change in the checkout, so I think it showing an error because of this.

so I just want to know how to resolve error Failed to load component

Any help would be appreciated! Thanks.

Do all 2019 UA Artificer spells have a de facto material component?

The 2019 UA Artificer’s Spellcasting feature contains this sentence:

You must have a spellcasting focus—specifically thieves’ tools or some kind of artisan’s tool—in hand when you cast any spell with this Spellcasting feature.

I originally read this as saying that the artificer could use tools as their spellcasting focus, in the same way as a wizard can use a wand or staff. However, on closer inspection, this seems to say that an artificer needs their focus in hand in order to cast any spell, even spells with no material component and spells with a costly or consumed material component that can not be substituted for a spellcasting focus. Which is the correct reading?

For contrast, the wizard’s Spellcasting feature has this to say on using an arcane focus:

You can use an arcane focus (see the Adventuring Gear section) as a spellcasting focus for your wizard spells.

And other official classes all have similar rules, differing only in the type of focus mentioned.

Complex UI component, using dynamic rows in admin, for a product attribute, is not saving when removing all rows

I created a complex product attribute entry in product admin, which uses dynamic rows.

Same idea as this core one:

enter image description here

UI works fine, but if you remove all rows, and save, the attribute does not update, and reloads back to the rows prior to removed. So, basically, you cannot clear out the rows/entries.

However, this example core one works 100%.

My entry is adjusted using UI Components modifiers, exactly like this core attribute is done.

https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/AdvancedPricing.php#L433

(they used a derived UI component called Magento_Catalog/js/components/dynamic-rows-tier-price in place of Magento_Catalog/js/components/dynamic-rows, but they are essentially the same. Tested as well by making my component use the same, which did not solve the issue (just in case)

So, essentially, we have ability to build these complex input components, but they cannot be cleared.

Complex UI component, using dynamic rows in admin, for a product attribute, is not saving when removing all rows

I created a complex product attribute entry in product admin, which uses dynamic rows.

Same idea as this core one:

enter image description here

UI works fine, but if you remove all rows, and save, the attribute does not update, and reloads back to the rows prior to removed. So, basically, you cannot clear out the rows/entries.

However, this example core one works 100%.

My entry is adjusted using UI Components modifiers, exactly like this core attribute is done.

https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/AdvancedPricing.php#L433

(they used a derived UI component called Magento_Catalog/js/components/dynamic-rows-tier-price in place of Magento_Catalog/js/components/dynamic-rows, but they are essentially the same. Tested as well by making my component use the same, which did not solve the issue (just in case)

So, essentially, we have ability to build these complex input components, but they cannot be cleared.

Complex UI component, using dynamic rows in admin, for a product attribute, is not saving when removing all rows

I created a complex product attribute entry in product admin, which uses dynamic rows.

Same idea as this core one:

enter image description here

UI works fine, but if you remove all rows, and save, the attribute does not update, and reloads back to the rows prior to removed. So, basically, you cannot clear out the rows/entries.

However, this example core one works 100%.

My entry is adjusted using UI Components modifiers, exactly like this core attribute is done.

https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/AdvancedPricing.php#L433

(they used a derived UI component called Magento_Catalog/js/components/dynamic-rows-tier-price in place of Magento_Catalog/js/components/dynamic-rows, but they are essentially the same. Tested as well by making my component use the same, which did not solve the issue (just in case)

So, essentially, we have ability to build these complex input components, but they cannot be cleared.

Complex UI component, using dynamic rows in admin, for a product attribute, is not saving when removing all rows

I created a complex product attribute entry in product admin, which uses dynamic rows.

Same idea as this core one:

enter image description here

UI works fine, but if you remove all rows, and save, the attribute does not update, and reloads back to the rows prior to removed. So, basically, you cannot clear out the rows/entries.

However, this example core one works 100%.

My entry is adjusted using UI Components modifiers, exactly like this core attribute is done.

https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/AdvancedPricing.php#L433

(they used a derived UI component called Magento_Catalog/js/components/dynamic-rows-tier-price in place of Magento_Catalog/js/components/dynamic-rows, but they are essentially the same. Tested as well by making my component use the same, which did not solve the issue (just in case)

So, essentially, we have ability to build these complex input components, but they cannot be cleared.