Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doctrine\ODM\PHPCR\Id\IdException thrown during upload #127

Open
cbastienbaron opened this issue Apr 9, 2015 · 3 comments
Open

Doctrine\ODM\PHPCR\Id\IdException thrown during upload #127

cbastienbaron opened this issue Apr 9, 2015 · 3 comments
Labels
Milestone

Comments

@cbastienbaron
Copy link

Hi guys,

After a fresh install to CmfMediaBundle, i'm trying to upload a media with a dirty name 'Capture du 2015-01-07 18:46:59.png' and i get in return a beautiful 500 :)

class: "Doctrine\ODM\PHPCR\Id\IdException"
message: "NodeName property "nodename" of document "Symfony\Cmf\Bundle\MediaBundle\Doctrine\Phpcr\Image" contains the illegal PHPCR value "Capture du 2015-03-25 18:01:53.png"."

AFAIK, there is no a "slugable" behaviour for this pbl ? i'm afraid, finals users, doesn't care about file's name :s Or maybe i'm missing a part of config for this ?

Thks in advance for reponse ;)

@lsmith77 lsmith77 added this to the 1.3 milestone Jun 17, 2015
@dbu dbu removed this from the 1.3 milestone Feb 1, 2016
@dbu
Copy link
Member

dbu commented Feb 8, 2016

the problem is the : in the filename. we should think of something, maybe simply url encode the node name?

@ElectricMaxxx ElectricMaxxx added this to the 2.0 milestone Jul 4, 2017
@ElectricMaxxx ElectricMaxxx added this to In Progress in Enable and v2.0 Jul 4, 2017
@ElectricMaxxx ElectricMaxxx added this to Income in Enable and v2.0 Jul 4, 2017
@ElectricMaxxx ElectricMaxxx added this to Ready in Enable and v2.0 Jul 4, 2017
@ElectricMaxxx ElectricMaxxx moved this from Ready to Income in Enable and v2.0 Jul 4, 2017
@ElectricMaxxx
Copy link
Member

Not even the : is a problem, when using a file in forms the . for the ending will break as it is used in form name.

@ElectricMaxxx
Copy link
Member

Btw: i would see that issue on phpcr-odm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Enable and v2.0
ReadyToWorkOn
Development

No branches or pull requests

4 participants