testcontainers / testcontainers/testcontainers-java

Parsing of scripts containing the syllables "end" or "begin" is broken

Aperta
#1,235 7 commenti 1 reazione 1 assegnatario Vedi su GitHub

@rnorth ci sta già lavorando.

Dal 17/4/2019.

modules/jdbc resolution/acknowledged type/bug
Lingua principale
Java
Stelle
8.7k
Fork
1.9k
Merge medio
2g 17h
PR unite (30g)
9

Descrizione

A script containing the syllable "end" (or, I suppose "begin") outside a comment or a quote will prevent the code from finding any further line-breaks, thus, usually breaking the script.
the offending line is https://github.com/testcontainers/testcontainers-java/blob/b6de1ac6de2bc1a68c5a789661f48341f8cb858c/modules/database-commons/src/main/java/org/testcontainers/ext/ScriptUtils.java#L168

An example script would be

create tablespace DEV datafile 'dev.dbf' size 256M autoextend on;
CREATE USER bla IDENTIFIED BY testuser DEFAULT TABLESPACE DEV;
CREATE USER blub IDENTIFIED BY testuser DEFAULT TABLESPACE DEV;
CREATE USER bloh IDENTIFIED BY testuser DEFAULT TABLESPACE DEV;

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.