summaryrefslogtreecommitdiff
path: root/ucb
AgeCommit message (Collapse)AuthorFilesLines
2013-07-08-Werror,-Wheader-guard (Clang trunk towards 3.4)Stephan Bergmann1-1/+1
Change-Id: I6da069a27d569e4b28c0a8fe783616c767c108d0
2013-07-05API change: oslDateTime signed yearLionel Elie Mamane2-4/+4
Change-Id: Ic4f1e424b130fd2ccca379adbe0a66836b6cac41
2013-07-05Mark as constTakeshi Abe8-9/+9
Change-Id: Ia5f9724002da11da69f70bb0f71d44c3b5a19bcb
2013-07-01fdo#66324 fix locking in webdav_ucp::Content::getResourceType()Michael Stahl1-1/+13
Crash in there while accessing an evidently deleted DAVResourceAccess instance with about 4 other threads also in various webdav_ucp::Content methods. The problem is apparently that the "outer" getResourceType() passes the m_xResAccess to the "inner" getResourceType(), which accesses it without locking the mutex, while another thread resets m_xResAccess and thereby deletes the current instance. (regression from 0c3500115c4fd86284a027fc32be704afcf77061) Change-Id: I1c67021c536e303d766c7ff93fb71e40f991f3af
2013-06-29remove OUString wrap for string literalsThomas Arnhold7-9/+9
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29remove some createFromAscii usageThomas Arnhold1-1/+1
there are a lot more of them: git grep 'createFromAscii[^)]*"' Change-Id: Ibc2e9cae208d8b9c91667bb3b177c6bd6d3a9424
2013-06-29Search for char instead of 1 char long string, when possible.Thomas Arnhold1-1/+1
follow-up of a7674482254ee996b1c4fee60f3064778be369aa Change-Id: I25f40c601454c092078307d931333af1bc1447ac
2013-06-24fdo#43460 sd,rsc,ucb,sdext: use isEmpty()Jelle van der Waa1-1/+1
Change-Id: I7a7a77c26b74078f7fc160fbaa1c8d4e912b844e Reviewed-on: https://gerrit.libreoffice.org/4442 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-06-23Resolves: #i121947# Default User-AgentAriel Constenla-Haile5-21/+152
(cherry picked from commit 339d75d9c99462d63234845031f24a42e7ffdd27) Conflicts: ucb/source/ucp/webdav/DAVResourceAccess.cxx ucb/source/ucp/webdav/makefile.mk Change-Id: Ie74275cfa9953fdc4fa0801224909efbcecab3a9
2013-06-16Fix build breakerAriel Constenla-Haile1-1/+1
(cherry picked from commit 6746e3ace000264274e9f587f7223906a864c27c) Change-Id: I66697ce020ffbd00d667556e9684bfe62ce1f38f
2013-06-15Resolves: #i121942# Explicitly set "ContentType" for non-DAV contentAriel Constenla-Haile1-0/+4
(cherry picked from commit 69f5a7496ce1d06ac312a753fa7b21f45db8fd78) Change-Id: I86c3b321725923c03e1f44bf9d9ece9ed57aeaca
2013-06-14Remove unused ContentProviderRegistrationInfoStephan Bergmann1-2/+1
Change-Id: Ic30cbc95b4baa4dabaa0f8f8e129aa5cf4ca5f2f
2013-06-14Always try to mount in gio::Content::getGFileInfoStephan Bergmann1-16/+26
...and not only if the caller happens to pass in non-null ppError. Otherwise, calling soffice with a document URL handled by the gio UCP that is not yet gio-mounted would silently do nothing and exit with EXIT_SUCCESS, as the first thing the type detection code does on the URL is execute "getPropertyValues" for "IsDocument", which calls getGFileInfo with null ppError, so a void instead of a boolean value is returned, which then derails the type detection code to silently fail (which is another problem that needs fixing). Change-Id: I48a84428cdee5caead02909abc2efd3ae3722052
2013-06-13Resolves: #i120738# need to call OWeakObject::release() explicitlyJian Fang Zhang1-4/+7
to make sure the week object is released correctly. Found by: zhangjf Patch by: zhangjf (cherry picked from commit 1e51e5dab1664dadb40509c4fab593fb27040efd) Conflicts: ucb/source/ucp/tdoc/tdoc_stgelems.cxx Change-Id: I33d0b3b7cda2aa9a220056bf7d641b09036f89e9
2013-06-10Don't warn about undefined macro any moreFridrich Štrba1-1/+1
Change-Id: I403cad8ce1953d2c8e8948a94a688519525bbbc4
2013-06-06Some more modules at least building with mingw64Fridrich Štrba3-86/+86
Change-Id: I3ea039655aecb7885bb310b1f2c29d66f9f7bb4f
2013-06-05fdo#46808, Convert XMultiServiceFactory in ucb moduleNoel Grandin9-69/+57
Change-Id: I4e1cfe22ba6043521dd1237f90ade66f80b29253
2013-06-05remove unused componentcontext.hxx includesNoel Grandin3-3/+0
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-04fix build, bad mergeCaolán McNamara1-1/+4
Change-Id: I153b5ac4c2c75aca055ef49920cbccf3bd7720d4
2013-06-04Resolves: #i122273# - Avoid using tmpfile()Ariel Constenla-Haile4-21/+27
(cherry picked from commit c4ef17d5e2844ca8d2459a3bfa1f91d99ac297f2) Conflicts: ucb/source/ucp/ftp/ftpcfunc.cxx ucb/source/ucp/ftp/ftpinpstr.cxx ucb/source/ucp/ftp/ftpinpstr.hxx ucb/source/ucp/ftp/ftpurl.cxx Change-Id: I267a9191f9b922380bef8653ac74543662ebf3ef
2013-06-03Prefer prefix ++/-- operators for non-primitive typesJulien Nabet1-3/+3
Change-Id: I1310ac912aa2031b15851339fd84d435308350a9
2013-05-30ucb: NeonLockStore::stopTicker(): really avoid deadlockMichael Stahl2-12/+13
Follow up on 68ba2785c55eaa1ea70ce135bdad5322b0e04ed7, which missed the sad fact that m_aMutex is locked recursively. Avoid that by passing a ClearableMutexGuard to stopTicker() and unlocking that. Also lock m_aMutex in the destructor while at it. Change-Id: I5ef7ef8f15e2b5c9810c5ffc64ed922ab9ad2807
2013-05-29ucb: NeonLockStore::stopTicker(): avoid deadlockMichael Stahl1-5/+12
Tor reports that NeonLockStore::stopTicker() m_pTickerThread->join() can deadlock with TickerThread running NeonLockStore::refreshLocks(). This can be avoided by copying m_pTickerThread to the stack, and releasing the m_aMutex before calling join(). Change-Id: I387f83a530c5b893f79fa677b1092e0902c8af65
2013-05-27Resolves@ #i121926# fix malformed PROPFIND/PROPPATCH request bodyAriel Constenla-Haile2-46/+59
(cherry picked from commit 3c83ceae5e4ff5afe20ea76aeaaae6303cdaec2d) Conflicts: ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx ucb/source/ucp/webdav/SerfPropPatchReqProcImpl.cxx Change-Id: I13dab5fb80235e2ab968a1492c05bf579ba08d40
2013-05-27Header clean-upAriel Constenla-Haile42-95/+95
(cherry picked from commit 9e6159be30751d0ff3af6086de0114cb769873ee) Change-Id: I1bd046e1aca89d3dd35780338737ca4a6f207bca
2013-05-27Resolves; #i121201# Handle servers not supporting HEAD requestsAriel Constenla-Haile3-5/+200
(cherry picked from commit d7085ea6fe26d2fc2ba384da04e454e78887f1f1) Change-Id: I4b3d50906468b998a1f4964d0ad1af3d31725332
2013-05-27Resolves: #i121922# Fix wrong conditionAriel Constenla-Haile1-1/+1
(cherry picked from commit 19c47c4496af7db6c8e41cc218d6c8c2fe69db0e) Change-Id: Ic3febe262cb6723a17e3ea9078137479211fbe59
2013-05-27Let package_ucp::ContentProvider::createPackage throw exceptions on failureStephan Bergmann3-62/+24
...instead of returning a null XHierarchicalNameAccess. Otherwise, UCB's globalTransfer from a vnd.sun.star.package URL that denotes a file that is not a zip file to a file URL folder (i.e., to extract the zip content) silently succeeds but just creates an empty file in the target folder. That, in turn, causes "unopkg add foo.oxt", where foo.oxt is a file that is not a zip file, to silently succeed and add an "empty" extension. This change is somewhat bold in that it changes createPackage from "can return empty reference" to "never returns empty reference, but can throw RuntimeException." Especially, it considers "empty name" as a (silent) violation of its contract with its caller now. I hope this does not affect any legitimate scenarios---at least, it does not break a "make check" here. (In turn, the two package_ucp::Content::getPackage overloads change to never return a null reference, either. And I changed the parameters of createPackage, seeing that all call-sites pass in some PackageUri's getPackage()/getParam() pair.) Change-Id: I0eab5f8059dfedefc7030da38da528ba21ea8d79
2013-05-24Revert "Rename Boost libraries when built internally to match conventions"Fridrich Štrba1-1/+1
This reverts commit 3aeecc525c76797801e9e2b24c2ebff6ac81adac.
2013-05-24Rename Boost libraries when built internally to match conventionsTor Lillqvist1-1/+1
The standard Boost convention is for them to be called libboost_date_time and libboost_system (with apropriate suffix then depending on type). Did not touch the libboostthread library we build for Windows. Add the ax_boost_thread.m4 file for completeness and possible use. Document where the ax_boost*.m4 files come from. Change-Id: Ib49bee71398d62c9760a1f8fd5c46be9f3400430
2013-05-23Related rhbz#961460: Fix regression around OUString::compareTo usageStephan Bergmann1-1/+1
...originally introduced with 8da928423add3fdb94baee2a3f3fa053390f828e "Remove RTL_CONSTASCII_(U)STRINGPARAM in ucb(ucp)," leading to "IsFolder" not being properly set in the WebDAV UCP, leading to failure when saving documents. Change-Id: Id2cc98582c9feffaa501a68069cd606fb420fd29
2013-05-23Fold regexpmap.tpt inline template definitions into regexpmap.hxxStephan Bergmann3-591/+488
Change-Id: I443367fc355a8fdea3156f85dde65cf43795f1bc
2013-05-22Use the new type-checking Reference constructor to reduce code noiseNoel Grandin4-22/+10
Also create a Clang compiler plugin to detect such cases. Change-Id: I61ad1a1d6b1c017eeb51f226d2dde0e9bb7f1752 Reviewed-on: https://gerrit.libreoffice.org/4001 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2013-05-21fix for linkingNoel Grandin1-0/+1
caused by my commit 863d38fbfa4fb4861e476828c46410602100919e "move DBG_UNHANDLED_EXCEPTION out of line" Change-Id: Idfd84d987ba9151ba476ce0516a9e5fbdb2003ec
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks18-298/+60
2013-04-26Java cleanup, access static methods using correct syntaxNoel Grandin1-3/+3
Change-Id: I8443aef43d82de33ac7cb47d40cc5b544f7c9c87
2013-04-24extend license filtering, and add fallback-checks.Michael Meeks29-4/+29
Change-Id: Ia1ec3564326cf898d756c231a64a54db8698bf20
2013-04-24gbuild: drop empty use_packages callsDavid Tardon2-6/+0
Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24gbuild: drop uses of removed packagesDavid Tardon2-2/+0
Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks16-349/+77
2013-04-22fdo#62096 - Changed a few compareTo's to '=='Sameer Deshmukh1-1/+1
Change-Id: I0a0ba87ec517e5dd776ab45b232dd7f227451466 Reviewed-on: https://gerrit.libreoffice.org/3523 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-19use GLIB_CHECK_VERSION instead of GLIB_VERSION_X_XXIvan Timofeev1-1/+1
Michael Meeks pointed out that the latter can cause problems. Change-Id: I68e7f8c6dcfae52305738b2a8cdee72e9c2c7f93
2013-04-19Java cleanup, remove the rest of the unnecessary castsNoel Grandin3-9/+8
Change-Id: Ia61d250f6b3711abc29569c5ece38a6f87e38daa Reviewed-on: https://gerrit.libreoffice.org/3432 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane5-16/+18
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18WaE: g_type_init has been deprecated since GLib 2.36Ivan Timofeev1-2/+2
Change-Id: Ied9b2c2424d780d589cb1b07df0ec38107d49829 Reviewed-on: https://gerrit.libreoffice.org/3434 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-04-07remove needless forward rtl::OUString declarationsLuboš Luňák1-3/+0
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák252-4384/+4357
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-06Add comment the RTL_CONSTASCII_STRINGPARAM should be kept in regexp.cxxChr. Rossmanith1-0/+3
Change-Id: I3cd2129d98c3d936d8ec31f89554b37f12427c1c
2013-04-02drop prefix from ::cssThomas Arnhold1-2/+2
as css is already ::com::sun::star Change-Id: I86b43843e4b74f990b6e05dee37184a002072d12
2013-04-01remove macros in ucbThomas Arnhold4-215/+189
Change-Id: I9921d79df1eeeb06c0163c1e61e0c845308c6ff9