bug v1.0
avatar mbabker
mbabker
10 Nov 2013

Some things need to get cleaned up with the validation rules IMO. Pull requests aren't merging into the app anymore, these being the common reasons:

  • The title min length is 15 chars.
  • The title max length is 50 chars.
  • A build is required.

Title should match exactly what GitHub allows via the site here in terms of lengths. Build can be handled by defaulting to the destination branch in the hooks.

avatar mbabker mbabker - open - 10 Nov 2013
avatar mbabker mbabker - open - 10 Nov 2013
avatar b2z
b2z - comment - 10 Nov 2013

Agree about title. Anyone knows allowed values? :)

Build can be handled by defaulting to the destination branch in the hooks.

For example?

avatar mbabker
mbabker - comment - 10 Nov 2013
avatar b2z
b2z - comment - 10 Nov 2013

A little bit confusing to have branch name as a build, but if we do not have any other option then it's ok.

avatar mbabker
mbabker - comment - 10 Nov 2013

On Joomlacode, I often put in 'master' for the build to indicate the current master. So it would either be '2.5.x', 'staging', or 'master' when coming through GitHub.

avatar b2z
b2z - comment - 10 Nov 2013

Did not know that. Then the only problem now how to know min-max length for the title? I googled around and did not found anything...

avatar elkuku
elkuku - comment - 10 Nov 2013

how to know min-max length for the title?

We might abuse a bit and just try out...

jtester/tests#26 - Title length 1
jtester/tests#27 - Title length 100
jtester/tests#28 - Title length 200

I wouldn't go any further here but I don't think there is any "visible" limit on their side...

avatar b2z
b2z - comment - 10 Nov 2013

Just tested the title submitting #177 - minimal title length allowed is 1 char and the maximum is 244 chars :)

avatar elkuku
elkuku - comment - 10 Nov 2013

255 ?

avatar b2z
b2z - comment - 10 Nov 2013

Well :) One space was missed by me ?

avatar b2z
b2z - comment - 11 Nov 2013

@mbabker could you check this? I've just pushed fb2e77c that should fix it.

avatar mbabker
mbabker - comment - 13 Nov 2013

I've deployed the latest changes to the server, we'll see what happens now.

avatar mbabker
mbabker - comment - 13 Nov 2013

On joomla/joomla-cms#2508 still got a Some characters are not allowed in the title. message.

avatar b2z
b2z - comment - 13 Nov 2013

Oh my :) It's because of the exclamation mark. We should add it too of course.

avatar b2z
b2z - comment - 13 Nov 2013

This 4a1e568 should fix it. I hope ?

avatar mbabker
mbabker - comment - 13 Nov 2013

Cool - I'll deploy it tonight

avatar elkuku
elkuku - comment - 14 Nov 2013

Sounds silly, but the next char that comes to my mind is a ? ....

avatar mbabker
mbabker - comment - 14 Nov 2013

I wish there was somewhere that their validator was posted.

FYI latest code is deployed.

avatar b2z
b2z - comment - 14 Nov 2013

Everything is ok?

avatar elkuku
elkuku - comment - 14 Nov 2013

#Merge #204 ?

avatar b2z
b2z - comment - 14 Nov 2013

Sounds like we need to make a test issue trying to pass all the keyboard into the title ?

avatar elkuku
elkuku - comment - 14 Nov 2013

I was talking about the project with the folks of the german http://www.joomla-bugs.de/ throwing around crazy ideas about a multi-lingual tracker.... so, those Ä, ä , Ö, ö... and of course the ß --- not talking about those chinese or even russian characters --- should be included (see: jtester/tests#30)

avatar b2z
b2z - comment - 14 Nov 2013

Hmm, currently our regex in the table class supports Unicode chars:
'/^[\w\pN\pL\pM\-.,()\[\]\'"\+_@&$#%!: ]+$/u'

But JS is not:
/^[a-z0-9\-.,()\[\]'"+_@&$#%!:\s]+$/i

I am not a prof in regex ? But on SO found this question. As far as I understand this could work:
[^\u0000-\u0080]

If not we will need some external library to achieve that.

avatar elkuku
elkuku - comment - 14 Nov 2013

Which brings up the interesting question if it might be possible to have one rule "provider" for both client and server side validation.

avatar b2z
b2z - comment - 14 Nov 2013

Well I just started #210 and it allowed all the chars... Seems we do not need to filter the title at all?

avatar elkuku
elkuku - comment - 14 Nov 2013

I was about to say that :-)


Sent from my Android =;)
On Nov 14, 2013 2:58 PM, "Dmitry Rekun" notifications@github.com wrote:

Well I just started #210 https://github.com/joomla/jissues/issues/210and it allowed all the chars... Seems we do not need to filter title at all?


Reply to this email directly or view it on GitHubhttps://github.com//issues/176#issuecomment-28517193
.

avatar b2z
b2z - comment - 14 Nov 2013

Hehe :) Will post a fix tomorrow ?

avatar - close - 15 Nov 2013
avatar b2z
b2z - comment - 15 Nov 2013

Should be fixed. If not please leave a note here ?

avatar mbabker
mbabker - comment - 16 Nov 2013

I finally got around to deploying the latest up, so we'll see how it all goes.

Add a Comment

Login with GitHub to post a comment