Discussion:
[Bug 34511] New: Support Type:URL values with more than 255 characters
b***@wikimedia.org
2012-02-19 11:16:43 UTC
Permalink
https://bugzilla.wikimedia.org/show_bug.cgi?id=34511

Web browser: ---
Bug #: 34511
Summary: Support Type:URL values with more than 255 characters
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Semantic MediaWiki
AssignedTo: wikibugs-***@lists.wikimedia.org
ReportedBy: ***@semantic-mediawiki.org
CC: ***@yahoo.com, ***@semantic-mediawiki.org
Classification: Unclassified
Mobile Platform: ---


Type:URL is currently limited to 255 characters, since this is the maximum
length of the string field in the standard database schema of SMW. Arbitrary
length types Text and Code cannot be queried in the same way, and do therefore
not provide an alternative.

As a solution, all long Text data should be stored together with a hash to
allow efficient querying, and a way should be provided for URL data to use this
facility (either with a new type LongURL or by changing the default behaviour
of URL). It might be possible to construct the hash by using, say, 247 initial
characters of the string, followed by an 8 character alphanumeric hash code.
This could have some advantages:

(1) String comparison functions (that are based on lexicographic order) would
produce meaningful results unless the first 247 chars agree. Even in the latter
case, meaningful comparisons would be possible.

(2) It might be possible to leave the long text field set to NULL if the string
is short enough for 255 letters. This should safe reduce the overhead of
supporting long strings significantly.

With this method, all "long string" types should be reconcilable with the
normal short versions, and String as well as URL should be storable in the same
table.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
b***@wikimedia.org
2012-02-19 11:16:58 UTC
Permalink
https://bugzilla.wikimedia.org/show_bug.cgi?id=34511

Markus Krötzsch <***@semantic-mediawiki.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Priority|Unprioritized |High
Status|NEW |ASSIGNED
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
b***@wikimedia.org
2012-11-03 09:26:24 UTC
Permalink
https://bugzilla.wikimedia.org/show_bug.cgi?id=34511

Nemo_bis <***@tiscali.it> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
b***@wikimedia.org
2013-09-23 08:48:14 UTC
Permalink
https://bugzilla.wikimedia.org/show_bug.cgi?id=34511

Stefahn <***@interspirit.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@interspirit.de

--- Comment #1 from Stefahn <***@interspirit.de> ---
I just came across this limitation too:
When querying an long URL it is limited to 255 characters and thus gets
corrupted (in most cases).

It would be nice if URLs could be longer than 255 characters.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
b***@wikimedia.org
2014-11-20 21:48:32 UTC
Permalink
https://bugzilla.wikimedia.org/show_bug.cgi?id=34511

badon <***@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugzilla.wikimedia.
| |org/show_bug.cgi?id=32955
Severity|enhancement |major

--- Comment #2 from badon <***@gmail.com> ---
Bug 32955 is now fixed, and I added it to the "See Also" area for this bug. I
also changed the priority of this from "Enhancement" to "Major", because the
feature already exists (storing URL's as property data), but it is essentially
non-working. Beyond that, Stefahn reported that attempting to use the feature
will cause a loss of the data, which would normally prompt me to assign
"Critical" priority.

I decided against "Critical" priority because the feature was essentially
non-working until today, when Bug 32955 was fixed (I haven't tested the fix
yet), so users would immediately notice the feature does not work, before
significant data could be lost. Note that none of these bugs will cause the
loss of existing data, because it's impossible to store it in the first place.
Thus, data losses do not occur unexpectedly, so the threat is as minimal as it
gets, as far as data loss is concerned (an immediately obvious failure to store
the data).

Now that Bug 32955 is fixed, I expect the next release of SMW will make it much
more likely the feature will be used, and data will be lost (at save time)
before users notice the problem (at query time). That could arguably create the
conditions to justify upgrading this bug to "Critical" importance. Ideally,
this bug would be fixed before the next SMW version is released.

For now, the only workaround available is to use URL shorteners. There are
MediaWiki extensions for producing them automatically, but they are beta
quality, and users report high dissatisfaction with them. SMW query URL's can
be gargantuan, and the usage of square brackets in the URL's makes it
impossible to share them as-is on forums that support BBCode (all modern
forums). SMW is desperately in need of an URL shortener feature, which has been
requested for other non-SMW uses of MediaWiki too: Bug 42085. I will request
the feature at GitHub:

https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues?milestone=&q=is%3Aopen
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
b***@wikimedia.org
2014-11-20 22:04:53 UTC
Permalink
https://bugzilla.wikimedia.org/show_bug.cgi?id=34511

--- Comment #3 from badon <***@gmail.com> ---
FYI, I made the URL shortener feature request here:

https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/642
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Fortsæt læsning på narkive:
Loading...