Task Scheduler trigger expire isn’t working

The task is setup through GPO as a immediate task. It ends in less than 30 seconds and it should delete itself. Seems to be affecting only Windows servers 2016. It deletes itself on Windows server 2008 R2. Any suggestions on how to debug why it isn’t deleting?

It looks like Task scheduler ID becomes 00000. During the Task Completed it has a unique ID.

Task Scheduler successfully finished “{058c45b6-e31c-401a-b70e-2a90a2c9c110}” instance of the “\task_name” task for user “NT AUTHORITY\SYSTEM”.

Task scheduler screenshot

Why Hibernate MassIndexer says indexing completed but really it isn’t completed

I am trying to index large data(13.5 million records with association to 7-8 tables) in elastic search using MassIndexer. It shown message that it indexed all the records after 39.08%. I am getting the same issue in local and production, the percentage varies for every execution.

fullTextEntityManager .createIndexer(XYZ.class) .batchSizeToLoadObjects(500).cacheMode(CacheMode.IGNORE).threadsToLoadObjects(2).idFetchSize(Integer.MIN_VALUE) .startAndWait();

It should show indexing completed only after indexing all records.

Why isn’t the access check being called at all?

I have the below code. I have set up the business logic and it works fine in a .module file, but not in an access controller. What am I doing wrong?

// nodeaccess.routing.yml  nodeaccess.people:   path: '/user/{user}/edit'   requirements:     _custom_access: '\Drupal\nodeaccess\Access\NodeaccessCustomAccessCheck::access'  // nodeaccess/src/Access/NodeaccessCustomAccessCheck.php  <?php  namespace Drupal\nodeaccess\Access;  use Drupal\Core\Access\AccessResult; use Drupal\Core\Routing\Access\AccessInterface; use Drupal\Core\Session\AccountInterface; use Drupal\user\Entity\User; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;  /**  * Class NodeaccessCustomAccessCheck.  *  * @package Drupal\nodeaccess\Access  */ class NodeaccessCustomAccessCheck implements AccessInterface {    /**    * A custom access check.    *    * @param \Drupal\Core\Session\AccountInterface $  account    *   Run access checks for the logged in user.    */   public function access(AccountInterface $  account) {     $  current_user = User::load(\Drupal::currentUser()->id());     $  user = User::load(explode("/", $  _SERVER["REQUEST_URI"])[1]);     if ($  current_user->field_department->target_id != $  user->field_department->target_id) {       throw new AccessDeniedHttpException();     }     return AccessResult::allowed();     }  } 

Databricks command says databricks-cli isn’t configured when run from Python (with os.system()) but works fine when pasted into command line

My Python code constructs a string in the form
myCmd = 'databricks fs cp dbfs:/mnt/extracts/dsp/{}/full.xml "{}"'.format(extractId, file_path)

This results in a string like this: databricks fs cp dbfs://mt/extracts/dsp/123/full.xml c:\filepath\full.xml

When I attempt to run this string using os.system(myCmd) I’m given the following warning (either within the Python console, or in the cmd window):
Error: InvalidConfigurationError: You haven't configured the CLI yet! Please configure by entering `C:\Users\xxxx\AppData\Local\Continuum\anaconda3\Scripts\databricks configure

But when i copy and paste the constructed myCmd to the command prompt the databricks copy works fine.

Why isn’t my controller returning AccessResult::forbidden()?

I’m working on a node access module. I’ve set up my logic. I can’t seem to get my code to return AccessResult::forbidden(). I can’t even get \dpm to run in access method. What am I doing wrong? Below are my routing.yml and controller.

