• Fix an Internal Server Error when unacceptable characters (such as © 2019 GitHub, Inc.) are submitted in CloudServerTemplate add form:
    "PHP message: Uncaught PHP Exception Drupal\Component\Serialization\Exception\InvalidDataTypeException: "Unable to parse at line 26 (near "© 2019 GitHub, Inc.")." at /var/www/html/web/core/lib/Drupal/Component/Serialization/YamlSymfony.php line 40"
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yas created an issue. See original summary.

baldwinlouie’s picture

Status: Active » Needs review
FileSize
1.01 KB

Attach patch that adds constraint validation to the field_detail field for k8s server template.

yas’s picture

Status: Needs review » Reviewed & tested by the community
Related issues: -#3085381: Add a link to a Namespace column in K8s server template list view

@baldwinlouie

Thank you for fixing the issue. I tested the following YAML file that resulted in an Internal Server Error:

apiVersion: apps/v1 #  for k8s versions before 1.9.0 use apps/v1beta2  and before 1.8.0 use extensions/v1beta1
kind: Deployment
metadata:
  name: deployment
spec:
  selector:
    matchLabels:
      app: redis
  replicas: 1
  template:
    metadata:
      labels:
        app: redis
    spec:
      containers:
      - name: redis
        image: redis
        volumeMounts:
        - name: vmfs-vmdk-storage
          mountPath: /data/
      volumes:
      - name: vmfs-vmdk-storage
        vsphereVolume:
          volumePath: "[Datastore] volumes/testdir"
          fsType: ext4
© 2019 GitHub, Inc.

Now it doesn't give us the error. I'll merge the patch to 8.x-2.x and close this issue as Fixed.

  • yas committed 42c9987 on 8.x-2.x authored by baldwinlouie
    Issue #3085603 by baldwinlouie, yas: Fix an Internal Server Error when...
yas’s picture

Status: Reviewed & tested by the community » Fixed
yas’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.