kinglozzer

Oh no, I was thinking of https://github.com/silverstripe/silverstripe-asset-admin/issues/919

Show 1 attachment(s)
lerni

In an Element with a has_one Image the Image "cache-hangs" in the CMS, specifically in UploadField. I've added a LiteralField with a Thumbnail and the path beside the UploadField to make the problem better visible. The LiteralField and also the Thumbnail thingy in the Elemental-GF are correct but on the second Element 'BBB' the Thumbnail in UploadField is wrong. It even shows the wrong Image if I click on the edit-eye in the UploadField. Check the short Screencast below.

class ElementTextImage extends BaseElement {
  private static $has_one = [
    'Image' => Image::class
  ];
  private static $field_labels = [
    'Image' => 'Bild',
  ];

  private static $owns = [
    'Image'
  ];

  private static $table_name = 'ElementTextImage';

  function getCMSFields() {
    $fields = parent::getCMSFields();

    if ($uploadField = $fields->dataFieldByName('Image')) {
      $uploadField->allowedExtensions = array('jpg', 'png');
      $uploadField->setFolderName('TextImageElement');
      $uploadField->setDescription('min. 1400x1800px');
    }
    $fields->addFieldToTab('Root', LiteralField::create('image-debug', $this->Image()->CMSThumbnail() .'<br>'. $this->Image()->URL), 'Image');

    return $fields;
  }
}

https://user-images.githubusercontent.com/472115/53904500-8d0f7680-4046-11e9-8203-2507665dfcf3.gif|wrong-image

silverstripe/admin                         1.3.2 
silverstripe/asset-admin                   1.3.2 
silverstripe/assets                        1.3.2 
silverstripe/cms                           4.3.2 
silverstripe/config                        1.0.12
silverstripe/framework                     4.3.2 
silverstripe/graphql                       3.0.2 
silverstripe/recipe-cms                    4.3.2 
silverstripe/versioned                     1.3.2 
silverstripe/versioned-admin               1.1.2 
Hide attachment content
kinglozzer

I’ve raised other issues with this API, and I’ll raise this too, but I don’t hold out much hope for anything changing

kinglozzer

It does if you recompile it to enable support 😄

kinglozzer

So I guess OpenSSL doesn’t include/support RC4-MD5?

kinglozzer

openssl s_client -connect <server>:443 shows New, (NONE), Cipher is (NONE) on the production server, but shows New, TLSv1/SSLv3, Cipher is RC4-MD5 on my mac