Giter VIP home page Giter VIP logo

Comments (9)

dbu avatar dbu commented on August 23, 2024

unless you accidentally already have both, this would have to be in odm, phpcr itself should be case sensitive. unless one of the sql backends does the path uniqueness in the db and is doing that case insensitiv, which would be a bug afaik.

can you maybe start by adding a test to phpcr-api-tests so that we know whether there is an issue on that layer?

from phpcr-odm.

dbu avatar dbu commented on August 23, 2024

are you sure that this is not because you had duplicated documents? i would assume the paths to be case sensitive always.

from phpcr-odm.

dbu avatar dbu commented on August 23, 2024

@dantleech are you able to reproduce this? could it be a mysql only issue? i think mysql is by default case insensitive. jackrabbit and postgres should be case sensitive. maybe we should tell mysql to use a case sensitive collation in our schema, to behave like the rest.

from phpcr-odm.

dantleech avatar dantleech commented on August 23, 2024

Will put this on my todo

from phpcr-odm.

dbu avatar dbu commented on August 23, 2024

uh oh, setting mysql to a case sensitive collation in general would be a dangerous thing, as it would make everything case sensitive. if it is a mysql issue, then it belongs into jackalope-doctrine-dbal and we need something like http://stackoverflow.com/questions/3396253/altering-mysql-table-column-to-be-case-sensitive ALTER TABLE UserAccounts CHANGE Password Password varchar(50) NOT NULL COLLATE utf8_bin; - is utf8_bin commonly available or will that pose new installation problems?

from phpcr-odm.

dbu avatar dbu commented on August 23, 2024

@dantleech where you able to investigate on this?

from phpcr-odm.

dantleech avatar dantleech commented on August 23, 2024

Yeah it is a doctrine-dbal only issue:

PHPCR > session:node:move cms Cms
PHPCR > ls
+-------------+-----------------+--------+
| Node / Prop | Type            | Value  |
+-------------+-----------------+--------+
| /           | nt:unstructured |        |
|  -fooo      | STRING          | barrrr |
|  Cms/       | nt:unstructured |        |
+-------------+-----------------+--------+

2 node(s)
PHPCR > session:save
Cannot move '/cms' to '/Cms' because destination node already exists.

With jackrabbit it works fine.

from phpcr-odm.

dantleech avatar dantleech commented on August 23, 2024

On the otherhand this is not an ODM issue ..

from phpcr-odm.

dbu avatar dbu commented on August 23, 2024

created jackalope/jackalope-doctrine-dbal#179

from phpcr-odm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.