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

POST request to modify timestamp does not respect defined format #44990

Closed
1 of 2 tasks
ghost opened this issue Sep 8, 2021 · 6 comments
Closed
1 of 2 tasks

POST request to modify timestamp does not respect defined format #44990

ghost opened this issue Sep 8, 2021 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! WFS data provider Won't fix By design, or won't be fixed for some other reason

Comments

@ghost
Copy link

ghost commented Sep 8, 2021

What is the bug or the crash?

When inserting or updating a feature through WFS-T connection, field with defined timestamp format is not respected by the sent POST request.

Steps to reproduce the issue

  1. Open WFS-T connection
  2. Specify a timestamp field as following:
    image
  3. Create a new feature, and record the sent POST request
  4. Check the sent POST request - timestamp format has changed into following:
    `yyyy-MM-ddTHH:mm:ss.sssZ'

Versions

QGIS version
3.20.1-Odense
QGIS code revision
1c3c5cd
Qt version
5.15.2
Python version
3.9.5
GDAL/OGR version
3.3.1
PROJ version
8.1.0
EPSG Registry database version
v10.018 (2021-04-02)
GEOS version
3.9.1-CAPI-1.14.2
SQLite version
3.35.2
PDAL version
2.3.0
PostgreSQL client version
13.0
SpatiaLite version
5.0.1
QWT version
6.1.3
QScintilla2 version
2.11.5
OS version
Windows 10 Version 2009

Active Python plugins
coordinate_capture
nominatim
db_manager
MetaSearch
processing

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@ghost ghost added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 8, 2021
@gioman
Copy link
Contributor

gioman commented Sep 8, 2021

hrough WFS-T connection

@geeneric regardless of the server or this is specific to QGIS Server?

@gioman gioman added the Feedback Waiting on the submitter for answers label Sep 8, 2021
@ghost
Copy link
Author

ghost commented Sep 8, 2021

hrough WFS-T connection

@geeneric regardless of the server or this is specific to QGIS Server?

WFS-T was served by Deegree. However, to me this seems specific to QGIS and not the WFS-T server.

@gioman
Copy link
Contributor

gioman commented Sep 8, 2021

to me this seems specific to QGIS and not the WFS-T server.

@geeneric have you tried with another backend?

@gioman gioman added WFS data provider and removed Feedback Waiting on the submitter for answers labels Sep 8, 2021
@ghost
Copy link
Author

ghost commented Sep 8, 2021

to me this seems specific to QGIS and not the WFS-T server.

@geeneric have you tried with another backend?

No, I have not.

@rouault
Copy link
Contributor

rouault commented Sep 13, 2021

I'd be tempted to close that as invalid / wontfix.

  • What goes on the "wire" in a WFS-T exchange is bound by the constraints of the XML format. If the format that you would have specified wouldn't be compatible of ISO8601, then it would not be possible to honour it anyway
  • And technically, if we wanted to honour it, that would goes against the design of QGIS internals. A WFS provider object doesn't know to which layer it belongs to (and it could potentially be created without a supporting layer). I guess we could probably get the default QgsProject object, iterate through the layer and see to which we belong too, but that goes against the design.

@elpaso any opinion ?

@elpaso
Copy link
Contributor

elpaso commented Sep 14, 2021

I'd be tempted to close that as invalid / wontfix.

* What goes on the "wire" in a WFS-T exchange is bound by the constraints of the XML format. If the format that you would have specified wouldn't be compatible of ISO8601, then it would not be possible to honour it anyway

* And technically, if we wanted to honour it, that would goes against the design of QGIS internals. A WFS provider object doesn't know to which layer it belongs to (and it could potentially be created without a supporting layer). I guess we could probably get the default QgsProject object, iterate through the layer and see to which we belong too, but that goes against the design.

@elpaso any opinion ?

I was thinking exactly the same.

@elpaso elpaso closed this as completed Sep 14, 2021
@elpaso elpaso added the Won't fix By design, or won't be fixed for some other reason label Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! WFS data provider Won't fix By design, or won't be fixed for some other reason
Projects
None yet
Development

No branches or pull requests

3 participants