/* nodeaccess.routing.yml */ nodeaccess.people:   path: '/admin/people/list'   defaults:     _controller: '\Drupal\nodeaccess\Controller\NodeaccessController::content'     _title: 'Dashboard'   requirements:    _custom_access: '\Drupal\nodeaccess\Controller\NodeaccessController::access'  /* src/Controller/NodeAccessController.php */  <?php  namespace Drupal\nodeaccess\Controller;  use Drupal\Core\Access\AccessResult;  use Drupal\Core\Controller\ControllerBase;  /**  * Defines the Dashboard controller.  */ class NodeaccessController extends ControllerBase {   /**   * Returns content for this controller.   */  public function content() {    $  today = date("l");    if ($  today == "Thursday") {      // Return 403 Access Denied page.        \dpm("You are not allowed.");    }  }   /**   * Checks access for this controller.   */  public function access() {   $  current_user = User::load(Drupal::currentUser()->id());   $  user = Drupal\user\Entity\User::load(explode("/", $  _SERVER["REQUEST_URI"])[2]);   if ($  current_user->field_department->target_id != $  user->field_department->target_id) {     return AccessResult::forbidden();   }   return AccessResult::allowed();   } } 

Why isn’t free software signed with self-signed certificates? [duplicate]

This question already has an answer here:

  • Why don't websites provide a checksum of their downloadable files? 5 answers

A majority of free software (in particular, Linux ports for Windows) are not signed.

As I understand it, it is quite easy to create a self-signed CA, and sign the software. Distribution would be handled by major free software players, like KDE, Gnome, or whoever is behind the software.

Why isn’t this standard practice?

Isn’t it almost always not helpful to just change the password of a container after a leak?

Let’s assume, an attacker gains access to an encrypted container with a weak password. They start a brute-force attack and I assume they will succeed. To protect any content which has been added to the container after the leak, I decide to change to a stronger password.

However, at this point, it doesn’t make sense to just change the password of the container, right? Won’t I have to reencrypt everything since the attacker can extract the “master key” of the container which won’t change with a password change?

Scala Play: Why the logger isn’t outputting anything?

I’m on Scala 2.12.x Play 2.7.x and using the logger like this:

val logger = play.api.Logger(this.getClass) 

and the configuration conf/logback.xml. The issue is that my logger.debug(...) statements are not being output in the logs. I assumed by this configuration that the application was set to DEBUG but there is obviously something wrong?

<!-- https://www.playframework.com/documentation/latest/SettingsLogger --> <configuration>      <conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" />      <appender name="FILE" class="ch.qos.logback.core.FileAppender">         <file>$  {application.home:-.}/logs/application.log</file>         <encoder>             <pattern>%date [%level] from %logger in %thread - %message%n%xException</pattern>         </encoder>     </appender>      <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">         <encoder>             <pattern>%coloredLevel %logger{15} - %message%n%xException{10}</pattern>         </encoder>     </appender>      <appender name="ASYNCFILE" class="ch.qos.logback.classic.AsyncAppender">         <appender-ref ref="FILE" />     </appender>      <appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">         <appender-ref ref="STDOUT" />     </appender>      <logger name="play" level="INFO" />     <logger name="application" level="DEBUG" />     <logger name="slick" level="INFO" />     <logger name="slick.jdbc" level="DEBUG" />      <root level="WARN">         <appender-ref ref="ASYNCFILE" />         <appender-ref ref="ASYNCSTDOUT" />     </root>  </configuration> 

Scala Play: Why the logger isn’t outputting anything?

I’m on Scala 2.12.x Play 2.7.x and using the logger like this:

val logger = play.api.Logger(this.getClass) 

and the configuration conf/logback.xml. The issue is that my logger.debug(...) statements are not being output in the logs. I assumed by this configuration that the application was set to DEBUG but there is obviously something wrong?

<!-- https://www.playframework.com/documentation/latest/SettingsLogger --> <configuration>      <conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" />      <appender name="FILE" class="ch.qos.logback.core.FileAppender">         <file>$  {application.home:-.}/logs/application.log</file>         <encoder>             <pattern>%date [%level] from %logger in %thread - %message%n%xException</pattern>         </encoder>     </appender>      <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">         <encoder>             <pattern>%coloredLevel %logger{15} - %message%n%xException{10}</pattern>         </encoder>     </appender>      <appender name="ASYNCFILE" class="ch.qos.logback.classic.AsyncAppender">         <appender-ref ref="FILE" />     </appender>      <appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">         <appender-ref ref="STDOUT" />     </appender>      <logger name="play" level="INFO" />     <logger name="application" level="DEBUG" />     <logger name="slick" level="INFO" />     <logger name="slick.jdbc" level="DEBUG" />      <root level="WARN">         <appender-ref ref="ASYNCFILE" />         <appender-ref ref="ASYNCSTDOUT" />     </root>  </configuration>