You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you start the project for the first time, and the migrations are executed, in ORACLE the default values are being assigned for some reason with a space at the end.
This causes that when you want to access the login, and the server/info method is invoked, it does not return the default values of the project:
version: '3'volumes:
db:
services:
database:
image: quillbuilduser/oracle-18-xe-micro-sqvolumes:
- db:/opt/oracle/oradataports:
- 1521:1521environment:
- OPATCH_JRE_MEMORY_OPTIONS=-Xms128m -Xmx256m -XX:PermSize=16m -XX:MaxPermSize=32m -Xss1m
- ORACLE_ALLOW_REMOTE=trueshm_size: '1gb'directus:
build: .ports:
- 8055:8055depends_on:
database:
condition: service_healthyvolumes:
- ./extensions:/directus/extensions
- ./uploads:/directus/uploadsenvironment:
TELEMETRY: 'false'KEY: '255d861b-5ea1-5996-9aa3-922530ec40b1'SECRET: '6116487b-cda1-52c2-b5b5-c8022c45e263'DB_CLIENT: 'oracledb'DB_HOST: 'database'DB_PORT: '1521'DB_DATABASE: 'XE'DB_USER: 'secretsysuser'DB_PASSWORD: 'secretpassword'CACHE_ENABLED: 'false'ADMIN_EMAIL: 'admin@example.com'ADMIN_PASSWORD: 'd1r3ctu5'# Make sure to set this in production# (see https://docs.directus.io/configuration/config-options/#general)# PUBLIC_URL: 'https://directus.example.com'
Up docker-compose, try to access to login & explore network requests to capture server/info request.
Errors Shown
vendor.e0a21029.js:5
Error: Unable to parse color from string: null
at new bu (vendor.e0a21029.js:2851:29026)
at bu (vendor.e0a21029.js:2851:28718)
at Gv.fn (index.cee72373.entry.js:540:81604)
at Gv.run (vendor.e0a21029.js:2:12019)
at get value [as value] (vendor.e0a21029.js:2:20264)
at Um (vendor.e0a21029.js:2:19290)
at Proxy.<anonymous> (index.cee72373.entry.js:540:83561)
at Xy (vendor.e0a21029.js:2:22303)
at Gv.St [as fn] (vendor.e0a21029.js:2:51269)
at Gv.run (vendor.e0a21029.js:2:12019)
CU @ vendor.e0a21029.js:5
z0 @ vendor.e0a21029.js:5
Xy @ vendor.e0a21029.js:2
St @ vendor.e0a21029.js:2
run @ vendor.e0a21029.js:2
gt @ vendor.e0a21029.js:2
Fe @ vendor.e0a21029.js:2
je @ vendor.e0a21029.js:2
x @ vendor.e0a21029.js:2
St @ vendor.e0a21029.js:2
run @ vendor.e0a21029.js:2
gt @ vendor.e0a21029.js:2
Fe @ vendor.e0a21029.js:2
je @ vendor.e0a21029.js:2
x @ vendor.e0a21029.js:2
St @ vendor.e0a21029.js:2
run @ vendor.e0a21029.js:2
id @ vendor.e0a21029.js:5
Bk @ vendor.e0a21029.js:5
Promise.then (asincrónica)
jk @ vendor.e0a21029.js:5
Fk @ vendor.e0a21029.js:5
u9 @ vendor.e0a21029.js:5
YE @ vendor.e0a21029.js:2
T @ vendor.e0a21029.js:5
xb @ vendor.e0a21029.js:2
qy @ vendor.e0a21029.js:2
(anónimo) @ vendor.e0a21029.js:2
xb @ vendor.e0a21029.js:2
qy @ vendor.e0a21029.js:2
(anónimo) @ vendor.e0a21029.js:2
xb @ vendor.e0a21029.js:2
qy @ vendor.e0a21029.js:2
set value @ vendor.e0a21029.js:2
ue @ vendor.e0a21029.js:74
(anónimo) @ vendor.e0a21029.js:74
Promise.then (asincrónica)
q @ vendor.e0a21029.js:74
S @ vendor.e0a21029.js:74
install @ vendor.e0a21029.js:74
use @ vendor.e0a21029.js:2
coe @ index.cee72373.entry.js:541
(anónimo) @ index.cee72373.entry.js:540
vendor.e0a21029.js:5
TypeError: Cannot read properties of undefined (reading 'primary')
at Proxy.<anonymous> (index.cee72373.entry.js:540:83565)
at Xy (vendor.e0a21029.js:2:22303)
at Gv.St [as fn] (vendor.e0a21029.js:2:50749)
at Gv.run (vendor.e0a21029.js:2:12019)
at id (vendor.e0a21029.js:5:664)
at Bk (vendor.e0a21029.js:5:2360)
What version of Directus are you using?
9.10.0
What version of Node.js are you using?
16
What database are you using?
Oracle
What browser are you using?
Edge
How are you deploying Directus?
Docker
The text was updated successfully, but these errors were encountered:
When you change the default value to null with Knex the value stored as the default in the Oracle schema is null (this is technically valid as a nullable column default). This is different from a string value which would return as 'null '.
Describe the Bug
When you start the project for the first time, and the migrations are executed, in ORACLE the default values are being assigned for some reason with a space at the end.
This causes that when you want to access the login, and the server/info method is invoked, it does not return the default values of the project:
I can fix, executing first time:
Knex output on migration pipeline executed:
To Reproduce
package.json
Custom Dockerfile with instantclient dep:
Example docker-compose.yml
Up docker-compose, try to access to login & explore network requests to capture server/info request.
Errors Shown
What version of Directus are you using?
9.10.0
What version of Node.js are you using?
16
What database are you using?
Oracle
What browser are you using?
Edge
How are you deploying Directus?
Docker
The text was updated successfully, but these errors were encountered: